05-14-2014 06:17 AM - edited 03-04-2019 10:59 PM
Hi,
I have this 3750 old switch running c3750-ipbase-mz.122-35.SE5.bin (I know it is old...) and it is used for connecting remote offices via 10Mbps circuits. It has been running fine for the last 12-month. But recently, I found the CPU usage is a little bit high, like in screenshot.
I know the average CPU usage is only about 10-20% but it bothers me that it constant has MAX CPU usage around 90+%...I also did show processes cpu sorted and the only thing having 3+% CPU usage is spanning tree...but that won't be enough to cause the CPU peaks... There is no special feature configure on the switch, just VLAN taggings.
Any suggestions on what to check?
05-14-2014 07:16 AM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
Your stats don't show a constant max CPU of 90+%, they show spikes of 90+%, happening (it appears) once every 30 minutes.
05-14-2014 08:04 AM
"Constant" might sound confusing but every 30-min bothers me really bad as well...
05-16-2014 03:29 PM
Hi,
Reboot it once and check the status.
05-20-2014 06:09 AM
It is hard to schedule an reboot of that switch but it will be used as the last resort.
05-22-2014 06:33 AM
Hi,
Please find the EEM script to configure it in the switch. After that please share the output.
event manager session cli username "Privlige 15 leve user"
event manager applet cpuspike
event snmp oid 1.3.6.1.4.1.9.2.1.56 get-type next entry-op ge entry-val "60" exit-time 20 poll-interval 1
action 1.0 syslog msg "chinese_ys: high CPU - check nvram:cpuinfo file."
action 2.0 cli command "enable"
action 3.0 cli command "show clock | append nvram:cpuinfo"
action 4.0 cli command "show proc cpu sort | append nvram:cpuinfo"
action 5.0 cli command "show log | append nvram:cpuinfo"
action 6.0 cli command "u all"
action 7.0 cli command "term length 24"
BR// Sanjay
05-22-2014 01:28 PM
Thanks, I will try those later.
But once it is configure, should I also syslog server or just show log will give me the capture?
05-24-2014 01:00 AM
Hi,
Please configure ur snmp polling server to poll in an interval of 4 hr or 6 hr.
And remove all the unnecessary snmp trap.
To troubleshoot step by step:
1) Remove the snmp config from the switch, now monitor.
2)Hope ur cpu is behaving normal, now configure the snmp and enable the required snmp trap, don't enable all and check the cpu .status.
Thanks...
Please rate if the EEM & tshoot has provided solution.
05-26-2014 07:46 AM
I will do this and report back.
05-27-2014 11:26 AM
I pretty much disabled all the health monitors of switch from SNMP server and output of sh processes cpu history is indeed reduced to MAX @ 80-85% from 95%. But still more than my expected 50-60%.
05-31-2014 02:21 PM
Please re-post your the below output.
show tech
show proc cpu sorted
05-24-2014 03:45 AM
Your IOS is pretty old. How about you upgrade your IOS to 12.2(55)SE9 and observe for any improvements?
05-26-2014 07:45 AM
it is running 12.2(55)SE9
05-23-2014 06:00 AM
05-14-2014 11:53 AM
Hello chinese_ys,
Do you have logging enabled ? can you share "show logging" output, maybe it will give us some indication about what the problem is.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: