R3166-R3206-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101
126
represents the index of the event triggered when the rising threshold is reached. event-entry1 ranges from
0 to 65,535, with 0 meaning no corresponding event is triggered and no event action is taken when an
alarm is triggered.
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.
owner text: Owner of the entry, a string of 1 to 127 characters. It is case sensitive and space is
supported.
Description
Use the rmon alarm command to create an entry in the RMON alarm table.
Use the undo rmon alarm command to remove a specified entry from the RMON alarm table.
This command defines an alarm entry, so as to trigger the specified event when abnormity occurs. The
event defines how to deal with the abnormity. After you define an alarm entry, the system will obtain the
value of the monitored alarm variable at specified interval, and compares the sampled values with the
predefined threshold 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.
Note the following:
• Before creating an alarm entry, define the events to be referenced in the event table with the rmon
event command; otherwise, although the alarm entry can be created, no alarm event is triggered.
• If the alarm variable is an instance of the leaf node of the Ethernet statistics table etherStatsEntry
with the OID of 1.3.6.1.2.1.16.1.1.1, you must create a statistics entry on the monitored Ethernet
interface with the rmon statistics command; 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, you must create a
history entry on the monitored Ethernet interface with the rmon history command. Otherwise,
although the alarm entry can be created, no alarm event is triggered.
• An entry cannot be created if the values of the specified alarm variable (alarm-variable), sampling
interval (sampling-interval), sampling type (absolute or delta), rising threshold (threshold-value1)
and falling threshold (threshold-value2) are identical to those of the existing alarm entry in the
system.
• You can create up to 60 alarm entries.
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