77Configuring the RMON Ethernet statistics functionFollow these steps to configure the RMON Ethernet statistics function:To do… Use the command… RemarksEnter system view system-view —Enter Layer 2 Ethernet port view interface interface-type interface-number —Create an entry in the RMONstatistics table rmon statistics entry-number [ owner text ] RequiredNOTE:You can create one statistics entry per interface and up to 100 statistics entries on the device. When thenumber of statistics entries exceeds 100, you cannot add new entries.Configuring the RMON history statistics functionFollow these steps to configure the RMON history statistics function:To do… Use the command… RemarksEnter system view system-view —Enter Layer 2 Ethernet port view interface interface-type interface-number —Create an entry in the RMON historycontrol tablermon history entry-number buckets numberinterval sampling-interval [ owner text ] RequiredNOTE:• Theentry-number must be globally unique and cannot be used on another interface. Otherwise, theoperation fails.• You can configure multiple history entries on one interface, but the values of theentry-numberarguments must be different, and the values of thesampling-interval arguments must be different too.Otherwise, the operation fails.• Up to 100 history entries can be created for the switch.• When you create an entry in the history table, if the specified bucketsnumber argument exceeds thehistory table size supported by the device, the entry is created. However, the validated value of thebucketsnumber argument that corresponds to the entry is the history table size supported by the device.Configuring the RMON alarm functionConfiguration prerequisites• To enable the managed devices to send traps to the NMS when the NMS triggers an alarm event,configure the SNMP agent as described in the chapter “SNMP configuration” before configuringthe RMON alarm function.• If the alarm variable is the MIB variable defined in the history group or the Ethernet statistics group,make sure that the RMON Ethernet statistics function or the RMON history statistics function isconfigured on the monitored Ethernet port. Otherwise, the creation of the alarm entry fails, and noalarm event is triggered.