Bits&Bricks
$ show search

Searches the blog, kb and courses. Press / to open it from anywhere, ↓ ↑ to move through the results and Enter to open one. On notes and lessons, [ and ] go to the previous and next page.

$ show running-config | section c9k

Commands in c9k/

12 snippets from 8 notes, in tree order. Each heading links to its note. for a cheat sheet.

C9K Control Plane Policy

show platform software fed switch active punt cause summary
show platform software fed switch active cpu-interface
show platform software fed switch active punt cpuq all
sh platform software fed switch active punt cpuq br
show platform hardware fed switch 1 qos queue stats internal cpu policer
show platform software qos copp policy-info
show platform software qos copp class-info

C9K Interfaces & transceivers

show interface <interface>  
show platform pm port-data <interaface>  
show inventory  
show idprom interface <interface> detail  
diagnostic start switch <switch number> test DiagPhyLoopbackTest port <port numbers>  
show diagnostic result switch <switch number> test DiagPhyLoopbackTest detail  
request platform software trace archive <last x days>

C9K Line cards

show inventory  
show module  
show power detail  
show post

C9K MAC flaps

show logging  
show interface status  
show spanning-tree detail  
show spanning-tree detail | inc rstp|occurr|from|is exec

C9K Performance

show interface <interface>  
show controller ethernet-controller <interface>  
show platform hardware fed switch <number of switch> qos queue stats interface <interface>  
clear platform hardware fed switch <number of switch> qos statistics interface <interface>  
Switch(config)#qos queue softmax multiplier <percentage 100-1200>  
show platform hardware fed switch <number of switch> qos dcsp-cos counters interface <interface>

C9K Power over Ethernet

show power inline  
diagnostic start switch <switch number> test DiagPoETest  
show diagnostic result switch <switch number> test DiagPoETest detail  
show post  
show tech-support poe

C9K StackWise

show switch detail  
show platform software stack-mgr switch <switch number> r0 sdp-counters  
show switch stack-ports detail  
show platform hardware fed switch <switch number> fwd-asic register read register-name SifRacDataCrcErrorCnt  
show platform hardware fed switch <switch number> fwd-asic register read register-name SifRacRwCrcErrorCnt  
show platform hardware fed switch <switch number> fwd-asic register read register-name SifRacPcsCodeWordErrorCnt  
show platform hardware fed switch <switch number> fwd-asic register read register-name SifRacInvalidRingWordCnt

C9K Walk through ROMMON mode

set  
dir flash:  
cat flash:packages.conf  
set MANUAL_BOOT=no  
set BOOT=flash:<image>  
boot  
boot <filesystem>:<image>