H3C S5120-SI Series Command Reference Manual page 684

Hide thumbs Also See for S5120-SI Series:
Table of Contents

Advertisement

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, 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 at a sampling interval of
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 1/0/1
[Sysname-GigabitEthernet1/0/1] rmon statistics 1
[Sysname-GigabitEthernet1/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 statistics of the
received packets on the interface, in bytes. In the above example, you can use etherStatsOctets.1 to
replace the parameter 1.3.6.1.2.1.16.1.1.1.4.1, where 1 indicates the serial number of the interface
statistics entry. Therefore, if you execute the rmon statistics 5 command, you can use
etherStatsOctets.5 to replace the parameter.
The above configuration implements the following:
Sampling and monitoring interface GigabitEthernet 1/0/1
Obtaining the absolute value of the number of received packets. If the total bytes of the received
packets reach 5,000, the system will log the event; if the total bytes of the received packets are no
more than 5, the system will take no action.
1-12

Advertisement

Table of Contents
loading

Table of Contents