The rmon event command adds an entry to the event table.
The undo rmon event command deletes an entry from the event table.
rmon event entry-number [ description string ] { log | trap object | log-trap object | none } [ owner owner-name ]
undo rmon event 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. |
description string | Specifies the event description. | The value is a string of 1 to 127 characters. |
log | Records a log for the event. | - |
trap | Sends a trap to the NMS. | - |
object | Specifies the community name of the NMS receiving the trap. | The value is a string of 1 to 127 characters. |
log-trap | Records a log and sends a trap to the NMS for the event. | - |
none | Indicates that no action is taken for the event. | - |
owner owner-name | Indicates the creator of the event entry. | 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. |
Usage Scenario
This command specifies whether to record a log or send a trap for events. When an error occurs in the system, the RMON alarm function triggers the corresponding event. You can run the rmon event command to configure an event table and add an entry to the table. The entry specifies whether to record a log or send a trap to the NMS for the event.
Prerequisites
The rmon alarm command is executed to configure the alarm objects. Otherwise, no alarm will trigger the event.