< Home

rmon event

Function

The rmon event command adds an entry to the event table.

The undo rmon event command deletes an entry from the event table.

Format

rmon event entry-number [ description string ] { log | trap object | log-trap object | none } [ owner owner-name ]

undo rmon event entry-number

Parameters

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.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# Send a trap to the NMS for event 10.

<HUAWEI> system-view
[HUAWEI] rmon event 10 trap public
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >