< Home

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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >