
114
NOTE:
•
An entry cannot be created if the values of the specified event description (
description
string), event type
(
log
,
trap
,
logtrap
or
none
), and community name (
trap-community or log-trapcommunity) to be
identical to those of the existing event entry in the system.
•
Up to 60 event entries can be created.
Examples
# Create event 10 in the RMON event table.
<Sysname> system-view
[Sysname] rmon event 10 log owner user1
rmon history
Syntax
rmon history
entry
-
number
buckets
number
interval
sampling
-
interval
[
owner
text
]
undo rmon history
entry
-
number
View
Layer 2 Ethernet port view, Layer 3 Ethernet port view
Default level
2: System level
Parameters
entry
-
number:
Specifies the history control entry index, which ranges 1 to 65535.
buckets
number
: Specifies the history table size for the entry, which ranges from 1 to 65,535.
interval
sampling
-
interval
: Specifies the sampling period, which ranges from 5 to 3600 seconds.
owner
text
: Specifies the owner of the entry, a case-sensitive string of 1 to 127 characters that can contain
spaces.
Description
Use the
rmon history
command to create an entry in the RMON history control table.
Use the
undo rmon history
command to remove a specified entry from the RMON history control table.
When an entry is created, the system periodically samples the number of packets received/sent on the
current interface, and saves the statistics as an instance under the leaf node of the etherHistoryEntry table.
The maximum number of statistics records can be saved for the entry is specified by
buckets
number
. If
the maximum number of the statistics records for the entry has been reached, the system deletes the
earliest record to save the latest one. The statistics include total number of received packets on the current
interface, total number of broadcast packets, total number of multicast packets in a sampling period, and
so on.
After you create an entry in the history control table, if the specified history table size for the entry
exceeds that supported by the device, the entry is created. However, the validated value of the history
table size for the entry is that supported by the device. To view the configuration result, use the
display
rmon history
command.