EM316LNXNM-OT
Management Basics
PN 1275005-100 Rev E6
38
5.5.20. Custom Scripts
Write CLI scripts using any text editor and then, using TFTP or SCP, transfer the files to the device to run
them. Provide an external TFTP or SCP server. For improved security, the EM316LNXNM system does
not include an onboard TFTP or SCP server. However, it does provide TFTP and SCP clients.
5.5.20.1. Moving Files
Using the "
sys tftp-host-ip 10.1.1.1
" command, set up the IP address of the external TFTP
server. The "
tftp get
" and "
upgrade
" commands use the address (
10.1.1.1
) if it is not specified
in the command itself.
Use the "
tftp get script.txt
" command to transfer the script file to the device. If the command
does not specify a TFTP server using "
sys tftp-host-ip
", or if you wish to use a different server
than the one specified by
tftp-host-ip
, use the "
tftp get 10.1.1.2 script.txt
" command.
fiberdriver# con t
fiberdriver(config)# sys tftp-host-ip 10.1.1.1
fiberdriver(config)# exit
fiberdriver# tftp get script.txt
Fetching script.txt from 10.1.1.1...
Copying...
fiberdriver#
Alternately, use the steps described in
Unix-like commands
ls
,
mv
, and
rm
are available to operate on those files.
fiberdriver# ls
...
-rw-rw---- 1 admin config 12 Mar 29 11:58 script.txt
...
fiberdriver# mv script.txt script2.txt
fiberdriver# ls
...
-rw-rw---- 1 admin config 12 Mar 29 11:58 script2.txt
...
fiberdriver# rm script2.txt
fiberdriver# ls
-rw------- 1 root config 668 Sep 2 2005 ssh_host_dsa_key
-rw-r--r-- 1 root config 606 Sep 2 2005 ssh_host_dsa_key.pub
-rw------- 1 root config 531 Sep 2 2005 ssh_host_key
-rw------- 1 root config 335 Sep 2 2005 ssh_host_key.pub
-rw------- 1 root config 883 Sep 2 2005 ssh_host_rsa_key
-rw-r--r-- 1 root config 226 Sep 2 2005 ssh_host_rsa_key.pub
-rw-r----- 1 root config 1734 Mar 29 09:30 startup-config
-rw-r----- 1 root config 1708 Mar 20 13:19 startup-config.sav
fiberdriver#
Содержание EM316LNXNM-OT
Страница 174: ...EM316LNXNM OT Appendix PN 1275005 100 Rev E6 167 Access Read only CLI command volt monitor 4...
Страница 181: ......