Available commands

See the 7450 ESS, 7750 SR, 7950 XRS, and VSR MD-CLI Command Reference Guide for more information about all available commands.

See Editing configuration in the MD-CLI in this guide for more information about the configuration commands.

The following commands are available at the operational root level of the MD-CLI hierarchy.

[/]
A:admin@node-2# ?

 admin                 + Enter the administrative context for system operations
 bof                   + Configure system boot options
 clear                 + Clear statistics or reset operational state
 configure             + Configure system configuration
 debug                 + Configure application or protocol tracing
 environment           + Configure the environment settings for this session
 file                  + Perform file operations
 li                    + Configure lawful intercept
 monitor               + Show operational information at an interval
 password              - Change the local user password
 show                  + Show operational information
 state                 + Show state information
 tools                 + Enter the tools context for troubleshooting and
                         debugging

Global commands are available from various levels of the MD-CLI hierarchy.

Global commands:
 back                  - Move back one or more levels
 delete                - Delete an element
 edit-config           - Enter a candidate configuration mode
 enable                - Enable administrative mode
 exec                  - Execute commands from a file
 exit                  - Return to the previous context or to operational root
 history               - Show the command history
 info                  - Show the information under the present working context
 logout                - Exit the CLI session
 oam                   - Perform OAM tests
 ping                  - Ping an IP address or DNS name
 pwc                   - Show the present working context
 pyexec                - Execute a Python application
 ssh                   - SSH to an IP address or DNS name
 telnet                - Telnet to an IP address or DNS name
 top                   - Move to the top level of the context
 traceroute            - Show the route taken to an IP address or DNS name
 tree                  - Show the command tree under the present working context

Example: ping command output

[/]
A:admin@node-2# ping 10.251.72.68
PING 10.251.72.68 56 data bytes
64 bytes from 10.251.72.68: icmp_seq=1 ttl=64 time=1.79ms.
64 bytes from 10.251.72.68: icmp_seq=2 ttl=64 time=1.07ms.
64 bytes from 10.251.72.68: icmp_seq=3 ttl=64 time=1.19ms.
64 bytes from 10.251.72.68: icmp_seq=4 ttl=64 time=1.26ms.
64 bytes from 10.251.72.68: icmp_seq=5 ttl=64 time=1.16ms.

---- 10.251.72.68 PING Statistics ----
5 packets transmitted, 5 packets received, 0.00% packet loss 
round-trip min = 1.07ms, avg = 1.29ms, max = 1.79ms, stddev = 0.254ms

[/]
A:admin@node-2# ping 10.251.72.68 output-format summary 
PING 10.251.72.68 56 data bytes !!!!!
---- 10.251.72.68 PING Statistics ----
5 packets transmitted, 5 packets received, 0.00% packet loss 
round-trip min = 0.842ms, avg = 1.02ms, max = 1.34ms, stddev = 0.172ms

Example: traceroute command output

[/]
A:admin@node-2# traceroute 10.251.72.68
traceroute to 10.251.72.68, 30 hops max, 40 byte packets
  1  10.251.72.1 (10.251.72.1)    1.64 ms  1.71 ms  1.49 ms 
  2  10.251.72.68 (10.251.72.68)    1.21 ms  1.23 ms  1.12 ms 

Configuration commands are available within a configuration mode. However, some commands are not visible within specific configuration modes; for example, the commit command is not available in read-only configuration mode.

Configuration commands:
 annotate              - Annotate a configuration element with a comment
 commit                - Commit the candidate configuration
 compare               - Compare changes between datastores
 copy                  - Copy a configuration element to another
 discard               - Discard changes in the candidate datastore
 load                  - Load contents from a local or remote file
 rename                - Rename a list element
 rollback              - Rollback to a previous configuration
 update                - Update the candidate baseline
 validate              - Validate changes in the candidate datastore