Datacenter : CLI Command Reference for Cisco Nexus 7000

Today I am going to talk about the CLI commands used in the Cisco Nexus 7K which helps you guys to troubleshoot in case of any issue. You can use these commands on Cisco Nexus 7K in order to get the appropriate results from the chassis.

These commands are very helpful and prepared by one of the Datacenter expert and help you to guide in any situation. The commands showing below are for various purposes which includes Counters/STP troubleshooting, Checking Hardware issues, ISSU troubleshooting, Bootup Issues, Startup Issues and many more.

Lets see all these commands one by one. Check all these commands to get the desired output on your lab network. Below is the basic Cisco Nexus 7K topology with Nexus 5K, FEX and UCS Servers and FI.

Fig-1.1- Basic Nexus 7k Topology

CLI Commands Reference Guide  


Clearing Counters/Stats:
clear counters
clear statistics module-all device all
clear hardware rate-limiter all
test cpu-mac inband clear-counters
clear qos statistics
clear pktmgr client
clear copp statistics
clear ip traffic
clear ip ospf statistics
clear ip ospf traffic
clear spanning-tree counters
clear lacp counters
clear logging logfile

STP Troubleshooting:
show ver
show mod
show hardware internal cpu-mac inband stats
show hardware internal cpu-mac inband event
show system internal pktmgr client 303
show process cpu history
show span det | in exec|last|change

Generic N7K Hardware Troubleshooting:
show tech platform
show tech mod all
show tech gold
show logging onboard module x
show logging nvram
show logging logfile
show system internal platform internal info
show system reset-reason
show system reset-reason module x
show system reset-reason xbar x

Crash/Core Troubleshooting:
show system cores
dir logflash:core (Both Supervisors)

ISSU/ISSD/EPLD Update Troubleshooting:
show install all status
show install all failed-standby
show install all failure-reason
show install all impact
show system internal log install
show system internal log install-module
show install epld status
show system internal epld logging
show install module x
show install xbar-module x
show install fan-module x

In-Band Issue Troubleshooting:
show mac address-table
show hardware mac address-table x
show hardware rate-limiter module x
show policy-map interface control-plane
show hardware internal cpu-mac inband stats
show hardware internal cpu-mac inband events
show hardware internal cpu-mac inband counters
show hardware internal cpu-mac inband registers

Management Interface Troubleshooting:
show hardware internal mgmt0 stats

EOBC/AIPC/MTS Issue Troubleshooting:
show hardware internal cpu-mac eobc stats
show hardware internal cpu-mac eobc events
show hardware internal cpu-mac eobc counters
show hardware internal cpu-mac eobc registers
show hardware capacity eobc
show system internal veobc stats
show system internal aipc event-history errors
show system internal aipc event-history msg
show system internal kernel aipc
show system internal kernel aipc-mcast
show system internal mts buffers details
show system internal mts memory
show system internal mts buffers

Bootup Issue Troubleshooting:
show system internal kernel messages
show system internal log boot kickstart
show system internal log boot system
show system internal bootvar log
show system internal loader configuration

CPU/Memory Performance Troubleshooting:
show system resources
show system internal processes cpu
show system internal processes memory
show processes cpu history
show processes cpu sort
show processes log
show processes memory
show processes memory shared detail
show processes vdc x
show system internal kernel memory usage
show system internal kernel memory global
show system internal kernel malloc-stats
show system internal kernel meminfo
show system internal kernel skb-stats detail
show system internal pss kernel memstats
show system internal psshelper mem-track-stats
show system internal mts memory

Filesystem Usage Troubleshooting:
show system internal flash
dir bootflash:

Startup / Running Config Issue Troubleshooting:
show tech clis
show tech cli
show system internal clis startup-configuration
show system internal clis running-configuration

Hardware Forwarding
show system internal forwarding ipv4 route
show mac address-table
show port-channel rbh-distribution
show port-channel traffic interface port-channel x
show port-channel load-balance
show port-channel load-balance forwarding-path interface port-channel x src-ip 1.1.1.1 dst-ip 1.1.1.2 vlan y module z (Change Variables to account for load-balance method; only changes for unicast)

