I have this script which I'm trying to collect snmp stack based on the %SNMP-3-INPUT_QFULL_ERR. But my concerns is that when these error starts they run for about 2 hours and I get thousands of syslog entries for this error. I want to be able to limit this script and may run once or twice regarldess of how many error I get. Can someone assist me in tweaking this?
Thanks.
event manager session cli username "username"
event manager applet SNMP_STACK
event syslog pattern "%SNMP-3-INPUT_QFULL_ERR" occurs 32
action 1.0 cli command "enable"
action 2.1 cli command "show clock | append bootflash:SNMP_STACK.TXT"
action 2.2 cli command "show proc cpu sort | append bootflash:SNMP_STACK.TXT"
action 3.1 cli command "show stacks 560 | append bootflash:SNMP_STACK.TXT"
action 3.2 cli command "show stacks 560 | append bootflash:SNMP_STACK.TXT"
action 3.3 cli command "show stacks 560 | append bootflash:SNMP_STACK.TXT"
action 3.4 cli command "show stacks 560 | append bootflash:SNMP_STACK.TXT"
action 3.5 cli command "show stacks 560 | append bootflash:SNMP_STACK.TXT"
action 3.6 cli command "show stacks 560 | append bootflash:SNMP_STACK.TXT"
action 3.7 cli command "show stacks 560 | append bootflash:SNMP_STACK.TXT"
action 3.8 cli command "show stacks 560 | append bootflash:SNMP_STACK.TXT"
action 3.9 cli command "show stacks 560 | append bootflash:SNMP_STACK.TXT"