Event_Register_Snmp_Notification - Cisco ASR 9000 Serie Configuration Manuals

Aggregation services router system
Table of Contents

Advertisement

Embedded Event Manager Event Registration Tcl Command Extensions
Set _cerrno
No

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}
[src_ip_address ?]
[dest_ip_address ?]
[queue_priority {normal|low|high|last}]
[maxrun ?]
[nice {0|1}]
[default ?]
[direction {incoming|outgoing}]
[msg_op {drop|send}]
Argument
tag
oid
oid_val
op
src_ip_address
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
108
Configuring and Managing Embedded Event Manager Policies
(Optional) String identifying a tag that can be used
with the trigger Tcl command extension to support
multiple event statements within a Tcl script.
(Mandatory) OID number of the data element in
SNMP dot notation (for example, 1.3.6.1.2.1.2.1.0).
If the specified OID ends with a dot (.), then all OIDs
that start with the OID number before the dot are
matched. It supports all OID supported by SNMP in
XR.
(Mandatory) OID value with which the current OID
data value should be compared to decide if the SNMP
event should be raised.
(Mandatory) Comparison operator used to compare
the current OID data value with the SNMP Protocol
Data Unit (PDU) OID data value; if this is true, an
event is raised.
(Optional) Source IP address where the SNMP
notification trap originates. The default is all; it is set
to receive SNMP notification traps from all IP
addresses. This option will not be supported in XR
as src_ip_address is only for incoming trap which is
not supported in EEM XR.

Advertisement

Table of Contents
loading

Table of Contents