Hardware Performance/Scale:
show hardware internal forwarding engine usage
show hardware internal forwarding statistics  l2
show hardware internal forwarding statistics  l3
show hardware internal forwarding table utilization
show hardware internal forwarding adjacency utilization
show hardware internal forwarding rate-limiter usage
show hardware access-list resource utilization module x
show hardware access-list resource l4ops module x
show hardware internal forwarding l3 multicast met resource utilization
show hardware internal forwarding l2 table utilization
show hardware fabric-utilization detail

XBAR Programming
show system internal xbar all
show hardware internal xbar-driver xbar 1 inst 1 driver_info
debug hardware internal xbar-driver xbar 1 inst 1 fpoe_reg_dump port_range  7 7 reg_range 0x0 0x7f8
show hardware internal qengine asic 0 tf mc-xbar-sel-tbl
show hardware internal qengine asic 0 tf uc-xbar-index-tbl

Hardware Forwarding Programming Troubleshooting:
Software Side:

show system internal ethpm info interface ethernet x/y
show system internal pixm info interface ethernet x/y
show system internal eltm info interface ethernet x/y
show system internal aclmgr access-lists policies ethernet x/y
show system internal interface-vlan info all
show system internal l2fm info macdb vlan x
show ip route
show forwarding ipv4 route

Hardware / FIB Side:
show hardware internal dev-port-map
show hardware mac address-table x
show forwarding adjacency
show hardware access-list interface ethernet x/y (Attach to Module)
show hardware access-list resource entries
show forwarding interfaces module x (Attach to Module)
show forwarding internal unicast counts (Attach to Module)
show system internal eltmc info interface ethernet x/y
show system internal pixmc info global
show system internal eureka info
show hardware internal mac port x state
show hardware internal mac port x status-detail
show hardware internal mac port x config-detail
show hardware internal ltl start_index 0xx end_index 0xy
show hardware internal rewrite_engine all
show hardware internal forwarding interface all
test hardware internal forwarding l3 show port-map instance 0x1 index 0x2a
test hardware internal forwarding l3 show l3-ingress-lif instance 0x1  index 0x32
test hardware internal forwarding l3 show l3-egress-lif instance 0x1 index 0x32
test hardware internal forwarding l2 show l2-lif-map index 0x2a
test hardware internal forwarding l2 show l2-lif index 0x2a
test hardware internal forwarding l2 show lif-stat lif 0x23

Drops/Congestion:
clear counters all
clear statistics module-all  device all
show interface
show hardware internal errors all
show hardware internal statistics module-all pktflow dropped
show hardware internal statistics module-all pktflow dropped congestion
show hardware internal statistics module-all pktflow rates
show hardware internal statistics module-all pktflow all
show hardware internal statistics module-all device fabric all
show hardware internal statistics module-all device fabric congestion asic-all
show hardware internal statistics module-all device qengine all
show hardware internal statistics module-all device qengine congestion asic-all
show hardware internal statistics module-all device rewrite all
show hardware internal statistics module-all device rewrite congestion asic-all
show hardware internal statistics module-all device mac all
show hardware internal statistics module-all device mac congestion asic-all
show hardware fabric-utilization detail
show hardware capacity forwarding
show hardware rate-limiter module x
show hardware internal forwarding engine usage module x
show forwarding route summary vrf all
show forwarding route max-display-count 100000 vrf all
show forwarding vrf all adjacency
show forwarding ipv6 route summary vrf all
show forwarding ipv6 route max-display-count 100000 vrf all
show forwarding vrf all ipv6 adjacency
show forwarding trace
show forwarding internal errors
show forwarding internal error counts
show forwarding internal unicast counts vdc all
show forwarding internal message counts
show system internal forwarding route summary
show system internal forwarding vrf all route max-display-count 10000 detail
show system internal forwarding ipv6 route summary
show system internal forwarding vrf all ipv6 route max-display-count 10000 detail
show system internal forwarding vrf all adjacency
show system internal forwarding vrf all ipv6 adjacency
show system internal forwarding info spans summary
show system internal forwarding unicast counters