CISCO-CPU ISSUE

Method1:-


Switch01#show processes cpu history
                                                             
    9999999999999999999999999999999999999999999999999999999999
    5555999999999999999888889999988888999997777799999111119999
100 *************************************************     ****
 90 **********************************************************
 80 **********************************************************
 70 **********************************************************
 60 **********************************************************
 50 **********************************************************
 40 **********************************************************
 30 **********************************************************
 20 **********************************************************
 10 **********************************************************
   0....5....1....1....2....2....3....3....4....4....5....5....
             0    5    0    5    0    5    0    5    0    5   
               CPU% per second (last 60 seconds)

Switch01#show processes cpu sorted | i e 0.0
CPU utilization for five seconds: 99%/0%; one minute: 97%; five minutes: 98%
 PID Runtime(ms)   Invoked      uSecs   5Sec   1Min   5Min TTY Process
  56     6220456 444066129         14 91.77% 92.82% 93.27%   0 Cat4k Mgmt LoPri
  55  27726431353101333254          0  6.78%  4.08%  4.01%   0 Cat4k Mgmt HiPri
 116    25773610 710067067         36  0.31%  0.26%  0.24%   0 Spanning Tree   

Switch01#show platform health

                     %CPU   %CPU    RunTimeMax   Priority  Average %CPU  Total
                     Target Actual Target Actual   Fg   Bg 5Sec Min Hour  CPU
RkiosObflMan           0.50   0.00      4      0  100  500    0   0    0  127:59 
.
.
K5 L2 Hardware Addre   2.00  89.87     20     10  100  500  122 121   93  105441:30
.

Switch01#sh spanning-tree detail | in ieee|from|occurr|is exec        
Switch01#sh int counters err
Switch01#   sh int counters all
Switch01#     clear counters int

One of the best ways to see a problem like this is to use mac address-table notification:

Switch01(config)#mac address-table notification mac-move

Switch01#sh  log 
Dec  8 20:45:25.758 UTC: %C4K_EBM-4-HOSTFLAPPING: Host 00:05:64:30:72:3B in vlan 733 is moving from port Gi1/18 to port Te1/52
Dec  8 20:45:25.758 UTC: %C4K_EBM-4-HOSTFLAPPING: Host 00:05:64:30:72:3B in vlan 732 is moving from port Te1/52 to port Gi1/18


We need to check the device connected to the above two ports and fixing the MAC flap will fix the CPU issues.

Additionally, below debug can also help and it’s safe to run during high CPU


debug platform packet all receive buffer ------------> Enable debug
show platform cpu packet buffered ---------------> Packets that were captured after enabling the debugs.
debug platform packet all count --------------> Enable debug command to enable packet count per interface.

show platform cpu packet statistics ----------> This provides packet received on per interface basis.



General commands for CPU issue:

term width 511
show tech
show ver 
show module 
show processes cpu history 
show system resources 
show processes cpu sort 
show hardware internal cpu-mac inband stats 
show hardware internal cpu-mac inband counters
show span get | no
show hardware internal bcm-usd errors
show hardware internal bcm-usd event-history msgs
show hardware internal bcm-usd event-history errors
show hardware internal bcm-usd config tlv-type asic 0
show processes cpu sort
show tech-support bcm-usd | no-more

show tech-support detail | no 

No comments:

Post a Comment