Ad Widget

Collapse

Macro in Macro

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ammer
    Junior Member
    • Dec 2013
    • 14

    #1

    Macro in Macro

    Hi,

    I have several hosts where i use an external script to download backups from the hosts via FTP.

    However with some of these hosts the FTP wont work via a public IP.
    The only way to make the download work is to use a private ip over an existing vpn.

    I want my script to use the public IP unless stated otherwise in the MACROS.

    So the script key is
    mainscrbackup.sh[{$BACKUP.IP},{$LOC},{$USER},{$PASSW},{HOST.HOST}]
    I Want the MACRO {$BACKUP.IP} to represent the {HOST.IP} value. unless i change it to the private vpn tunnel IP.

    But whenever under "Host macros" i set {HOST.IP} as value for {$BACKUP.IP} then it wont use the IP from the host.

    Anyone got an idea how to fill a custom Macro with the host IP?


    Thanx

    Ammer.
Working...