Event Snmp-Notification - H3C S6550X-HI Series Command Reference Manual

Table of Contents

Advertisement

<Sysname> system-view
[Sysname] rtm cli-policy test
[Sysname-rtm-test] event snmp oid 1.3.6.4.9.9.42.1.2.1.6.4 monitor-obj get start-op eq
start-val 1 restart-op eq restart-val 2 interval 5

event snmp-notification

Use
event snmp-notification
policy.
Use
undo event
Syntax
event snmp-notification oid oid oid-val oid-val op op [ drop ]
undo event
Default
No SNMP-Notification event is configured.
Views
CLI-defined policy view
Predefined user roles
network-admin
Parameters
: Specifies the OID of the monitored MIB variable, a string of 1 to 256 characters.
oid oid
oid-val oid-val
argument can be any data type supported by SNMP, including numerals and character strings. The
value range for the
contains spaces, you must enclose the value in quotation marks (" ").
: Specifies the operator for comparing the sampled value with the threshold. The policy is
op op
executed if the comparison result meets the condition. For keywords available for the
argument, see
: Drops the notification if the comparison result meets the condition. If you do not specify this
drop
keyword, the system sends the notification.
Usage guidelines
Use SNMP-Notification event monitor policies to monitor variables in SNMP notifications.
EAA executes an SNMP-Notification event monitor policy when the value of the monitored variable in
an SNMP notification meets the specified condition.
You can configure only one event for a monitor policy. If the monitor policy already contains an event,
the new event replaces the old event.
For the command to take effect, enable SNMP before you execute this command.
Examples
# Configure a CLI-defined policy to monitor SNMP notifications that contain the use name variable
1.3.6.1.4.1.25506.2.2.1.1.2.1.0. Enable the system to execute the policy and drop the SNMP
notification if the use name variable value is admin.
<Sysname> system-view
[Sysname] rtm cli-policy test
to remove the event in a CLI-defined policy.
: Specifies the threshold to be compared with the sampled value. The
argument is a string of 1 to 512 characters. If the threshold value
oid-val
Table
6.
to configure an SNMP-Notification event for a CLI-defined
14
oid-val
start-op

Advertisement

Table of Contents
loading

Table of Contents