R3721-F3210-F3171-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101
150
represents the index of the event triggered when the rising threshold is reached. event-entry1 ranges from
0 to 65,535. If 0 is specified, the alarm does not trigger any event.
falling-threshold threshold-value2 event-entry2: Sets the falling threshold, where threshold-value2
represents the falling threshold, in the range –2,147,483,648 to +2,147,483,647 and event-entry2
represents the index of the event triggered when the falling threshold is reached. event-entry2 ranges
from 1 to 65,535. If 0 is specified, the alarm does not trigger any event.
owner text: Owner of the entry, a case-sensitive string of 1 to 127 characters that can contain spaces.
Description
Use rmon alarm to create an entry in the RMON alarm table.
Use undo rmon alarm to remove an entry from the RMON alarm table.
You can create up to 60 alarm entries.
To make sure that an alarm entry can take effect:
• Before creating an alarm entry, use the rmon event command to define the events to be referenced.
Otherwise, the alarm entry cannot trigger events, even if it can be created.
• If the alarm variable is an instance of the leaf node of the Ethernet statistics table etherStatsEntry
w i t h t h e O I D o f 1. 3 . 6 .1. 2 .1.16 .1.1.1, u s e t h e rmon statistics command to create a statistics entry on the
monitored Ethernet interface. If the alarm variable is an instance of the leaf node of the history
record table etherHistoryEntry with the OID of 1.3.6.1.2.1.16.2.2.1, use the rmon history command
to create a history entry on the monitored Ethernet interface. Otherwise, the alarm entry cannot
trigger events, even if it can be created.
• 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.
Related commands: display rmon alarm, rmon event, rmon history, and rmon statistics.
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 0/1
[Sysname-GigabitEthernet0/1] rmon statistics 1
[Sysname-GigabitEthernet0/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 i s t h e O I D o f t h e l e a f n o d e e t h e rS tatsOctets. It represents the statistics of the received
packets on the interface, in bytes. In the above example, you can use etherStatsOctets.1 to replace the