Networking, Security & Cloud Knowledge

Sunday, November 10, 2024

 

Cisco Nexus Switch CLI Cheat Sheet

Running Several Command on Single line.

Nexus# Conf t; int eth 1/1; no switch port; no shut

Roll back config change using checkpoint.

Create Checkpoint: Nexus# checkpoint <Check-Point-Name>
Verify Checkpoint: Nexus# show checkpoint summary
Compare Config: Nexus # show diff rollback-path checkpoint <Check-Point-Name> running-config
Rollback Config: Nexus# rollback running-config checkpoing <Check-Point-Name>

Filter Command Ouput.

Nexus# show ip int brief | grep -i vlan
Nexus# show clock | ex NTP

Working with VRF

routing-context vrf <VRF-NAME>
Show ip route
routing-context vrf default

Terminal color

Nexus# terminal color

alias

Nexus(config)# cli alias name <ALIAS-NAME> <Command>

Verify accounting log

Nexus# show accounting log | last 10