关于Cat4k High CPU TS的相关命令
4500 High Cpu Action Plan.No.1
Config “no ip unreachables” and “no ip redirects” in all L3 interface or SVI. General the “ip unreachables” and “ip redirects” will affect cpu utilization in 4000/4500. So if don’t requirement for “ip unreachables” and “ip redirects”. Suggest to turn off the feature first. Then confirm the problem will be clear.
关于redirect的内容,可以参考之前的文章《ICMP 重定向的一些问题》和《Layer 3 层网络中的重定向》 ,另外官网也有详细介绍: When Are ICMP Redirects Sent?
4500 High Cpu Action Plan.No.2
If the cpu couldn’t downgrade, then capture follow information:
#clear counters
#show int switching //some times #show ip int
#show proc cpu sorted | exclude 0.00
#show proc mem sorted
#show platform health
#show platform cpu packet statistics all
4500 High Cpu Action Plan.No.3
If found K2CpuMan Review and K2PacketBufMonitor-P take most CPU.
Base on your information, I found K2CpuMan Review and K2PacketBufMonitor-P take most cpu. ---------------------------------------------------------------------------------- %CPU %CPU RunTimeMax Priority Average %CPU Total Target Actual Target Actual Fg Bg 5Sec Min Hour CPU K2CpuMan Review 30.00 6.26 30 35 100 500 5 4 3 1242:32 K2PacketBufMonitor-P 1.00 2.52 10 5 100 500 2 2 2 868:10
So in order to further troubleshooting, I suggest the following action plan:
Capture packets that arrived to cpu:
Switch#show platform health Switch#show platform cpu packet statistics all Switch#debug platform packet all receive buffer //open debug, waiting 5 minutes Switch#show platform cpu packet buffered Switch#undebug all //close debug Switch#show platform cpu packet buffered Switch#show mac-address-table count Switch#show platform hardware mac-address-table count
—————————————–
Here is a useful link for troubleshooting high cpu:
High CPU Utilization on Cisco IOS Software-Based Catalyst 4500 Switches
http://www.cisco.com/en/US/products/hw/switches/ps663/products_tech_note09186a00804cef15.shtml
4500 High Cpu Action Plan.No.4
clear counter //waiting 5 min Show int stats Show interface switching Show ip traffic Show ip arp summary //gather twice and with 5 min interval Show ip arp Show mac-address-table count Show mac-address-table aging Show ip route Show ip cef Show plat soft ip route all Show plat soft ip route sum Show plat soft ip adj all show plat soft ip route network 0.0.0.0 0.0.0.0 Show plat hard ip route all Show plat hard ip route sum Show plat hard ip adj all show adjacency summary