Skip to content
Dmitry Golovach
Go back

Cisco NX-OS: CLI notes

  1. NX-OS supports aliases “cli alias name <name of alias> <command>”
conf t
cli alias name wr copy run star**

=> can use “wr” to save config

NX-OS also supports multiple commands aliases. Use ”;” as separator:

conf t
cli alias name commit end ; copy run start ; copy running-config bootflash:///$(SWITCHNAME).$(TIMESTAMP.cfg

  1. IOS range command 


  1. CTRL+0 => clear the screen

  1. Tab to complete the command 


  1. Admins of efault VDC can verify or save config in all VDCs:
show run vdc-all
copy run start vdc-all

  1. NX-OS has checkpoints - save well known working config before the maintenance window start. Two types:

To create checkpoint:

copy run start
checkpoint well_known good config

To show available checkpoints:

show checkpoints
show checkpoints summary

To show difference:

**show diff rollback-patch running-config checkpoint well_known**

To remove:

**clear checkpoint database**

To rollback:

**rollback running-config checkpoint <well_known> type <atomic>**


  1. Port Profiles - templates

Types:

conf t
port-profile type ethernet PROFILE1
    switchport
    swithport access vlan 123
    spanning-tree port type edge
    state enable
!
int ra e101/1/20 - 25
 inherit port-profile PROFILE1
!
show port-profile expand-interface name [profile-name]

Share this post:

Previous Post
Cisco NX-OS: Virtual Device Contexts (VDCs)
Next Post
Python: Simple Email Gmail