Purpose
Command 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
Summary of Contents for Catalyst 2960 Series
Page 96: ......
Page 196: ......
Page 250: ......
Page 292: ......
Page 488: ......
Page 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Page 590: ......
Page 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Page 620: ......
Page 750: ......
Page 1604: ......
Page 1740: ......
Page 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Page 2106: ......
Page 2118: ......
Page 2164: ......