3.10.8 RMON Alarm Configuration

Use this command to configure RMON alarm on a port.

Command Syntax:
rmon alarm <id> { ifInOctets | ifInUcastPkts | ifInNUcastPkts | ifInDiscards | ifInErrors | ifInUnknownProtos | ifOutOctets | ifOutUcastPkts | ifOutNUcastPkts | ifOutDiscards | ifOutErrors | ifOutQLen } <ifIndex> <interval> {absolute | delta } rising-threshold <rising_threshold> <rising_event_id> falling-threshold <falling_threshold> <falling_event_id> { [ rising | falling | both ] }
Table 3-49. Command Description

Argument

Description

Parameter

<id>

Indicates the index of the entry. The range is from 1 to 65535.

ifInDiscards

The number of inbound packets that are discarded even the packets are normal.

ifInErrors

The number of inbound packets that contained errors preventing them from being delivered to a higher-layer protocol.

ifInNUcastPkts

The number of broadcast and multicast packets delivered to a higher-layer protocol

ifInOctets

The total number of octets received on the interface, including framing characters.

ifInUcastPkts

The number of uni-cast packets delivered to a higher-layer protocol.

ifInUnknownProtos

The number of inbound packets that are discarded because of an unknown or unsupported protocol.

ifOutDiscards

The number of outbound packets that are discarded event the packets is normal.

ifOutErrors

The number of outbound packets that could not be transmitted because of errors.

ifOutOctets

The number of octets transmitted out of the interface, including framing characters.

ifOutQLen

The length of the output packet queue (in packets).

ifOutUcastPkts

The number of uni-cast packets that request to transmit.

<ifIndex>

Indicates the port ID. If in a stacking switch, the value must add 1000000 * (switch ID − 1), for example, if the port is on switch 1, port 5, the value is 1000005.

<interval>

Indicates the interval in seconds for sampling and comparing the rising and falling threshold. The range is from 1 to 231− 1.

<rising_threshold>

Rising threshold value (−2147483648 to 2147483647).

<rising_event_id>

Rising event index (0–65535). If this value is zero, no associated event is generated, as zero is not a valid event index.

<falling_threshold>

Falling threshold value (−2147483648 to 2147483647)

<falling_event_id>

Falling event index (0−65535). If this value is zero, no associated event is generated, as zero is not a valid event index.

Default

N.A

Mode

Global Configuration mode

Usage

Configure Remote Monitoring alarm on an interface. To delete the entry, use the ‘no’ version of the command.

Example

Example 1:

Configure RMON alarm on port 3 with ID1, interval 50 sec, sampling directly.

(config)# rmon alarm 1 ifOutUcastPkts 1000003 50 absolute rising-threshold 70 1 falling-threshold 60 2 both

Example 2:

Delete RMON alarm entry ID1.

(config)# no rmon alarm 1