15.4. RMON Commands

15.4.1. rmon collection stats

Command Purpose

Use this command to enable RMON statistic collection on the interface.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

rmon collection stats ID ( owner OWNER | )

no rmon collection stats ID

Parameter

Parameter Description

Parameter Value

ID

Specify the RMON group of statistics

1-65535

owner OWNER

The owner identity of thestatistic.(optional)

Up to 15 characters

Command Mode

Interface Configuration

Default

None

Usage

To create one statistic only on a certain interface

Examples

This example shows how to collect RMON statistics for the owner test:

Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# rmon collection stats 1 owner test

15.4.2. rmon collection history

Command Purpose

Use this command to enable RMON history collection for the specified number of buckets and time period.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

rmon collection history INDEX ( buckets NUMBER | ) ( interval INTERVAL |) ( owner OWNER | )

no rmon collection history INDEX

Parameter

Parameter Description

Parameter Value

INDEX

Specify the maximum number of buckets desired for the RMONSpecify the maximum number of buckets desired for the RMONCollection history group of statistics.

1-65535

buckets NUMBER

Specify the maximum number of buckets desired for the RMON collection history group of statistics.

1-65535

interval INTERVAL

Specify the number of seconds in each polling cycle.

1-3600

owner OWNER

The owner identity of history group (optional)

Up to 15 characters

Command Mode

Interface Configuration

Default

None

Usage

Use this command to enable a history statistics on a certain interface.

Examples

This example shows how to enable history RMON statistics on eth-0-1:

Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# rmon collection history 1 buckets 1000 interval 100 owner test

Related Commands

show rmon history

15.4.3. rmon event

Command Purpose

Use this command to add an event to RMON event table.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

rmon event INDEX ( log | ) ( trap TRAP | ) ( description DESCRIPTION | ) ( owner OWNER | )

no rmon event Index

Parameter

Parameter Description

Parameter Value

INDEX

Event index.

1-65535

log

Generate a RMON log when event is triggered

-

trap TRAP

Trap community

Up to 127 characters

description DESCRIPTION

Specify the description string for the event default isSpecify the description string for the event (default isRMON_SNMP)

Up to 127 characters

owner OWNER

The owner name (default is RMON_SNMP)

Up to 15 characters

Command Mode

Global Config

Default

None

Usage

Create an event is for RMON alarm. Permit event special triggered operate. Log can be sent by trap.

Examples

This example shows how to create an event:

Switch# configure terminal
Switch(config)# rmon event 1 log trap public description reach_max owner test

Related Commands

show rmon event

15.4.4. rmon alarm

Command Purpose

Use this command to set an alarm on a MIB object.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

rmon alarm INDEX OID interval INTERVAL ( delta | absolute ) rising-threshold RTHRE ( event numbs | ) falling-threshold FTHRE ( event NUMBER | ) ( owner OWNER | )

no rmon alarm Index

Parameter

Parameter Description

Parameter Value

INDEX

Alarm index.

1-65535

OID

- Variable forsetting alarm(etherStatsEntry.m.n)

MIB OID

INTERVAL

Specify the time in seconds the alarm monitors the MIB object(seconds).

1-65535

delta

Specify the delta keyword to test the change between samples of a MIB variable

-

absolute

Specify the absolute keyword to test each MIB variable directly

-

rising-threshold RTHRE

Alarm rising threshold.

-2147483648 -2147483646

event numbs

Specify the event number to trigger when the falling threshold

1-65535

falling-threshold FTHRE

Alarm falling threshold.

- -2147483648-2147483646

event NUMBER

Specify the event number to trigger when the falling threshold

1-65535

owner OWNER

exceeds its limit.

Up to 15 characters

Command Mode

Global Config

Default

None

Usage

We need to create events for rising threshold and falling threshold first before we create an alarm for a mib.

Also the statistics need to be created on an interface, because we only support to set alarm monitor on etherStatsEntry.

Examples

This example shows how to set an alarm:

itch# configure terminal
Switch(config)# rmon alarm 1 etherStatsEntry.3.1 interval 10 delta rising-threshold 1000 event 1 falling-threshold 5 event 1 owner test

Related Commands

None

15.4.5. show rmon statistics

