No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

S1720, S2700, S5700, and S6720 V200R011C10

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
RMON and RMON2 Configuration Commands

RMON and RMON2 Configuration Commands

Command Support

Only S5720EI, S5720HI, S6720EI, and S6720S-EI support RMON2.

display rmon alarm

Function

The display rmon alarm command displays information about RMON alarm function.

Format

display rmon alarm [ entry-number ]

Parameters

Parameter Description Value
entry-number Displays information about the RMON alarm entry with the specified index. If no index is specified, information about all alarms is displayed. The value is an integer that ranges from 1 to 65535.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After configuring the RMON alarm thresholds using the rmon alarm command, you can run this command to view the configured alarm variables, sampling interval, thresholds, alarm triggering condition, and last sampled value.

Example

# Display the RMON alarm configurations.

<HUAWEI> display rmon alarm
Alarm table 1 owned by creator is valid.
  Samples delta value       : 1.3.6.1.2.1.16.1.1.1.4.1<etherStatsOctets.1>
  Sampling interval         : 5(sec)
  Rising threshold          : 1000 (linked with event 1)
  Falling threshold         : 100(linked with event 1)
  When startup enables      : risingOrFallingAlarm
  Latest value              : 0
Table 16-20  Description of the display rmon alarm command output

Item

Description

Alarm table entry-number owned by owner is status.

The current status of the alarm entry entry-number created by owner is status.

  • entry-number: alarm entry index, corresponding to the alarmIndex object in alarmTable.
  • owner: creator of the entry, corresponding to the alarmOwner object in alarmTable.
  • status: row status of the alarm entry with the specified index, corresponding to the alarmStatus in alarmTable: undercreation(invalid), valid(valid), invalid(no valid trap).

You can run the rmon alarm command to configure entry-number and owner.

Samples delta value

Alarm variable, namely, monitored MIB object, corresponding to the alarmVariable object in alarmTable.

You can run the rmon alarm command to configure this parameter.

Sampling interval

Sampling interval, in seconds, corresponding to the alarmInterval object in alarmTable.

You can run the rmon alarm command to configure this parameter.

Rising threshold

Rising threshold of the alarm table, corresponding to the alarmRisingThreshold object in alarmTable. When the sampled value reaches or exceeds the rising threshold, an alarm is generated.

You can run the rmon alarm command to configure this parameter.

Falling threshold

Falling threshold of the alarm table, corresponding to the alarmFallingThreshold object in alarmTable. When the sampled value reaches or falls below the falling threshold, an alarm is generated.

You can run the rmon alarm command to configure this parameter.

When startup enables

Condition that triggers alarms for the first time, corresponding to the alarmStartupAlarm object in alarmTable. When the sampled value exceeds the rising threshold or falls below the falling threshold, an alarm is generated. The values are:

  • risingOrFallingAlarm: generating an alarm when the sampled value exceeds the rising threshold or falls below the falling threshold
  • risingAlarm: generating an alarm when the sampled value exceeds the rising threshold
  • fallingAlarm: generating an alarm when the sampled value falls below the falling threshold

You can run the rmon alarm command to configure this parameter.

Latest value

Latest sampled value, corresponding to the alarmValue object in alarmTable.

Related Topics

display rmon event

Function

The display rmon event command displays information about RMON events.

Format

display rmon event [ entry-number ]

Parameters

Parameter Description Value
entry-number Displays the configuration of the RMON event with the specified index. If no index is specified, information about all events is displayed. The value is an integer that ranges from 1 to 65535.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After configuring the trap or log function for RMON events, you can run this command to view the configured event description, whether events trigger traps and logs, and latest event.

Example

# Display the RMON event configurations.

<HUAWEI> display rmon event
Event table 1 owned by Huawei is valid.
  Description: null.
  Will cause log  when triggered, last triggered at 0days 00h:24m:10s.69th.
Table 16-21  Description of the display rmon event command output

Item

Description

Event table entry-number owned by owner is status.

The current status of the event entry entry-number created by owner is status.

  • entry-number: event entry index, corresponding to the eventIndex object in eventTable.
  • owner: creator of the entry, corresponding to the eventOwner object in eventTable.
  • status: row status of the event entry with the specified index, corresponding to the eventStatus in eventTable: undercreation(invalid), valid(valid), invalid(no valid event).

You can run the rmon event command to configure entry-number and owner.

Description

Event description, corresponding to the eventDescription object in eventTable.

You can run the rmon event command to configure this parameter.

Will cause log when triggered

Whether events trigger traps or logs, corresponding to the eventType object in eventTable. The actions associated with events are as follows:

  • none: no action is taken.
  • log: a log is recorded when an event is triggered.
  • trap: a trap is sent to the NMS when an event is triggered.
  • log-trap: a log is recorded and a trap is sent to the NMS when an event is triggered.

You can run the rmon event command to configure this parameter.

last triggered at

Latest event time, corresponding to the eventLastTimeSent object in eventTable.

Related Topics

display rmon eventlog

Function

The display rmon eventlog command displays details about RMON event logs.

Format

display rmon eventlog [ entry-number ]

Parameters

Parameter Description Value
entry-number Displays the log with the specified index. If no index is specified, information about all event logs is displayed. The value is an integer that ranges from 1 to 65535.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

If you use the rmon event command to specify that a log is recorded for a certain event, the event record is stored in the LogTable. The command output includes event index, current event status, time the event triggers a log (calculated based on the number of seconds elapsed since system initialization or startup), and event description.

Example

# Display the log of RMON event 1.

<HUAWEI> display rmon eventlog 1
Event table 1 owned by User is valid.
  Generates eventLog 1.1 at 0days 00h:00m:07s.43th.
  Description: The 1.3.6.1.2.1.16.1.1.1.4.1 defined in alarm table 1, less than or equal to 100 with alarm value 0. Alarm sample type is delta.
  Generates eventLog 1.2 at 0days 00h:02m:26s.43th.
  Description: The 1.3.6.1.2.1.16.1.1.1.4.1 defined in alarm table 1, greater than or equal to 1000 with alarm value 10443. Alarm sample type is delta.
Table 16-22  Description of the display rmon eventlog command output

Item

Description

Event table entry-number owned by owner is status.

The current status of the event entry entry-number created by owner is status.

  • entry-number: event log entry index, corresponding to the logEventIndex object in LogTable.
  • owner: creator of the entry, corresponding to the eventOwner object in eventTable.
  • status: row status of the event entry with the specified index, corresponding to the eventStatus in eventTable: undercreation(invalid), valid(valid), invalid(no valid event log).

Generates eventLog at

Log creation time (time elapsed since system startup), corresponding to the logTime object in LogTable.

Description

Event description, corresponding to the logDescription object in LogTable.

display rmon history

Function

The display rmon history command displays RMON history sampling information.

Format

display rmon history [ interface-type interface-number ]

Parameters

Parameter Description Value
interface-type interface-number Displays RMON history sampling information on the specified Ethernet interface. If this parameter is not specified, RMON history sampling information on all interfaces is displayed. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After configuring RMON history statistics on an interface using the rmon history command, the system samples packets on the interface periodically. The display rmon history command can display history sampling information, including the number of sampled packets, history sampling interval, latest sampling information, Ethernet interface usage, number of CRC error packets, and total number of packets.

Example

# Display RMON history sampling information.

<HUAWEI> display rmon history
History control entry 1 owned by Creator is valid
  Samples interface     : GigabitEthernet0/0/1<ifIndex.402653698>
  Sampling interval     : 30(sec) with 10 buckets max
  Last Sampling time    : 0days 00h:09m:43s.00th
  Latest sampled values :
  octets               :645       , packets           :7
  broadcast packets    :7         , multicast packets :0
  undersize packets    :6         , oversize packets  :0
  fragments packets    :0         , jabbers packets   :0
  CRC alignment errors :0         , collisions        :0
  Dropped packet:      :0         , utilization       :0   

# Display RMON history sampling information on the specified interface.

<HUAWEI> display rmon history gigabitethernet 0/0/1
History control entry 1 owned by Creator is valid
  Samples interface     : GigabitEthernet0/0/1<ifIndex.402653698>
  Sampling interval     : 30(sec) with 10 buckets max
  Last Sampling time    : 0days 00h:09m:43s.00th
  Latest sampled values :
  octets               :645       , packets           :7
  broadcast packets    :7         , multicast packets :0
  undersize packets    :6         , oversize packets  :0
  fragments packets    :0         , jabbers packets   :0
  CRC alignment errors :0         , collisions        :0
  Dropped packet:      :0         , utilization       :0   
  History record:
  Record No.1 (Sample time: 0days 00h:02m:30s.01th)
  octets               :0         , packets           :0
  broadcast packets    :0         , multicast packets :0
  undersize packets    :0         , oversize packets  :0
  fragments packets    :0         , jabbers packets   :0
  CRC alignment errors :0         , collisions        :0
  Dropped packet:      :0         , utilization       :0
Table 16-23  Description of the display rmon history command output

Item

Description

History control entry entry-number owned by owner is status.

The current status of the event entry entry-number created by owner is status.

  • entry-number: history control table entry index, corresponding to the historyControlIndex object in historyControlTable.
  • owner: creator of the entry, corresponding to the historyControlOwner object in historyControlTable.
  • status: row status of the history control table entry with the specified index, corresponding to the historyControlStatus in historyControlTable: undercreation(invalid), valid(valid), invalid(no valid historical sampling information).

You can run the rmon history command to configure entry-number and owner.

Samples interface

Sampled interface.

Sampling interval

Sampling interval, in seconds, corresponding to the historyControlInterval object in historyControlTable. The system samples packets on the interface at this interval.

You can run the rmon history command to configure this parameter.

Last Sampling time

Latest sampling time, corresponding to the etherHistoryIntervalStart object in etherHistoryTable.

Latest sampled values

Latest sampling result.

octets

Number of bytes received in a sampling interval, corresponding to the etherHistoryOctets object in etherHistoryTable.

packets

Number of packets received in a sampling interval, corresponding to the etherHistoryPkts object in etherHistoryTable.

broadcast packets

Number of broadcast packets received in a sampling interval, corresponding to the etherHistoryBroadcastPkts object in etherHistoryTable.

multicast packets

Number of multicast packets received in a sampling interval, corresponding to the etherHistoryMulticastPkts object in etherHistoryTable.

undersize packets

Number of undersize packets received in a sampling interval, corresponding to the etherHistoryUndersizePkts object in etherHistoryTable.

oversize packets

Number of large packets received in a sampling interval, corresponding to the etherHistoryOversizePkts object in etherHistoryTable.

fragments packets

Number of undersize and CRC error packets received in a sampling interval, corresponding to the etherHistoryFragments object in etherHistoryTable.

jabbers packets

Number of large and CRC error packets received in a sampling interval, corresponding to the etherHistoryJabbers object in etherHistoryTable.

CRC alignment errors

Number of CRC error packets received in a sampling interval, corresponding to the etherHistoryCRCAlignErrors object in etherHistoryTable.

collisions

Number of collision packets received in a sampling interval, corresponding to the etherHistoryCollisions object in etherHistoryTable.

Dropped packet

Number of packets discarded in a sampling interval, corresponding to the etherHistoryDropEvents object in etherHistoryTable.

utilization

Bandwidth usage in a sampling interval, corresponding to the etherHistoryUtilization object in etherHistoryTable.

History record

History sampling result.

Related Topics

display rmon prialarm

Function

The display rmon prialarm command displays information about RMON extended alarm function.

Format

display rmon prialarm [ entry-number ]

Parameters

Parameter Description Value
entry-number Displays information about the RMON extended alarm entry with the specified index. If this parameter is not specified, all RMON extended alarm information is displayed. The value is an integer that ranges from 1 to 65535.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After configuring RMON extended alarm function using the rmon prialarm command, you can run this command to view sampling interval, rising and falling thresholds, alarm triggering condition, and latest sampled value.

Example

# Display the RMON extended alarm configurations.

<HUAWEI> display rmon prialarm
Prialarm table 1 owned by Huawei is valid.
  Samples absolute value    : .1.3.6.1.2.1.16.1.1.1.6.1+.1.3.6.1.2.1.16.1.1.1.7.1
  Sampling interval         : 30(sec)
  Rising threshold          : 1000(linked with event 3)
  Falling threshold         : 100(linked with event 3)
  When startup enables      : risingOrFallingAlarm
  This entry will exist     : forever
  Latest value              : 557
Table 16-24  Description of the display rmon prialarm command output

Item

Description

Prialarm table entry-number owned by owner is status.

The current status of the extended alarm entry entry-number created by owner is status.

  • entry-number: extended alarm entry index.
  • owner: creator of the entry.
  • status: row status of the extended alarm entry with the specified index: undercreation(invalid), valid(valid), invalid(no valid extended alarm information).

You can run the rmon prialarm command to configure entry-number and owner.

Samples type value

The sampling type is type. The value of type can be:
  • absolute: absolute value sampling
  • delta: variable value sampling
  • changeratio: change rate of sampled values (Change rate = Value change/Sampling interval)
This field is followed by an alarm variable.

You can run the rmon prialarm command to configure this parameter.

Sampling interval

Interval at which traffic is sampled, in seconds.

You can run the rmon prialarm command to configure this parameter.

Rising threshold

Alarm rising threshold.

You can run the rmon prialarm command to configure this parameter.

Falling threshold

Alarm falling threshold.

You can run the rmon prialarm command to configure this parameter.

linked with event entry-number

Associate with the row with index entry-number.

You can run the rmon prialarm command to configure this parameter.

When startup enables

Condition that triggers alarms for the first time. The values are:
  • risingOrFallingAlarm: generating an alarm when the sampled value exceeds the rising threshold or falls below the falling threshold
  • risingAlarm: generating an alarm when the sampled value exceeds the rising threshold
  • fallingAlarm: generating an alarm when the sampled value falls below the falling threshold

You can run the rmon alarm command to configure this parameter.

This entry will exist

Aging time of the extended alarm entry. An entry may be valid permanently or in a certain period.

You can run the rmon prialarm command to configure this parameter.

Latest value

Latest sampling result.

Related Topics

display rmon statistics

Function

The display rmon statistics command displays RMON Ethernet statistics.

Format

display rmon statistics [ interface-type interface-number ]

Parameters

Parameter Description Value
interface-type interface-number Displays RMON Ethernet statistics on the specified Ethernet interface. If this parameter is not specified, RMON Ethernet statistics on all interfaces are displayed. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After you configure Ethernet statistics using the rmon statistics command, the system collects packet statistics on Ethernet interfaces. The command output includes communication information generated since statistics function is enabled. The command output helps you locate faults.

When the device restarts, all statistics are cleared.

Example

# Display RMON Ethernet statistics.

<HUAWEI> display rmon statistics
Statistics entry 1 owned by Creator is valid.
  Interface : GigabitEthernet0/0/1<ifIndex.402653698>
  Received  :
  octets              :142915224 , packets          :1749151
  broadcast packets   :11603     , multicast packets:756252
  undersize packets   :0         , oversize packets :0
  fragments packets   :0         , jabbers packets  :0
  CRC alignment errors:0         , collisions       :0
  Dropped packet (insufficient resources):1795
  Packets received according to length (octets):
  64     :150183    ,  65-127  :150183    ,  128-255  :1383
  256-511:3698      ,  512-1023:0         ,  1024-1518:0
Table 16-25  Description of the display rmon statistics command output

Item

Description

Statistics entry entry-number owned by owner is status.

The current status of the event entry entry-number created by owner is status.

  • entry-number: Ethernet statistics entry, corresponding to the etherStatsIndex object in etherStatsTable.
  • owner: creator of the entry, corresponding to the etherStatsOwner object in etherStatsTable.
  • status: row status of the Ethernet statistics entry with the specified index, corresponding to the etherStatsStatus in etherStatsTable: undercreation(invalid), valid(valid), invalid(no valid statistics information).

You can run the rmon statistics command to configure entry-number and owner.

Interface

Interface where statistics are collected, corresponding to the etherStatsDataSource object in etherStatsTable, followed by the interface OID.

Received

Number of received packets.

octets

Number of received octets.

packets

Number of received packets, corresponding to the etherStatsPkts object in etherStatsTable.

broadcast packets

Number of received broadcast packets, corresponding to the etherStatsBroadcastPkts object in etherStatsTable.

multicast packets

Number of received multicast packets, corresponding to the etherStatsMulticastPkts object in etherStatsTable.

undersize packets

Number of received undersize packets, corresponding to the etherStatsUndersizePkts object in etherStatsTable.

oversize packets

Number of received large packets, corresponding to the etherStatsOversizePkts object in etherStatsTable.

NOTE:

The S1720GFR, S1720GW, S1720GWR, S1720GW-E, S1720GWR-E, S1720X, S1720X-E, S2720EI, S2750EI, S5700LI, S5700S-LI, S5710-X-LI, S5720LI, S5720S-LI, S5720SI, S5720S-SI, S5730SI, S5730S-EI, S6720LI, S6720S-LI, S6720SI, and S6720S-SI cannot collect statistics on the packets of which the lengths range from 1518 to n. n is the maximum frame length allowed by the interface, and can be set using the jumboframe enable command.

fragments packets

Number of received undersize and CRC error packets, corresponding to the etherStatsFragments object in etherStatsTable.

jabbers packets

Number of received large and CRC error packets, corresponding to the etherStatsJabbers object in etherStatsTable.

