Using NX-OS for beginners

By | July 2, 2014

To show all commands in your buffer history:

show cli history

This command used to be show history on the old OS.

Some enhanced editing shortcuts include:

Ctrl+A - to get to the beginning of the line
Ctrl+E - to get to the end of the line
Ctrl+B - moves one character to the left
Ctrl+F - moves one character to the right
Esc+B - goes one word to the left
Esc+F - goes one word to the right
Ctrl+D - deletes one character
Ctrl+P - gives previous command from history buffer (can use up arrow)
Ctrl+N - goes to next command in history buffer (can use down arrow)
Tab - will auto-complete your commands.

Important show commands include the following:

show users - to see who is logged in
show user account - to see the user account and privileges
show version - shows version info
show run - shows running config in RAM
show startup-config - shows startup-config in NVRAM
show module - shows which modules are active and running
show inventory - shows hardware inventory
show interface - shows interface stats
show interface status - lists all interfaces
show mac address-table - shows the MAC table currently being held

To save your running config:

copy run start

Will still be used.  If you wanted to overwrite the configuration in the startup NVRAM you can run:

write erase

NX-OS now supports checkpoints to easily rollback to past configuration changes.  To create a checkpoint run the command:

checkpoint checkpoint-name

You can then view these by running:

show checkpoint summary

To roll back to a checkpoint without reboot you can use:

rollback running-config checkpoint-name

This will help you easily avoid mistakes or allow you to quick rollback as needed.