Wednesday, July 7, 2010

Notes and Reminders - Stuff to Look Into

Look into a Cisco config interpreter e.g. a language plugin file for Notepad ++


http://opensource-archive.org/showthread.php?t=91758
http://opensource-archive.org/showthread.php?t=116776


*Look into - Cisco Event Manager Commands
-Maybe use to log utilization locally.


process cpu threshold type total rising 70 interval 5 falling 40 interval 5

event manager applet capture_cpu_spike
 event snmp oid 1.3.6.1.4.1.9.2.1.56.0 get-type next entry-op ge entry-val "80" exit-time 10 poll-interval 1
 action 1.0  syslog msg "CPU Utilization is high"
 action 10.0 cli command "show ip traffic | append flash:cpuinfo2"
 action 2.0  cli command "en"
 action 2.1  cli command "terminal exec prompt timestamp2"
 action 3.0  cli command "show proc cpu sort | append flash:cpuinfo2"
 action 4.0  cli command "show proc cpu history | append flash:cpuinfo2"
 action 5.0  cli command "show proc cpu extended | append flash:cpuinfo2"
 action 6.0  cli command "show interfaces | append flash:cpuinfo2"
 action 7.0  cli command "show buffers input-interface FastEthernet0/0.1  packet | append flash:cpuinfo2"
 action 8.0  cli command "show buffers input-interface FastEthernet0/1 packet | append flash:cpuinfo2"
 action 9.0  cli command "show ip cef switch statistics feature | append flash:cpuinfo2"

No comments: