Event_reqinfo
"event_id %u event_type %u event_type_string {%s} %u event_pub_sec %u event_pub_msec %u"
"event_severity {%s} oid {%s} val {%s} delta_val {%s}"
DescriptionEvent Type
Unique number that indicates the ID for this published
event. Multiple policies may be run for the same
event, and each policy will have the same event_id.
event_id
Type of event.event_type
An ASCII string that represents the name of the event
for this event type.
event_type_string
The time, in seconds and milliseconds, when the event
was published to the EEM.
event_pub_sec event_pub_msec
SNMP event severity, which can be one of the
following values:
•
normal
•
minor
•
major
event_severity
Object ID of data element, in SNMP dot notation.oid
Value of the data element.val
Delta value between the value of the policies.delta_val
event_register_snmp_notification
Registers for a Simple Network Management Protocol (SNMP) notification trap event. Use this Tcl command
extension to run a policy when an SNMP trap with the specified SNMP object ID (oid) is encountered on a
specific interface or address. The snmp-server manager CLI command must be enabled for the SNMP
notifications to work using Tcl policies.
Syntax
event_register_snmp_notification [tag ?] oid ? oid_val ?
op {gt|ge|eq|ne|lt|le}
[maxrun ?]
[src_ip_address ?]
[dest_ip_address ?]
[queue_priority {normal|low|high|last}]
[maxrun ?]
[nice {0|1}]
[default ?]
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1938
event_register_snmp_notification