Command or Action
Step 7
action label info type snmp getid oid-value [community
community-string] [ipaddr ip-address]
Example:
Device(config-applet)# action 1.3 info type
Example:
snmp getid community public ipaddr 172.17.16.69
Step 8
exit
Example:
Device(config)# exit
Configuring EEM Applet for SNMP OID Notifications
Perform this task to configure SNMP notifications.
Before You Begin
• SNMP event manager must be configured using the snmp-server managercommand and SNMP agents
• SNMP traps and informs must be enabled by using the snmp-server enable traps event-manager and
must be configured to send and receive SNMP traps generated for an EEM policy.
snmp-server enable traps commands, to allow traps and inform requests to be sent from the device to
the event manager server.
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
How to Write EEM Policies Using the Cisco IOS CLI
Purpose
(Optional) Specifies if the individual variables should
be retrieved by the getid operation.
Exits global configuration mode and returns to
privileged EXEC mode.
1729