Command Purpose

Use this command to show rmon statistics.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show rmon statistics ( ID | )

Parameter

Parameter Description

Parameter Value

ID

Statistics index

1-65535

Command Mode

Privileged EXEC

Default

None

Usage

Show the interface statistics which collect by RMON

Examples

This example shows how to show rmon statistics:

Switch# show rmon statistics

  Rmon collection index 1
        Statistics ifindex = 1, Owner: RMON_SNMP
        Input packets 0, octets 0, dropped 0
        Broadcast packets 0, multicast packets 0, CRC alignment errors 0, collisions 0
        Undersized packets 0, oversized packets 0, fragments 0, jabbers 0
        # of packets received of length (in octets):
        64: 0,  65-127: 0, 128-255: 0
        256-511: 0,  512-1023: 0, 1024-max: 0

Related Commands

None

15.4.6. show rmon history

Command Purpose

Use this command to show rmon history statistics.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show rmon history ( ID | )

Parameter

Parameter Description

Parameter Value

ID

History index

1-65535

Command Mode

Privileged EXEC

Default

None

Usage

Show the interface history statistics which collect by RMON

Examples

This example shows how to show rmon history statistics:

Switch# show rmon history

  History index = 1
        Data source ifindex = 1 
        Buckets requested = 1000 
        Buckets granted = 1000 
        Interval = 100 
        Owner: test 
        Sample # 1 Begin at 00:30:07
         Received 00 octets, 00 packets
         00 broadcast and 00 multicast packets
         00 undersized and 00 oversized packets
         00 fragments and 00 jabbers
         00 CRC alignment errors and 00 collisions.
         # of dropped packet events is 00
         Network utilization is estimated at 0
        Sample # 2 Begin at 00:31:47
         Received 00 octets, 00 packets
         00 broadcast and 00 multicast packets
         00 undersized and 00 oversized packets
         00 fragments and 00 jabbers
         00 CRC alignment errors and 00 collisions.
         # of dropped packet events is 00
         Network utilization is estimated at 0
        Sample # 3 Begin at 00:33:27
         Received 00 octets, 00 packets
         00 broadcast and 00 multicast packets
         00 undersized and 00 oversized packets
         00 fragments and 00 jabbers
         00 CRC alignment errors and 00 collisions.
         # of dropped packet events is 00
         Network utilization is estimated at 0 

Related Commands

None

15.4.7. show rmon event

Command Purpose

Use this command to show rmon event.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show rmon event ( ID | )

Parameter

Parameter Description

Parameter Value

ID

Event index.

1-65535

Command Mode

Privileged EXEC

Default

None

Usage

Show rmon events information

Examples

This example shows how to show rmon event:

Switch# show rmon event

 event Index = 1
       Description: RMON_SNMP
       Event type Log & Trap
       Event community name public
       Last Time Sent = 00:00:00
       Owner  test

Related Commands

None

15.4.8. show rmon alarm

Command Purpose

Use this command to show rmon alarm

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show rmon alarm ( ID | )

Parameter

Parameter Description

Parameter Value

ID

Alarm index.

1-65535

Command Mode

Privileged EXEC

Default

None

Usage

Show rmon alarm information

Examples

This example shows how to show rmon alarm:

Switch# show rmon alarm

alarm Index = 1 
alarm status = VALID 
        alarm Interval = 3600 
        alarm Type is Delta 
        alarm Value  = 00 
        alarm Rising Threshold = 100 
        alarm Rising Event = 1 
        alarm Falling Threshold = 10 
        alarm Falling Event = 1 
        alarm Owner is test

Related Commands

None

15.4.9. rmon clear counters

Command Purpose

Use this command to clear rmon counters.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

rmon clear counters

Command Mode

Interface Configuration

Default

None

Usage

Clear counters on a interface

Examples

This example shows how to clear rmon counters:

Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# rmon clear counters

Related Commands

None

15.4.10. debug rmon

Command Purpose

Use this command to open rmon debug.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

debug rmon

no rmon debug

Command Mode

Privileged EXEC

Default

None

Usage

Open rmon debug

Examples

This example shows how to open rmon debug:

Switch# debug rmon

Related Commands

None