Versions Compared

Key

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

...

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

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


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.

Anchor
1093314
1093314
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

...