You can deploy something like this ===========================
event manager applet cpuspike
event snmp oid "184.108.40.206.220.127.116.11.18.104.22.168.1.10.1" get-type next
entry-op ge entry-val "50" exit-time 60 poll-interval 1
action 1.0 syslog msg "CPU Spike Detected - Please issue more
flash:cpuinfo for data"
action 2.0 cli command "en"
action 3.0 cli command "show proc cpu sort | append flash:cpuinfo"
action 4.0 cli command "show proc cpu history | append flash:cpuinfo"
action 5.0 cli command "show interface | append flash:cpuinfo" ===========================
This will poll on a 1 second interval and trigger anytime CPU is over
50 percent. After it fires it will sleep for 60 seconds before
attempting to run a second time.
Since this requires enable mode you may need to add "event manager
session cli username <username>" to the global config where the
username will be someone with the authorization to run the commands
I'd suggest double checking this OID as I think this is from a script
I used on a 6k, not for the 7200. Make sure you are using the current
CPU OID and not the 5 second CPU OID.
If you want to test it just change the "entry-val 50" to say, 1 and
run a "show tech" or anything else that would cause a small bump in
CPU and you should see it trigger.
On Wed, May 9, 2012 at 11:28 PM, <email@example.com> wrote: > Perhaps EEM is something that could be helpful here...
>> We have a pair of Cisco 7204VXR with NPE-G2 running 15.1(4)M3. We are
>> default timers for the HSRP interfaces, and we are seeing nightly HSRP
>> changes. Not a lot, but 1-2 a night. This appears to only have started
>> recently. We are looking at logs, but I assume it's due to BGP cpu
>> exhaustion. We don't see any L2 errors on the VLAN where the HSRP is
>> running, so I don't think it's a physical problem.
>> What timers do people use for HSRP on BGP routers as a practice?
>> we want the smallest timers that would be possible.
>> Matthew Huff | 1 Manhattanville Rd
>> Director of Operations | Purchase, NY 10577
>> OTA Management LLC | Phone: 914-460-4039
>> aim: matthewbhuff | Fax: 914-460-4139
>> cisco-nsp mailing list firstname.lastname@example.org
>> archive at http://puck.nether.net/pipermail/cisco-nsp/
> cisco-nsp mailing list email@example.com
> archive at http://puck.nether.net/pipermail/cisco-nsp/
cisco-nsp mailing list firstname.lastname@example.org https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/