DES-7200 Configuration Guide Chapter 2 Basic Switch Management
Configuration
2.12
Com t
Executable File
Executing the
mands in
he
in Batch
In m
configuration
enter all the this
problem, you can encapsulate all the commands in a batch file according to
, you can execute the batch file for configuration when
system anagement, sometimes it is necessary to enter multiple
commands to manage a function. It takes a long period of time to
commands on CLI, causing error or mission. To resolve
configuration steps. Then
necessary.
Command Function
DES-7200# execute {[flash:]
Execute a batch file.
filename}
For exampl s_script.te elnet
f s interfaces as shown below:
c
line tty 1 16
transport input all
n
e
Res
DES-7200# execute flash:line_rcms_script.text
ig-line)# end
e, the batch file line_rcm
unction on all the asynchronou
xt enables the reversed T
onfigure terminal
o exec
nd
ult:
executing script file line_rcms_script.text ......
executing done
DES-7200# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
DES-7200(config)# line vty 1 16
DES-7200(config-line)# transport input all
DES-7200(config-line)# no exec
DES-7200(conf
contents of the batch file will simulate the input completely. He
necessary to edit the contents of the batch file by th
The file name and contents of a batch file can be specified. Once edited,
users send the batch file to the FLASH of the network device in TFTP. The
nce, it is
e sequence that CIL
commands are configured. Furthermore, for some interactive commands, it is
necessary to write correspondin se information in the batch file,
mands
Note
g respon
guaranteeing that the com can be executed normally.
2.13 Setting Service Switch
During operation, you can adjust services dynamically, enabling or disabling
specified services (SNMP Server/SSH Server/Telnet Server/Web Server).
Command Function
2-18