...
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 |
---|
set open mode attrib cd cd copy exec exec 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 |
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.
The format option is changed from cmd to script; otherwise, the script will not be generated.
Panel |
---|
# Command reference to read a file.
#
-format script
-type shell
-allow_options yes
ftp -ipnv $1 < |
UDM exec Command Parameters
...