最近监控软件上经常报cisco交换机cpu利用率过高的问题,今天上设备上看了下,具体现象如下:
768775777888776776778777777678757775797688867688976758767779976789867777
560538741113526088064911974762696428223920121761145382324011370241332623
100
90 * * * ** *
80 * ** * **** * *** ** *** * * *** *** * *** *** *
70 ***** ************************* *** ******* ******** ** ****** **** **
60 **********************************************************************
50 **********************************************************************
40 **********************************************************************
30 ######################################################################
20 ######################################################################
10 ######################################################################
0....5....1....1....2....2....3....3....4....4....5....5....6....6....7..
0 5 0 5 0 5 0 5 0 5 0 5 0
CPU% per hour (last 72 hours)
* = maximum CPU% # = average CPU%
这是最近三天设备cpu的使用情况,最大利用率经常会到90%,平均利用率也在30%左右,通过#sh processes cpu monitor 查看到地是哪个进程占用的。
SW#sh processes cpu monitor
CPU utilization for five seconds: 30%/0%; one minute: 31%; five minutes: 32%
PID Runtime(ms) Invoked uSecs 5Sec 1Min 5Min TTY Process
160 1166815137 2680698566 0 20.00% 19.91% 19.93% 0 Hulc LED Process
元凶被揪出来了,是一个叫Hulc LED Process的进程导致整个设备的cpu使用率飙升,到Cisco网站上查询了下Hulc LED Process这个进程到底是干嘛的,为什么cpu使用率会这么高。Hulc LED Process 作用如下:
The "HulcLED" process does following tasks:
- Check Link statuson every port // 检查每个接口状态
- If the switchsupports POE, it checks to see if there is a Power Device (PD) detected//检查POE状态,是否插入了需要有POE供电的设备
- Check the statusof the transceiver//检查SFP等模块状态
- Update Fan status//检查风扇状态
- Set Main LED andports LEDs//设置设备、接口LED灯(颜色、接口状态变化后,LED灯相应变化)
- Update both PowerSupplies and RPS//检查、更新电源的状态
- Check on systemtemperature status//检查系统的温度
看它需要干这么多活,思科网站也给说法了,正常这个进程cpu利用率在30%上下都是正常的,无需担心设备性能问题。