NOTE:

The S5720HI does not support this item.

CRC alignment errors

Number of received CRC error packets, corresponding to the etherStatsCRCAlignErrors object in etherStatsTable.

collisions

Number of received collision packets, corresponding to the etherStatsCollisions object in etherStatsTable.

Dropped packet

Number of discarded packets, corresponding to the etherStatsDropEvents object in etherStatsTable.

Packets received according to length

Number of received packets with different lengths, corresponding to the etherStatsPkts64Octets, etherStatsPkts65to127Octets, etherStatsPkts128to255Octets, etherStatsPkts256to511Octets, etherStatsPkts512to1023Octets, and etherStatsPkts1024to1518Octets objects in etherStatsTable.

NOTE:

In classified packet statistics on the S1720GFR, S1720GW, S1720GWR, S1720GW-E, S1720GWR-E, S1720X, S1720X-E, S2720EI, S2750EI, S5700LI, S5700S-LI, S5710-X-LI, S5720LI, S5720S-LI, S5720SI, S5720S-SI, S5730SI, S5730S-EI, S6720LI, S6720S-LI, S6720SI, and S6720S-SI, 1024-1518 includes the packets longer than 1518.

Related Topics

display rmon2 hlhostcontroltable

Function

The display rmon2 hlhostcontroltable command displays information about entries in hlHostControlTable.

Format

display rmon2 hlhostcontroltable [ index ctrl-index ] [ verbose ]

Parameters

Parameter Description Value
ctrl-index Indicates the entry index, which uniquely identifies an entry in the host control table. The value is an integer that ranges from 1 to 65535.
verbose Displays details about the host control table. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After you use the rmon2 hlhostcontroltable command to create a protocol directory table, you can run the display rmon2 hlhostcontroltable command to view the configurations.

If no entry index is specified, the configuration of the entire table is displayed.

Example

# Display information about the entry with index 123 in the host control table.

<HUAWEI> display rmon2 hlhostcontroltable index 123
Abbreviation:
index - hlhostcontrolindex
datasource - hlhostcontroldatasource
droppedfrm - hlhostcontrolnldroppedframes
inserts - hlhostcontrolnlinserts
Deletes - hlHostControlNlDeletes
maxentries - hlhostcontrolnlmaxdesiredentries
status - hlhostcontrolstatus

index datasource                 droppedfrm inserts    Deletes    maxentries       status
123   Vlanif10                   0          0          0          50               active
# Display detailed information about the entry with index 123 in the host control table.
<HUAWEI> display rmon2 hlhostcontroltable index 123 verbose
Abbreviation:
index - hlhostcontrolindex
datasource - hlhostcontroldatasource
droppedfrm - hlhostcontrolnldroppedframes
inserts - hlhostcontrolnlinserts
Deletes - hlHostControlNlDeletes
maxentries - hlhostcontrolnlmaxdesiredentries
owner - hlhostcontrolowner
status - hlhostcontrolstatus
index       :   123
datasource  :   Vlanif10
droppedfrm  :   0
inserts     :   0
Deletes     :   0
maxentries  :   50
owner       :   china
status      :   active
Table 16-26  Description of the display rmon2 hlhostcontroltable command output

Item

Description

index

Index of an entry in the hlHostControlTable.

You can run the rmon2 hlhostcontroltable command to configure this parameter.

datasource

Source interface of data.

You can run the rmon2 hlhostcontroltable command to configure this parameter.

droppedfrm

Number of the frames that are received on the statistics interface but not added into nlHost entries.

inserts

Times add nlHost entries are added to nlHostTable.

Deletes

Times nlHost entries are deleted from nlHostTable.

maxentries

Maximum number of entries that hlHostControlTable contains.

You can run the rmon2 hlhostcontroltable command to configure this parameter.

owner

Owner of the entry in the hlHostControlTable.

You can run the rmon2 hlhostcontroltable command to configure this parameter.

status

Status of the entry in the hlHostControlTable:
  • active: running normally
  • not in service: invalid

You can run the rmon2 hlhostcontroltable command to configure this parameter.

display rmon2 nlhosttable

Function

The display rmon2 nlhosttable command displays information about entries in the nlHostTable.

Format

display rmon2 nlhosttable [ hostcontrolindex ctrl-index ] [ timemark time-value ] [ protocoldirlocalindex protocol-local-index ] [ hostaddress ip-address ]

Parameters

Parameter Description Value
hostcontrolindex ctrl-index Specifies the index number. A ctrl-index uniquely identifies an entry in the hlHostControlTable. It is an integer ranging from 1 to 65535.
timemark time-value Enables the time filter. The value is in the range of 0 to 4294967295. The entries in the nlHostTable with the ChgTm value being larger than this value are displayed.
protocoldirlocalindex protocol-local-index Identifies the network layer protocol of the nlHostAddress. Its value ranges from 1 to 2147483647.
hostaddress ip-address Checks the traffic on a specified host. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After statistics function is configured on an interface, you can view traffic statistics using this command. A maximum of 5000 rows can be displayed for each protocol on an interface.

Example

# Display information about the entry with index 1 in the host table.

<HUAWEI> display rmon2 nlhosttable hostcontrolindex 1 protocoldirlocalindex 2 hostaddress 10.110.94.177
Abbreviation:
HIdx - hlHostControlIndex
PIdx - ProtocolDirLocalIndex
Addr - nlHostAddress
InPkts - nlHostInPkts
OutPkts - nlHostOutPkts
InOctes - nlHostInOctets
OutOctes - nlHostOutOctets
OutMac - nlHostOutMacNonUnicastPkts
ChgTm - nlHostTimeMark
CrtTm - nlHostCreateTime
HIdx  PIdx Addr           InPkts  OutPkts InOctes OutOctes OutMac         ChgTm                          CrtTm
1     2    10.110.94.177  59      68      3240    3821          0         0 days 00h:01m:29s.09th(8909)  0 days 00h:01m:01s.13th(6113)
Table 16-27  Description of the display rmon2 nlhosttable command output

