How to Write Embedded Event Manager Policies Using Tcl
SUMMARY STEPS
1. enable
2. configure terminal
3. event manager history size {events | traps} [size]
4. exit
5. show event manager history events [detailed] [maximum number]
6. show event manager history traps [server | policy]
DETAILED STEPS
Step 1
enable
Enables privileged EXEC mode. Enter your password if prompted.
Example:
Device> enable
Step 2
configure terminal
Enters global configuration mode.
Example:
Device# configure terminal
Step 3
event manager history size {events | traps} [size]
Use this command to change the size of the EEM event history table or the size of the EEM SNMP trap history table.
In the following example, the size of the EEM event history table is changed to 30 entries:
Example:
Device(config)# event manager history size events 30
Step 4
exit
Exits global configuration mode and returns to privileged EXEC mode.
Example:
Device(config)# exit
Step 5
show event manager history events [detailed] [maximum number]
Use this command to display information about each EEM event that has been triggered.
Example:
Device# show event manager history events
No.
Time of Event
1
Fri Sep
2
Fri Sep
3
Fri Sep
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1780
Event Type
9 13:48:40 2005
syslog
9 13:48:40 2005
syslog
9 13:48:40 2005
syslog
Name
applet: one
applet: two
applet: three