Configuration Guide Basic Switch Management Configuration
Ruijie# execute {[flash:] filename}
For example, the batch file line_rcms_script.text enables the reversed Telnet
function on all the asynchronous interfaces as shown below:
configure terminal
line tty 1 16
transport input all
no exec
end
Result:
Ruijie# execute flash:line_rcms_script.text
executing script file line_rcms_script.text ......
executing done
Ruijie# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Ruijie(config)# line vty 1 16
Ruijie(config-line)# transport input all
Ruijie(config-line)# no exec
Ruijie(config-line)# end
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 contents of the batch file will
simulate the input completely. Hence, it is necessary to edit the
contents of the batch file by the sequence that CIL commands
are configured. Furthermore, for some interactive commands, it
is necessary to write corresponding response information in the
batch file, guaranteeing that the commands can be executed
normally.
Setting Service Switch
During operation, you can adjust services dynamically, enabling or disabling
specified services (SSH Server/Telnet Server/Web Server).
Ruijie(Config)# enable service
ssh-sesrver
Ruijie(Config)# enable service
telnet-server
Ruijie(Config)# enable service
web-server
In the configuration mode, you can use the no enable service command to
disable corresponding services.