PurposeCommand 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
PurposeCommand or Action
Exits from the current configuration command mode and returns to the
previous configuration command mode.
exit
Example:
switch(config-if)# exit
switch(config)#
Step 1
Exits from the current configuration command mode and returns to EXEC
mode.
end
Example:
switch(config-if)# end
switch#
Step 2
Cisco Nexus 5500 Series NX-OS Fundamentals Configuration Guide, Release 7.x
OL-30890-01 47
Understanding the Command-Line Interface
Saving and Restoring a Command Mode