12-12
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:
z
Sampling and monitoring interface GigabitEthernet 1/0/1
z
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.
rmon event
Syntax
rmon
event
entry-number
[
description
string
] {
log
|
log-trap
log
-
trapcommunity | none
|
trap
trap
-
community
} [
owner
text
]
undo rmon event entry
-
number
View
System view
Default Level
2: System level
Parameters
entry-number
: Event entry index, in the range 1 to 65,535.
description
string
: 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.
log
-
trapcommunity
indicates the community name of the network management
station that receives trap messages, a string of 1 to 127 characters.
Summary of Contents for E4510-48G
Page 109: ...2 18 Sysname interface bridge aggregation 1 Sysname Bridge Aggregation1 shutdown ...
Page 309: ...6 4 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address dhcp alloc ...
Page 324: ...8 3 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address bootp alloc ...
Page 530: ...2 5 Sysname mvlan 100 subvlan 10 to 15 ...
Page 739: ...8 15 Sysname system view Sysname port security trap addresslearned ...
Page 819: ...13 11 Sysname system view Sysname public key peer key2 import sshkey key pub ...
Page 914: ...5 17 Sysname reset oam ...
Page 1064: ...5 30 Slot 2 Set next configuration file successfully ...
Page 1325: ...21 13 Examples Redirect to member 2 Sysname irf switch to 2 Sysname Slave 2 ...