This section contains a description of commands that are used to control the device in various modes
exit
This command is used to return to the level up or exit cli if the command is executed in the global command mode.
Syntax
exit
Parameters
The command contains no arguments.
Command mode
Return to the top level - all modes, except global.
CLI exit – global mode.
top
The command is used to return to the ROOT command mode.
Syntax
top
Parameters
The command contains no arguments.
Command mode
All modes, except global.
do
The do command allows you to execute global level commands (ROOT) when you are at other levels of the command interface.
Syntax
do <COMMAND>
Parameters
<COMMAND> – global level command.
Command mode
All modes, except global.
Example
ma4000 (config)# do show firmware Firmware status: ~~~~~~~~~~~~~~~~ Unit Image Running Boot Version Date ---- ----- ------- ----------- ------------------- --------------------- 1 0 No 1 3 2 379 40889 12-Nov-2014 08:41:55 1 1 Yes * 1 3 2 380 40897 12-Nov-2014 22:58:46 2 0 Yes * 1 3 2 380 40897 12-Nov-2014 22:58:46 2 1 No 1 3 2 379 40889 12-Nov-2014 08:41:55 "*" designates that the image was selected for the next boot
show history
The command displays information on the command used in a current session.
Syntax
show history
Parameters
The command contains no arguments.
Command mode
All modes.
Example
ma4000# show history Last CLI commands: show arp show cmd-dispatcher show date show evt-dispatcher configure terminal exit show firmware show history
!
Service command.
The command is used to enter text comments.
Syntax
! <COMMAND>
Parameters
<COMMAND> – text comment
Command mode
All modes.
Example
ma4000#! hello
reboot
This command restarts the device components or the whole device.
Syntax
reboot <OBJECT>
Parameters
<OBJECT> – object to reboot:
- master – master PP4X module;
- slave – slave PP4X module;
- non-stop – reboot the PP4X control modules one by one (without interrupting services)
- slot <NUMBER> – line module, where:
- <NUMBER> – the number of the slot in which the linear module is set takes values [0 .. 15];
- system – whole device.
Command mode
ROOT
Example
ma4000# reboot system
Crate reboot.
configure terminal
The command allows you to switch to the device parameters configuration mode.
Syntax
configure terminal
Parameters
The command contains no arguments.
Command mode
ROOT
Example
ma4000# configure terminal ma4000(config)#
Enter the device parameters configuration mode.
ping
This command allows you to check the availability of the node by exchanging ICMP messages.
Syntax
ping <IPADDRESS>
Parameters
<IPADDRESS> – remote device IP address.
Command mode
ROOT
Example
ma4000# load-1-3-2-3# ping 192.168.16.100 PING 192.168.16.100 (192.168.16.100): 56 data bytes 64 bytes from 192.168.16.100: seq=0 ttl=127 time=0.307 ms 64 bytes from 192.168.16.100: seq=1 ttl=127 time=0.333 ms 64 bytes from 192.168.16.100: seq=2 ttl=127 time=0.214 ms --- 192.168.16.100 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.214/0.284/0.333 ms
traceroute
This command allows you to view the data path to the remote node.
Syntax
traceroute <IPADDRESS>
Parameters
<IPADDRESS> – remote device IP address.
Command mode
ROOT
Example
ma4000# traceroute 192.168.16.100 ma4000# traceroute to 192.168.16.100 (192.168.16.100), 30 hops max, 38 byte packets 1 192.168.199.2 (192.168.199.2) 0.307 ms 0.197 ms 0.191 ms 2 192.168.16.100 (192.168.16.100) 0.224 ms 0.347 ms 0.329 ms