HP MSR2000/3000/4000 Router Series Network Management and Monitoring Command Reference
264
Parameters
oid oid: Specifies the OID of the monitored MIB variable, a string of 1 to 256 characters.
monitor-obj { get | next }: Specifies the SNMP operation used for sampling variable values. The get
keyword represents the SNMP get operation, and the next keyword represents the SNMP getNext
operation.
start-op start-op: Specifies the operator for comparing the sampled value with the start threshold. The
policy is triggered if the comparison result meets the condition. For keywords available for the start-op
argument, see Table 58.
star
t-val start-val: Specifies the start threshold to be compared with the sampled value. The start-val
argument can be any data type supported by SNMP, including numerals and character strings. (For
simplicity, 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 (" ").
restart-op op: Specifies the operator for comparing the sampled value with the restart threshold. The
policy is executed if the comparison result meets the condition. For keywords available for the start-op
argument, see Table 58.
re
start-op restart-val: Specifies the restart threshold to be compared with the sampled value. The
restart-val argument can be any data type supported by SNMP, including numerals and character strings.
(For simplicity, 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 (" ").
interval interval: Specifies the sampling interval in the range of 1 to 4294967295 seconds. The default
is 5 seconds.
Usage guidelines
Use SNMP event monitor policies to monitor value changes of variables by enabling EAA to perform
SNMP operations.
EAA uses the following process to monitor the value changes of a variable:
1. Compares the variable sample with the start threshold at sampling intervals by using the start
operator until the comparison result meets the condition.
2. Executes the policy.
3. Compares the variable sample with the restart threshold at sampling intervals by using the restart
operator until the comparison result meets the condition.
4. Executes the policy again.
This process cycles for the monitor policy to be executed and re-executed.
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.
Examples
# Configure a CLI-defined policy to get the value of the MIB variable 1.3.6.4.9.9.42.1.2.1.6.4 every five
seconds. Enable the system to execute the policy when the value is equal to 1, and then execute the policy
again when the value is equal to 2.
<Sysname> system-view
[Sysname] rtm cli-policy snmp
[Sysname-rtm-snmp] event snmp oid 1.3.6.4.9.9.42.1.2.1.6.4 get start-op eq start-val 1
restart-op eq restart-val 2 interval 5