CİSCO 3650 - 3850 HIGH CPU

 CİSCO 3650 - 3850 HIGH CPU (FED & IOSD)


Ağ yapınızda uzun süredir  3650 – 3850 Stack konumda çalışan anahtarlarınız var. Cihazlarınıza SSH erişimlerinde problem yaşıyorsunuz. Cihazlarınız üzerinde gerekli kontrolleri gerçekleştirdiğinizde ‘’fed’’ ve ‘’iosd’’ işlemlerinin büyük miktarda CPU kullandığı fark ettiniz.
Sorunu daha detaylı incelemek için:
 
3850#show processes cpu sort | exclude 0.0
Core 0: CPU utilization for five seconds: 53%; one minute: 39%;  five minutes: 41%
Core 1: CPU utilization for five seconds: 43%; one minute: 57%;  five minutes: 54%
Core 2: CPU utilization for five seconds: 95%; one minute: 60%;  five minutes: 58%
Core 3: CPU utilization for five seconds: 32%; one minute: 31%;  five minutes: 29%
PID    Runtime(ms) Invoked  uSecs  5Sec     1Min     5Min     TTY   Process
8525   472560      2345554  7525   31.37    30.84    30.83    0     iosd
5661   2157452     9234031  698    13.17    12.56    12.54    1088  fed
 
·         show process cpu detail process fed sorted | ex 0.0
·         show process cpu detail process iosd sorted | ex 0.0
 
 
3850#show processes cpu detailed process iosd sorted | exc 0.0
162    I           2832830     6643    0      93.11     92.55   92.33   0     NGWC L2M 
 
 
NGWC L2M işlemi İPv6 paketlerini işlemek için CPU kullanır. Ağ içerisinde İpv6 yapılandırmanız yok ise yapmanız gereken ipv6 mld snooping komutunu etkinleştirmenizdir. Bu problemin detayını araştırdığımızda INTEL NIC kartların yazılım hatasından dolayı bu problemin yaşandığı gözleniyor. (NIC kartlarını güncellemek tercih sebebidir.)
 
Yüksek CPU kullanımı sadece yukarıda yaşadığımız sebepten dolayı olmaz. CPU kullanımını gözetlemek için EEM Script ile farklı durumları inceleme fırsatımız vardır.
 
Örnek: CPU %60 değerinin üzerinde kaldığında tetiklenen SCRİPT ile Flash içerisinde log dosyası oluşturulacaktır.
process cpu threshold type total rising 60 interval 70 switch 1


event manager applet HIGH_CPU
 event syslog pattern "%CPUMEM-5-RISING_THRESHOLD" maxrun 300
 action 1.0 syslog msg "High CPU detected"
 action 2.0 cli command "enable"
 action 2.1 cli command "terminal len 0"
 action 2.5 cli command "show clock | append flash:HG-CPUlog.txt"
 action 3.0 cli command "show process cpu sorted | append flash:HG-CPUlog.txt"
 action 4.0 cli command "show processes cpu detailed process iosd sort | append flash:HG-CPUlog.txt"
 action 5.0 cli command "show processes cpu detailed process fed sort | append flash:HG-CPUlog.txt"
 action 6.0 cli command "show platform punt statistics port-asic 0 cpuq -1 direction rx | append flash:HG-CPUlog.txt"
 action 7.0 cli command "show platform punt statistics port-asic 1 cpuq -1 direction rx | append flash:HG-CPUlog.txt"
 action 8.0 cli command "show logging | append flash:HG-CPUlog.txt"
 action 8.5 cli command "terminal len 24"
 action 9.0 syslog msg "HIGH_CPU EEM Script finished running"
 action 9.5 cli command "end"
 action 1.0 syslog msg "High CPU detected"
 action 2.0 cli command "enable"
 action 2.1 cli command "terminal len 0"
 action 2.5 cli command "show clock | append flash:HG-CPUlog.txt"
 action 3.0 cli command "show process cpu sorted | append flash:HG-CPUlog.txt"
 action 4.0 cli command "show processes cpu detailed process iosd sort | append flash:HG-CPUlog.txt"
 action 5.0 cli command "show processes cpu detailed process fed sort | append flash:HG-CPUlog.txt"
 action 6.0 cli command "show platform punt statistics port-asic 0 cpuq -1 direction rx | append flash:HG-CPUlog.txt"
 action 7.0 cli command "show platform punt statistics port-asic 1 cpuq -1 direction rx | append flash:HG-CPUlog.txt"
 action 8.0 cli command "show logging | append flash:HG-CPUlog.txt"
 action 8.5 cli command "terminal len 24"
 action 9.0 syslog msg "HIGH_CPU EEM Script finished running"
 action 9.5 cli command "end"
end
!