Understanding the Command-Line Interface
Command or Action
Saving and Restoring a Command Mode
The Cisco NX-OS software allows you to save the current command mode, configure a feature, and then
restore the previous command mode. The push command saves the command mode and the pop command
restores the command mode.
This example shows how to save and restore a command mode:
switch# configure terminal
switch(config)# event manager applet test
switch(config-applet)# push
switch(config-applet)# configure terminal
switch(config)# username testuser password newtest
switch(config)# pop
switch(config-applet)#
Exiting a Configuration Command Mode
To exit from any configuration command mode, perform one of the following tasks:
SUMMARY STEPS
1. exit
2. end
3. (Optional) Ctrl-Z
DETAILED STEPS
Command or Action
Step 1
exit
Example:
switch(config-if)# exit
switch(config)#
Step 2
end
Example:
switch(config-if)# end
switch#
OL-30890-01
Purpose
Purpose
Exits from the current configuration command mode and returns to the
previous configuration command mode.
Exits from the current configuration command mode and returns to EXEC
mode.
Cisco Nexus 5500 Series NX-OS Fundamentals Configuration Guide, Release 7.x
Saving and Restoring a Command Mode
47