R3303-HP HSR6800 Routers Network Management and Monitoring Command Reference

144
Make sure the alarm entry has different alarm variable (alarm-variable), sampling interval
(sampling-interval), sampling type (absolute or delta), rising threshold (threshold-value1) and
falling threshold (threshold-value2) than any existing alarm entry in the system.
When the alarm condition in an alarm entry occurs, its associated event is triggered to handle the alarm.
The system regularly samples the monitored alarm variables, compares the sampled values with the
predefined thresholds, and does the following:
If the rising threshold is reached, triggers the event specified by the event-entry1 argument.
If the falling threshold is reached, triggers the event specified by the event-entry2 argument.
Examples
# Add entry 1 in the alarm table and sample the node 1.3. 6 .1. 2.1.16 .1.1.1. 4 .1 a t a s a m p l i n g i n t e r v a l o f 10
seconds in absolute sampling type. Trigger event 1 when the sampled value is greater than or equal to
the rising threshold of 5000, and event 2 when the sampled value is less than or equal to the falling
threshold of 5. Set the owner of the entry to be user1.
<Sysname> system-view
[Sysname] rmon event 1 log
[Sysname] rmon event 2 none
[Sysname] interface gigabitethernet 2/0/1
[Sysname-GigabitEthernet2/0/1] rmon statistics 1
[Sysname-GigabitEthernet2/0/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
1.3.6.1.2.1.16.1.1.1.4 is the OID of the leaf node etherStatsOctets. It represents the incoming packet
statistics in bytes for interfaces. In this example, you can use etherStatsOctets.1 to replace the parameter
1. 3 . 6 .1. 2.1.16 .1.1.1. 4 .1, w h e r e 1 i n d i c a t e s t h e s e r i a l n u m b e r o f t h e i n t e r f a c e s t a t i s t i c s e n t r y. I f y o u e x e c u t e
the rmon statistics 5 command, you can use etherStatsOctets.5 to replace the parameter.
This example enables the RMON agent to do the following:
Samples and monitors interface GigabitEthernet 2/0/1.
Obtains the incoming-packet count in its absolute value. If the total number of incoming bytes
reaches 5000, the system logs the event. If the total number of incoming bytes is no more than 5,
the system takes no action.
Related commands
display rmon alarm
rmon event
rmon history
rmon statistics
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 log-trapcommunity | none | trap
trap-community } [ owner text ]