Item

Description

HIdx

Index of the host control table.

PIdx

Protocol directory index.

Addr

Host address. It is the source address of the incoming IP packets on the monitored interface and destination address of the outgoing IP packets on the interface.

InPkts

Number of incoming packets on the monitored interface.

OutPkts

Number of outgoing packets on the monitored interface.

InOctes

Number of incoming bytes on the monitored interface.

OutOctes

Number of outgoing bytes on the monitored interface.

OutMac

Number of outgoing non-unicast packets on the monitored interface.

ChgTm

Entry time filter in the host control table.

CrtTm

Customized time filter.

display rmon2 protocoldirtable

Function

The display rmon2 protocoldirtable command displays all entries in the protocolDirTable.

Format

display rmon2 protocoldirtable

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After you use the rmon2 protocoldirtable command to configure statistics on IP packets, you can run the display rmon2 protocoldirtable command to view the configurations.

Example

# Display entries in the protocolDirTable.

<HUAWEI> display rmon2 protocoldirtable
protocolDirId              :   8.0.0.0.1.0.0.8.0
protocolDirParameters      :   2.0.0
protocolDirLocalIndex      :   2
protocolDirDescr           :   ww
protocolDirAddressMapConfig:   not supported
protocolDirHostConfig      :   supported on
protocolDirMatrixConfig    :   not supported
protocolDirOwner           :   huawei
protocolDirStatus          :   active
Table 16-28  Description of the display rmon2 protocoldirtable command output

Item

Description

protocolDirId

Protocol directory ID. Currently, RMON2 only supports IP protocol, so the protocol directory ID is fixed at 8.0.0.0.1.0.0.8.0.

protocolDirParameters

Protocol directory parameter. The value is fixed at 2.0.0.

protocolDirLocalIndex

Local protocol directory index.

protocolDirDescr

Indicates the description of the protocol directory table.

You can run the rmon2 protocoldirtable command to configure this parameter.

protocolDirAddressMapConfig

Whether protocol directory address mapping is supported. This function is not supported currently.

protocolDirHostConfig

Whether the configuration of protocol directory host is supported:
  • not supported: The device does not monitor the network-layer host table of the protocol, and this value cannot be changed.
  • supported on: The device can monitor the network-layer host table of the protocol, and the monitoring function is enabled.
  • supported off: The device can monitor the network-layer host table of the protocol, but the monitoring function is disabled.

You can run the rmon2 protocoldirtable command to configure this parameter.

protocolDirMatrixConfig

Whether protocol directory matrix is supported. This function is not supported currently.

protocolDirOwner

Indicates the owner.

You can run the rmon2 protocoldirtable command to configure this parameter.

protocolDirStatus

Protocol directory status.
  • active: running normally
  • not in service: invalid

You can run the rmon2 protocoldirtable command to configure this parameter.

display snmp-agent trap feature-name rmon all

Function

The display snmp-agent trap feature-name snmp all command displays whether the switch is enabled to send traps of RMON feature to the NMS.

Format

display snmp-agent trap feature-name rmon all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After running the snmp-agent trap enable feature-name snmp command to enable the function of sending traps of the RMON feature to the NMS, you can run the display snmp-agent trap feature-name snmp all command to check whether this function is enabled.

Prerequisites

RMON has been enabled. For details, see snmp-agent.

Example

# Display whether the switch is enabled to send traps of RMON feature to the NMS.

<HUAWEI> display snmp-agent trap feature-name rmon all
------------------------------------------------------------------------------
Feature name: RMON
Trap number : 4
------------------------------------------------------------------------------
Trap name                       Default switch status   Current switch status
risingalarm                     on                      on
fallingalarm                    on                      on
rmon_pri_risingalarm            on                      on
rmon_pri_fallingalarm           on                      on
Table 16-29  Description of the display snmp-agent trap feature-name rmon all command output

Item

Description

Feature name

Name of the feature that generates traps.

Trap number

Number of traps generated by RMON feature.

Trap name

Name of the trap. The RMON feature supports the following traps:
  • risingalarm: Indicates that the current sampled value is greater than or equal to the set threshold specified by the trap table.
  • fallingalarm: Indicates that the current sampled value is less than or equal to the set threshold specified by the trap table.
  • rmon_pri_risingalarm: Indicates that the current sampled value is greater than or equal to the set threshold specified by the pri_alarm table.
  • rmon_pri_fallingalarm: Indicates that the current sampled value is less than or equal to the set threshold specified by the pri_alarm table.

Default switch status

Default status of a trap:
  • on: The switch is enabled to send this trap to the NMS.
  • off: The switch is disabled to send this trap to the NMS.

Current switch status

Current status of a trap:
  • on: The switch is enabled to send this trap to the NMS.
  • off: The switch is disabled to send this trap to the NMS.

This status can be configured using the snmp-agent trap enable feature-name rmon command.

rmon alarm

Function

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

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

Format

rmon alarm entry-number alarm-OID sampling-time { absolute | changeratio | delta } rising-threshold threshold-value1 event-entry1 falling-threshold threshold-value2 event-entry2 [ startup-alarm { falling | rising | risingorfalling } ] [ owner owner-name ]

