R2511-HP MSR Router Series Network Management and Monitoring Command Reference(V5)
50
{ If the result is equal to or smaller than the falling threshold, triggers the event specified by the
event-entry2 argument.
Examples
# Monitor the ratio of the broadcast packets received on the interface by using the private alarm.
C a l c u l a t e t h e p ri v a t e a l a r m v a r i a b l e s w i t h t h e (1. 3. 6 .1. 2.1.16.1.1.1. 6 .1 * 10 0 / .1.3. 6 .1. 2.1.16 .1.1.1.5 .1) f o r m u l a
and sample the corresponding variables at 10-second intervals. (Broadcast packet ratio= total number of
broadcast packets received on the interface/total number of packets received on the interface. The
formula is user configurable.)
The rising threshold (80%) triggers event 1 to log the event. The falling threshold (5%) triggers event 2, but
the event defines neither log nor trap action.
Set the lifetime of the entry to forever and owner to user1.
<Sysname> system-view
[Sysname] rmon event 1 log
[Sysname] rmon event 2 none
[Sysname] interface ethernet 1/1
[Sysname-Ethernet1/1] rmon statistics 1
[Sysname-Ethernet1/1] quit
[Sysname] rmon prialarm 1 (.1.3.6.1.2.1.16.1.1.1.6.1*100/.1.3.6.1.2.1.16.1.1.1.5.1)
BroadcastPktsRatioOfEth1/1 10 absolute rising-threshold 80 1 falling-threshold 5 2
entrytype forever owner user1
1. 3 . 6 .1. 2 .1.16 .1.1.1. 6 .1 i s t h e O I D o f t h e n o d e e t h e r S t a t s B r o a d c a s t P k t s .1, a n d 1. 3 . 6 .1. 2.1.16 .1.1.1. 5 .1 i s t h e
OID of the node etherStatsPkts.1. 1 indicates the serial number of the interface statistics entry. Therefore,
if you execute the rmon statistics 5 c o m m a n d , y o u s h o u l d u s e 1.3 . 6 .1.2.1.16 .1.1.1. 6 . 5 a n d
1. 3. 6 .1. 2.1.16 .1.1.1. 5. 5.
This example enables the RMON agent to do the following:
• Samples and monitors interface Ethernet1/1.
• If the portion of incoming broadcast packets in the total traffic crosses 80%, the system logs the
event. If the portion is less than or equal to 5%, the system takes no action. To view the event log,
use the display rmon eventlog command.
Related commands
• display rmon prialarm
• rmon event
• rmon history
• rmon statistics
rmon statistics
Use rmon statistics to create an entry in the RMON statistics table.
Use undo rmon statistics to remove an entry from the RMON statistics table.
Syntax
rmon statistics entry-number [ owner text ]
undo rmon statistics entry-number










