R0106-HP MSR Router Series Network Management and Monitoring Command Reference(V7)
204
value range for the event-entry2 argument is 0 to 65535. If 0 is specified, the alarm does not trigger any
event.
owner text: Specifies the entry owner, a case-sensitive string of 1 to 127 characters. The string can
contain spaces, but it cannot contain the question mark (?) or any unprintable control characters in the
US ASCII character set.
Usage guidelines
You can create up to 60 entries in the RMON alarm table.
Each alarm entry must have a unique alarm variable, sampling interval, sample type, rising threshold, or
falling threshold. You cannot create an alarm entry if all these parameters for the entry are the same as
an existing entry.
To trigger the event associated with an alarm condition, you must create the event with the rmon event
command.
RMON samples the monitored alarm variable at the specified sampling interval, compares the sampled
value with the predefined thresholds, and does one of the following:
• Triggers the event associated with the rising alarm if the sampled value is equal to or greater than
the rising threshold.
• Triggers the event associated with the falling alarm if the sampled value is equal to or less than the
falling threshold.
Examples
# Create an alarm entry to perform absolute sampling on the number of octets received on
GigabitEthernet 2/1/1 (object instance 1.3.6.1.2.1.16.1.1.1.4.1) at 10-seconds intervals. If the sampled
value reaches or exceeds 5000, log the rising alarm event. If the sampled value is equal to or less than
5, take no actions.
<Sysname> system-view
[Sysname] rmon event 1 log
[Sysname] rmon event 2 none
[Sysname] interface gigabitethernet 2/1/1
[Sysname-GigabitEthernet2/1/1] rmon statistics 1
[Sysname-GigabitEthernet2/1/1] quit
[Sysname] rmon alarm 1 1.3.6.1.2.1.16.1.1.1.4.1 10 absolute rising-threshold 5000 1
falling-threshold 5 2 owner user1
I n t h i s e x a m p l e , y o u c a n r e p l a c e 1. 3 . 6 .1. 2.1.16 .1.1.1. 4 .1 w i t h e t h e r S t a t s O c t e t s .1.
Related commands
• display rmon alarm
• rmon event
rmon event
Use rmon event to create an entry in the RMON event table.
Use undo rmon event to remove an entry from the RMON event table.
Syntax
rmon event entry-number [ description string ] { log | log-trap security-string | none | trap security-string }
[ owner text ]
undo rmon event entry-number