rmon event

Function

The rmon event command configures a way to process an event: to record a log or send trap messages.

The undo rmon event cancels the configuration.

By default, no event is triggered. Therefore, no log is recorded, and no trap message is sent.

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 number of an event MIB entry.

The value is an integer ranging from 1 to 65535.

description string

Specifies event descriptions.

The value is a string of 1 to 127 characters.

When quotation marks are used around the string, spaces are allowed in the string.

log

Logs an event.

-

trap

Sends a trap message about an event to an NMS.

-

object

Specifies the community name of the NMS receiving trap messages.

The name is a string of 1 to 127 characters.

log-trap

Logs an even and sends a trap message to an NMS.

-

none

Specifies no behaviors. If the event is triggered, the system will not handle it.

-

owner owner-name

Specifies an event owner that creates the event.

The name is a string of 1 to 127 case-sensitive characters, spaces not supported.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
perf-mgr write

Usage Guidelines

Usage Scenario

The RMON threshold alarm function triggers events. The rmon event command can be used to set a way to process the events, to record a log or send trap messages to the NMS.

Prerequisites

An alarm object has been configured using the rmon alarm command after you configure the way to process a specified event.

Example

# Enable a device to send a trap message about event 10 to an NMS.
<HUAWEI> system-view
[~HUAWEI] rmon event 10 trap public
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >