HP VPN Firewall Appliances System Management and Maintenance Command Reference
153
[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 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 GigabitEthernet 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 ]
undo rmon event entry-number
Views
System view
Default command level
2: System level
Parameters
entry-number: Specifies an event entry index in the range of 1 to 65535.
description string: Configures an event description, a string of 1 to 127 characters.
log: Logs the event when it occurs.
log-trap log-trapcommunity: Log and trap events. The system performs both logging and trap sending
when the event occurs. The log-trapcommunity argument indicates the community name of the network
management station that receives trap messages, a string of 1 to 127 characters.