undo rmon alarm 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.
alarm-OID Specifies the OID of a monitored object. The name is a string of 1 to 256 case-sensitive characters without spaces. When quotation marks are used around the string, spaces are allowed in the string.
sampling-time Specifies the sampling interval. The value is an integer that ranges from 5 to 65535, in seconds.
absolute Indicates that the sample type is absolute. The value is the sampled value at the end of the period. -
changeratio Indicates that the sample type is changeratio. The value is Changing value/Sampling interval. -
delta Indicates that the sample type is delta. The value is the difference between the samples at the beginning and end of the period. -
rising-threshold threshold-value1 Specifies the rising threshold of sampled value. The value is an integer that ranges from 1 to 2147483647.
event-entry1 Indicates the event index corresponding to the rising threshold. The value is an integer that ranges from 1 to 65535.
falling-threshold threshold-value2 Specifies the falling threshold of sampled value. The value is an integer that ranges from 0 to 2147483646.
event-entry2 Indicates the event index corresponding to the falling threshold. The value is an integer that ranges from 1 to 65535.
startup-alarm { falling | rising | risingorfalling } Specifies the condition of sending an alarm when the system data is sampled for the first time.
  • falling: an alarm is sent when the sampled value falls below the lower threshold value. 
  • rising: an alarm is sent when the sampled value exceeds the upper threshold value.
  • risingorfalling: an alarm is sent when the sampled value exceeds the upper threshold value or the lower threshold value.
NOTE:

An alarm is sen no matter whether the following sampled value exceeds the upper threshold value or the lower threshold value.

-
owner owner-name Indicates the owner of the alarm. 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

To monitor system running status, run the rmon alarm command to configure an alarm table and add an entry to the alarm table. After the command is executed, the RMON alarm function is enabled. The system obtains information about the monitored object at the specified interval, and compares the obtained value with the configured threshold. Then the system triggers the event according to the following table, and records log or sends a trap to the NMS.

Situation Action
The sampled value is larger than or equal to the configured rising threshold threshold-value1. Trigger event-entry1.
The sampled value is smaller than or equal to the configured falling threshold threshold-value2. Trigger event-entry2.

Prerequisites

Before configuring alarm function for the specified object, run the rmon event command to define the associated events. Otherwise, events cannot be triggered even if alarms are generated.

If the alarm variables configured in RMON alarm function are MIB variables defined in the statistics group or history group, the Ethernet statistics function or history statistics function must be configured on the monitored Ethernet interface first. Otherwise, alarm entries cannot be created.

Example

# Monitor the alarm threshold of etherStatsBroadcastPkts.1 (1.3.6.1.2.1.16.1.1.1.6.1) and sample the absolute value with an interval of 30 seconds. When the sampled value is greater than or equal to the upper threshold 500, event 1 is triggered. When the sampled value is less than or equal to the lower threshold 100, event 2 is triggered. The creator parameter indicates the owner that creates the event.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] rmon statistics 1 owner creator
[HUAWEI-GigabitEthernet0/0/1] quit
[HUAWEI] rmon event 1 log
[HUAWEI] rmon event 2 trap public
[HUAWEI] rmon alarm 1 1.3.6.1.2.1.16.1.1.1.6.1 30 absolute rising-threshold 500 1 falling-threshold 100 2 owner creator
Related Topics

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
Related Topics

rmon history

Function

The rmon history command adds an entry to the history control table.

The undo rmon history command deletes an entry from the history control table.

Format

rmon history entry-number buckets number interval sampling-interval [ owner owner-name ]

undo rmon history 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.
buckets number Indicates the maximum number of records in the history control table. The value is an integer that ranges from 1 to 10.
interval sampling-interval Specifies the sampling interval. The value is an integer that ranges from 5 to 3600, in seconds.
owner owner-name Indicates the owner of the entry in the history control table. 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

Ethernet interface view, GE interface view, XGE interface view, MultiGE interface view, 40GE interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To collect statistics on the specified interface at an interval and save the statistics for future retrieval, run the rmon history command to configure a history control table and add an entry to the table. The system can periodically collect statistics on each type of traffic, including bandwidth usage, number of error packets, and total number of packets.

Precautions

The number of stored records is determined by the buckets number parameter. When the number of records in the table reaches the maximum, the system overwrites the old records with new ones. Statistics include the number of packets, broadcast packets, and multicast packets received by the interface within a sampling interval. You can run the display rmon history command to view history sampling results.

In this version, this command cannot be configured on Eth-Trunk member interfaces.

Example

# Configure a history control table and add an entry with index 1 to the table. Set the maximum number of entries in the table to 10, sampling interval to 5 seconds, and creator to user1.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] rmon history 1 buckets 10 interval 5 owner user1
Related Topics

rmon prialarm

Function

The rmon prialarm command adds an entry to the extended alarm table.

The undo rmon prialarm command deletes an entry from the extended alarm table.

Format

rmon prialarm entry-number prialarm-formula description-string sampling-interval { absolute | changeratio | delta } rising-threshold threshold-value1 event-entry1 falling-threshold threshold-value2 event-entry2 entrytype { cycle entry-period | forever } [ owner owner-name ]

undo rmon prialarm 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.
prialarm-formula Specifies the formula for calculating an alarm variable. The alarm variable in the formula is identified by an OID. The OID value starts with a dot, for example, (.1.3.6.1.2.1.2.1.10.1)*8. The calculation formula is defined by user. The calculation result is a long integer. Ensure that the length of calculation result in each step cannot exceed the limit; otherwise, the calculation result is incorrect. The value is a string of 1 to 256 characters.
description-string Specifies the alarm description. The value is a string of 1 to 256 characters.
sampling-interval Specifies the sampling interval. The value is an integer that ranges from 10 to 65535, in seconds.
absolute Indicates that the sample type is absolute. The value is the sampled value at the end of the period. -
changeratio Indicates that the sample type is changeratio. The value is Changing value/Sampling interval. -
delta Indicates that the sample type is delta. The value is the difference between the samples at the beginning and end of the period. -
rising-threshold threshold-value1 Specifies the alarm rising threshold. The value is an integer that ranges from 1 to 2147483647.
event-entry1 Indicates the entry number of the event corresponding to the rising threshold in the event table. The value is an integer that ranges from 1 to 65535.
falling-threshold threshold-value2 Specifies the alarm falling threshold. The value is an integer that ranges from 0 to 2147483646.
event-entry2 Indicates the entry number of the event corresponding to the falling threshold in the event table. The value is an integer that ranges from 1 to 65535.
entrytype Indicates the lifetime type of an alarm entry. -
cycle entry-period Indicates the lifetime of an alarm entry. The value is an integer that ranges from 11 to 2147483646.
forever Indicates that the alarm entry is valid permanently. -
owner owner-name Indicates the owner of the extended alarm variable. The value is a string of 1 to 127 case-sensitive characters without spaces.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The extended alarm function can compute the alarm variables and compare the result with the specified threshold.

