PurposeCommand or Action
Example:
Device(config-applet)# event snmp oid
Example:
1.3.6.1.4.1.9.9.48.1.1.1.6.1 get-type exact
Example:
entry-op lt entry-val 5120000 poll-interval 90
Specifies the instance of a managed object and its value.
action label info type snmp var variable-name oid
oid-value oid-type oid-type-value
Step 5
•
In this example, the sysDescr.0 variable is used.
Example:
Device(config-applet)# action 1.3 info type
Example:
snmp var sysDescr.0 oid
Example:
1.3.6.1.4.1.9.9.48.1.1.1.6.1 integer 4220
Generates an SNMP trap when the EEM applet is
triggered.
action label info type snmp trap enterprise-oid
enterprise-oid-value generic-trapnum generic-trap-number
Step 6
specific-trapnum specific-trap-number trap-oid
trap-oid-value trap-var trap-variable
•
In this example, the authenticationFailure trap is
generated.
Example:
Device(config-applet)# action 1.4 info type
The specific trap number refers to the
enterprise-specific trap, which is generated
when an enterprise event occurs. If the generic
trap number is not set to 6, the specific trap
number you specify will be used to generate
traps.
Note
Example:
snmp trap enterprise-oid 1.3.6.1.4.1.1
Example:
generic-trapnum 4 specific-trapnum 7 trap-oid
Example:
1.3.6.1.4.1.1.226.0.2.1 trap-var sysUpTime.0
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1731
How to Write EEM Policies Using the Cisco IOS CLI