EEM - Extended Event Management

Cisco Nov 27, 2024

EEM Applet - Policy, triggers action

Triggers

  • Recurrence (Timer - CRON)
  • Counters
  • CLI Input - REGEX to match
  • Syslog messages - REGEX to match
  • SNMP Object
  • none - manually run

Actions

  • Reboot
  • Write to terminal
  • Send an email
  • Issue commands
  • SNMP Traps

Actions triggered by name alphabetically

event manager applet NAME

event cli pattern "shutdown"
event syslog pattern 
event snmp oid 
event timer

action 1.0 syslog msg ""
event manager applet CPU75

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 75
poll-interval 10

action 1.0 cli command "enable"
action 2.0 cli command "show process cpu"
action 3.0 mail server "10.1.10.25" to "[email protected]" from "[email protected]" subject "CPU Alert" body "$_cli_result"

To show created applets and to manually run

show event manger policy registered

event manager run NAME

Tags