The rmon history command adds an entry to the history control table.
The undo rmon history command deletes an entry from the history control table.
rmon history entry-number buckets number interval sampling-interval [ owner owner-name ]
undo rmon history entry-number
Parameter | Description | Value |
---|---|---|
entry-number | Specifies the index of the entry to be added or deleted. | The value is an integer that ranges from 1 to 65535. |
buckets number | Indicates the maximum number of records in the history control table. | The value is an integer that ranges from 1 to 10. |
interval sampling-interval | Specifies the sampling interval. | The value is an integer that ranges from 5 to 3600, in seconds. |
owner owner-name | Indicates the owner of the entry in the history control table. | The name is a string of 1 to 127 case-sensitive characters without spaces. When quotation marks are used around the string, spaces are allowed in the string. |
Ethernet interface view, GE interface view, XGE interface view, 25GE interface view, MultiGE interface view, 40GE interface view, 100GE interface view
Usage Scenario
To collect statistics on the specified interface at an interval and save the statistics for future retrieval, run the rmon history command to configure a history control table and add an entry to the table. The system can periodically collect statistics on each type of traffic, including bandwidth usage, number of error packets, and total number of packets.
Precautions
The number of stored records is determined by the buckets number parameter. When the number of records in the table reaches the maximum, the system overwrites the old records with new ones. Statistics include the number of packets, broadcast packets, and multicast packets received by the interface within a sampling interval. You can run the display rmon history command to view history sampling results.
In versions earlier than V200R019C00, this command cannot be configured on Eth-Trunk member interfaces. Starting from V200R019C00, this command can be configured on Eth-Trunk member interfaces.
# Configure a history control table and add an entry with index 1 to the table. Set the maximum number of entries in the table to 10, sampling interval to 5 seconds, and creator to user1.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] rmon history 1 buckets 10 interval 5 owner user1