...
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 |
---|
Html bobswift | <pre>
1. set Html bobswift |
---|
echo=yes
2. open Html bobswift |
---|
rmt=192.168.20.47 user=joe pwd=abcdefg port=7887
3. mode Html bobswift |
---|
type=text
4. attrib Html bobswift |
---|
local createop=replace
5. cd Html bobswift |
---|
rmt=C:\tmp\tmp
6. cd Html bobswift |
---|
local=/home/joe/wrk/xmp/dmzFtp
7. copy Html bobswift |
---|
rmt=file.txt.org local=file.txt
8. exec Html bobswift |
---|
local cmdref="ftp.cref houston" user=joe pwd=abcdefg port=7887
9. exec Html bobswift |
---|
houston cmd="ls /home/joe/tmp" user=joe pwd=abcdefg port=7887
10. quit Html bobswift |
</pre>
|
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 |
---|
Html bobswift | <pre>
# Command reference to read a file.
#
-format script
-type shell
-allow_options yes
<eof>
ftp -ipnv $1 <<FTP_DONE
quote USER joe
quote PASS abcdefg
cd /home/amos/tmp
lcd /home/joe/wrk/xmp/dmzFtp
put file.txt file.new.txt
quit
FTP_DONE
exit 0
< /pre>
|
UDM exec Command Parameters
...