cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
654
Views
10
Helpful
3
Replies

EEM Script for monitoring CPU core 1 on C4506-E.

Tinz
Level 1
Level 1

Hi Everyone.

I just found CPU core 01 spikes many time on C4506-E.

Can I make a EEM Script and use iod 1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 for collect logs during CPU spikes on CPU 01?

3 Replies 3

Hello,

here is a script that should work. You might need to define your own entry-val and poll interval values.

event manager applet CPU_MON
event snmp oid 1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 get-type next entry-op le entry-val 10 poll-interval 1
action 1.0 cli command "enable"
action 2.0 info type snmp oid 1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 get-type next
action 3.0 syslog msg "CPU Spike on Core 01 = $_info_snmp_value"

Hi Georg

Thank you for your answer. Currently I have installed and define script work well with entry-val 10 and then I adjusted to 70, but script doesn't collect logs when CPU core 1 spike over 70% and core 0 running 40%.

I'm not sure 1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 is average between core 0 and core 1.

Hello,

the OID looks like the correct one.

I changed the script a bit (see below), can you post the one you are actually using ?

event manager applet CPU_MON
event snmp oid 1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 get-type exact entry-op ge entry-val 70 poll-interval 1
action 1.0 cli command "enable"
action 2.0 info type snmp oid 1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 get-type exact
action 3.0 syslog msg "CPU Spike on Core 01 = $_info_snmp_value"