< Home

Configuring RMON2 Statistics Collection

Context

RMON2 collects traffic statistics on a specified interface, including the source and destination hosts of traffic and traffic passing the interface from each host on the network.

RMON2 on the switch collects statistics on IP packets on the specified interfaces.

Procedure

  1. Run system-view

    The system view is displayed.

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

    A host control table is created and an entry is added to the table.

    If the host control table contains too many entries, system performance is degraded. Therefore, the default settings of the host control table are recommended. By default, a host control table contains a maximum of 50 entries.

    When creating an entry, specify the datasource interface parameter to identify the interface and subnet. The parameter value, namely, the interface index, is the data source defining the entry. In the command, the data source is represented by interface type and number. 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, the hlhostcontroldatasource and hlhostcontrolnlmaxdesiredentries values cannot be changed.

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

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

    A protocol directory table is created and an entry is added to the table.

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

    When running the rmon2 protocoldirtable command, set the description and protocols supported by the host. 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 parameter status is set to active, the descr value cannot be modified. However, the host value can be modified. This corresponds to the protocolDirHostConfig value that indicates the protocol directory host configuration. This parameter indicates whether to monitor the protocol's network-layer host table.
      • 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.
      • If 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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >