CLI-defined policy view
Predefined user roles
oid oid: Specifies the OID of the monitored MIB variable, a string of 1 to 256 characters.
oid-val oid-val: Specifies the threshold to be compared with the sampled value. The oid-val argument can
be any data type supported by SNMP, including numerals and character strings. The CLI online help
system displays the value range as character strings of 1 to 512 characters. If the threshold value contains
spaces, you must enclose the value in quotation marks (" ").
op op: Specifies the operator for comparing the sampled value with the threshold. The policy is executed
if the comparison result meets the condition. For keywords available for the start-op argument, see
drop: Drops the notification if the comparison result meets the condition. If this keyword is not specified,
the system sends the notification.
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 one monitor policy. If the monitor policy already contains an event,
the new event replaces the old event.
# Configure a CLI-defined policy to monitor SNMP notifications that contain the variable OID
18.104.22.168.4.1.322.214.171.124. Enable the system to drop an SNMP notification and execute the policy if the
variable in the notification contains the "UPS:Returned from battery backup power" string.
[Sysname] rtm cli-policy snmp_notification
[Sysname-rtm-snmp_notification] event snmp-notification oid 126.96.36.199.4.1.3188.8.131.52
oid-val "UPS:Returned from battery backup power" op eq drop
Use event syslog to configure a Syslog event for a CLI-defined monitor policy.
Use undo event to delete the event in a CLI-defined monitor policy.
event syslog priority level msg msg-body occurs times period period
No log event is configured.