After the extended alarm function is enabled, the system performs the following operations:
  1. Samples the alarm variables in the extended alarm formula at the specified sampling interval.
  2. Calculates the sampled value using the defined formula.
  3. Compares the calculation result with the thresholds and takes actions according to the following table.

    Situation Action
    The sampled value is larger than or equal to the configured rising threshold threshold-value1. Trigger event-entry1.
    The sampled value is smaller than or equal to the configured falling threshold threshold-value2. Trigger event-entry2.

To use more alarm functions, run the rmon prialarm command to configure the extended alarm table and add an entry to the table.

Prerequisites

Before configuring extended alarm function for the specified object, run the rmon event command to define the associated events. Otherwise, events cannot be triggered even if alarms are generated. When the sampled value exceeds the rising threshold or falls below the falling threshold, whether to record a log or send a trap to the NMS is determined by the rmon event command.

Example

# Monitor broadcast and multicast packets: Set the sampling interval to 10 seconds and sample type to absolute. Trigger event 3 when the sample value reaches or exceeds 100000 and when the sample value reaches or falls below 100. Set the lifetime of the entry to forever and the owner to Huawei.

<HUAWEI> system-view
[HUAWEI] rmon prialarm 1 .1.1.3.6.1.2.1.16.1.1.1.6.1+.1.3.6.1.2.1.16.1.1.1.7.1 sumofbroadandmulti 10 absolute rising-threshold 100000 3 falling-threshold 100 3 entrytype forever owner Huawei
Related Topics

rmon statistics

Function

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

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

Format

rmon statistics entry-number [ owner owner-name ]

undo rmon statistics entry-number

Parameters

Parameter Description Value
entry-number Indicates the row index corresponding to the entry to be added or deleted. The value is an integer that ranges from 1 to 65535.
owner owner-name Indicates the owner name. 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

Ethernet interface view, GE interface view, XGE interface view, MultiGE interface view, 40GE interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To keep collecting statistics on the current interface, run the rmon statistics command to configure a statistics table and add an entry to the table. This command monitors usage of Ethernet interfaces and collects statistics on errors, including the number of collision packets, CRC error packets, undersize and large packets, timeout packets, fragments, broadcast packets, multicast packets, and unicast packets.

Prerequisites

The rmon-statistics enable command is executed to enable RMON statistics function on the interface. If the command is not executed, the statistics result is 0.

Precautions

In this version, this command cannot be configured on Eth-Trunk member interfaces.

Example

# Configure a statistics table on GigabitEthernet0/0/1 and add an entry with index 20 to the table.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] rmon statistics 20 owner creater

rmon2 hlhostcontroltable

Function

The rmon2 hlhostcontroltable command creates or changes an entry in the hlHostControlTable.

The undo rmon2 hlhostcontroltable command deletes an entry from the hlHostControlTable or from the whole table.

Format

rmon2 hlhostcontroltable index ctrl-index [ datasource interface interface-type interface-number ] [ maxentry maxentry-value ] [ owner owner-name ] [ status { active | inactive } ]

undo rmon2 hlhostcontroltable [ index ctrl-index ]

Parameters

Parameter Description Value
ctrl-index Indicates the entry index, which uniquely identifies an entry in the host control table. The value is an integer that ranges from 1 to 65535.
datasource interface interface-type interface-number Identifies an interface and a subnet, corresponding to hlHostControlDataSource. The parameter value, namely, the interface index, is the data source defining the entry. In this command, the data source is represented by interface type and number. -
maxentry maxentry-value Indicates the maximum number of entries in the host table. The value is an integer that ranges from 1 to 100000. The default value is 50.If the host table contains too many entries, system performance is degraded. The default settings of host table are recommended.
owner owner-name Indicates the owner. The value is a string of 1 to 127 characters and cannot be empty.
status Indicates the status of an entry in the host control table, corresponding to hlHostControlStatus. -
active Indicates that the hlHostControlStatus value in the host control table is active and this entry is available. -
inactive Indicates that the hlHostControlStatus value in the host control table is not in service and this entry is inactive and unavailable. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To monitor traffic on the subnet connected to an interface of the managed device, run the rmon2 hlhostcontroltable command and specify the interface.

Precautions

When creating an entry, specify the datasource interface parameter to identify the interface, which specifies the subnet. The parameter value, namely, the interface index, is the data source defining the entry. Enter the interface type and number in the command. Only one entry can be created for each interface in the host control table.

The parameter status in the display rmon2 hlhostcontroltable command output matches the hlhostcontrolstatus value, which indicates the entry status.

  • When the hlhostcontrolstatus value is set to inactive, all related entries in the host table are deleted automatically.

  • When the hlhostcontrolstatus value is set to active, you cannot change the hlhostcontroldatasource and hlhostcontrolnlmaxdesiredentries values.

  • If an interface that corresponds to the hlhostcontroldatasource in an entry is deleted, the entry is deleted at the same time.

Example

# Create an entry in the host control table.

<HUAWEI> system-view
[HUAWEI] rmon2 hlhostcontroltable index 1 datasource interface gigabitethernet 0/0/1 maxentry 100 owner huawei status active

# Set the hlHostControlStatus value in the host control table to inactive.

<HUAWEI> system-view
[HUAWEI] rmon2 hlhostcontroltable index 1 status inactive

rmon2 protocoldirtable

Function

The rmon2 protocoldirtable command creates or modifies an entry in the protocolDirTable.

The undo rmon2 protocoldirtable command deletes an entry from the protocolDirTable. If optional parameters are not specified, the entire table is deleted.

