Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor
1092943
1092943
If you are not familiar with Command References, please read Command References.

Anchor
1093085
1093085
UDM Script Explanation

Anchor
1092946
1092946
Other than Line 8, this UDM script is identical to the previous example. The exec command in line 8 uses the UCMD server running on the local system to execute the shell script contained in the Command Reference file ftp.cref. One option, the remote system name, is passed to the script via the Command Reference.

Anchor
1092947
1092947
Command Reference files must reside in the directory specified by the CMD_REFERENCE_DIRECTORY UCMD Server configuration option. On UNIX systems this directory defaults to /var/opt/universal/cmdref.


Panel
1. set echo=yes
2. open rmt=192.168.20.47 user=joe pwd=abcdefg port=7887
3. mode type=text
4. attrib local createop=replace
5. cd rmt=C:\tmp\tmp
6. cd local=/home/joe/wrk/xmp/dmzFtp
7. copy rmt=file.txt.org local=file.txt
8. exec local cmdref="ftp.cref houston" user=joe pwd=abcdefg port=7887
9. exec houston cmd="ls /home/joe/tmp" user=joe pwd=abcdefg port=7887
10. quit


Anchor
1092961
1092961
The ftp.cref Command Reference file contains the shell script used to FTP the file to the remote system behind the firewall. The allow_options option is changed to yes to allow the server address to be passed to the script. By default, no options are passed.

...

UDM exec Command Parameters

The exec command parameters used in this example are:

...