PurposeCommand or Action
Example:
Device(config-applet)#action 1.0 set varname 20
•
In this example, the value of the variable is set to 20.
Increments the value of variable by the specified long
integer.
action label increment variable-name long-integer
Example:
Device(config-applet)#action 2.0 increment
varname 12
Step 5
•
In this example, the value of the variable is
incremented by 12.
Configuring Event SNMP Object
Perform this task to register the Simple Network Management Protocol (SNMP) object event for an Embedded
Event Manager (EEM) applet that is run by sampling SNMP object.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
event manager applet applet-name
4.
event snmp-object oid oid-value type value sync {yes | no} skip {yes | no} istable {yes | no}
[default seconds] [maxrun maxruntime-number]
5.
exit
DETAILED STEPS
PurposeCommand or Action
Enables privileged EXEC mode.enable
Step 1
Example:
Device> enable
•
Enter your password if prompted.
Enters global configuration mode.configure terminal
Example:
Device# configure terminal
Step 2
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1740
How to Write EEM Policies Using the Cisco IOS CLI