Format

rmon2 protocoldirtable protocoldirid protocol-id parameter parameter-value [ descr description-string ] [ host { notsupported | supportedon | supportedoff } ] [ owner owner-name ] [ status { active | inactive } ]

undo rmon2 protocoldirtable [ protocoldirid protocol-id parameter parameter-value ]

Parameters

Parameter Description Value
protocoldirid protocol-id Indicates the protocol ID. Only IP protocol is supported currently. The value is fixed at 8.0.0.0.1.0.0.8.0.
parameter parameter-value Indicates the protocol parameter. The value is fixed at 2.0.0.
descr description-string Indicates the description of the protocol directory table. The value is a string of 1 to 64 characters.
host { notsupported | supportedon | supportedoff } Indicates the configuration of protocol directory host, corresponding to protocolDirHostConfig in the display rmon2 protocoldirtable command output.
  • notsupported: Indicates that the device does not monitor the network-layer host table of the protocol, and this value cannot be changed.
  • supportedon: Indicates that the device can monitor the network-layer host table of the protocol, and the monitoring function is enabled.
  • supportedoff: Indicates that the device can monitor the network-layer host table of the protocol, but the monitoring function is disabled.
-
owner owner-name Indicates the owner. The value is a string of 1 to 127 characters.
status { active | inactive } Indicates the entry status, corresponding to the protocolDirStatus value in the display rmon2 protocoldirtable command output.
  • active: Indicates that the protocolDirStatus value in the host control table is active and this entry is available.
  • inactive: Indicates that the protocolDirStatus value in the host control table is not in service and this entry is inactive and unavailable.
-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To monitor statistics on IP packets, run this command.

RMON2 supports only statistics on IP packets on an Ethernet interface. A protocol occupies an entry, so there is only one entry in the table.

Precautions

When running the rmon2 protocoldirtable command, you must set the description and protocols supported by the host. That is, the descr and host parameters are mandatory.

The parameter status in the display rmon2 protocoldirtable command output matches the protocolDirStatus value, which indicates the entry status.

  • When the status parameter is set to active, the descr value cannot be modified. The value of host (corresponding to the protocolDirHostConfig value, indicating the protocol directory host configuration) can be modified. This parameter indicates whether to monitor the network-layer host table of the protocol.
    • If the host value is set to notsupported, the host value cannot be modified.
    • If the host value is not notsupported, the value can be switched between supportedon and supportedoff.
    • When the host value is changed from supportedon to supportedoff, the corresponding entry in the host control table is deleted.
  • When the status is inactive, all related entries in the host table are deleted.

Example

# Create an entry in the protocol directory table.

<HUAWEI> system-view
[HUAWEI] rmon2 protocoldirtable protocoldirid 8.0.0.0.1.0.0.8.0 parameter 2.0.0 descr huawei host supportedon owner huawei status active

# Set the protocolDirStatus value in the protocol directory table to not in service.

<HUAWEI> system-view
[HUAWEI] rmon2 protocoldirtable protocoldirid 8.0.0.0.1.0.0.8.0 parameter 2.0.0 status inactive

# Set the protocolDirHostConfig value in the protocol directory table to supportedoff.

<HUAWEI> system-view
[HUAWEI] rmon2 protocoldirtable protocoldirid 8.0.0.0.1.0.0.8.0 parameter 2.0.0 host supportedoff

rmon-statistics enable

Function

The rmon-statistics enable command enables RMON statistics function on an interface.

The undo rmon-statistics command disables RMON statistics function on an interface.

By default, RMON statistics function is disabled on interfaces.

Format

rmon-statistics enable

undo rmon-statistics

Parameters

None

Views

Ethernet interface view, GE interface view, XGE interface view, MultiGE interface view, 40GE interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If the statistics function is not enabled on an interface, statistics in the statistics table and history table are 0.

Precautions

In this version, this command cannot be configured on Eth-Trunk member interfaces.

After the interface mode is changed from Layer 2 to Layer 3 by using the undo portswitch command, the device does not support the rmon-statistics enable command.

Example

# Enable RMON statistics function on GigabitEthernet0/0/1.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] rmon-statistics enable
Related Topics

snmp-agent trap enable feature-name rmon

Function

The snmp-agent trap enable feature-name rmon command enables the alarm function for the RMON module.

The undo snmp-agent trap enable feature-name rmon command disables the alarm function for the RMON module.

By default, the alarm function is enabled for the RMON module.

Format

snmp-agent trap enable feature-name rmon [ trap-name { fallingalarm | risingalarm | rmon_pri_fallingalarm | rmon_pri_risingalarm } ]

undo snmp-agent trap enable feature-name rmon [ trap-name { fallingalarm | risingalarm | rmon_pri_fallingalarm | rmon_pri_risingalarm } ]

Parameters

Parameter Description Value
trap-name

Enables or disables the alarm function for the specified event.

If no event type is specified using the trap-name parameter, all types of alarms are enabled or disabled for the RMON module.

-
fallingalarm

Indicates that the current sampled value is smaller than or equal to the threshold configured in the alarmTable.

-
risingalarm

Indicates that the current sampled value is larger than or equal to the threshold configured in the alarmTable.

-
rmon_pri_fallingalarm

Indicates that the current sampled value is smaller than or equal to the threshold configured in the prialarmTable.

-
rmon_pri_risingalarm

Indicates that the current sampled value is larger than or equal to the threshold configured in the prialarmTable.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

A device managed by the NMS can send traps to the NMS if the alarm function is enabled for the RMON module on the device. By default, all alarms for the RMON module are enabled. If only one or some event alarms need to be enabled, run the snmp-agent trap enable feature-name rmon trap-name command.

Example

# Enable the fallingalarm for the RMON module.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name rmon trap-name fallingalarm
Translation
Download
Updated: 2019-10-09

Document ID: EDOC1000178165

Views: 48265

Downloads: 1163

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next