traffic-statistics peer (VSI-LDP view)

Function

The traffic-statistics peer enable command enables the function to collect statistics about the public traffic on a LDP VPLS PW.

The traffic-statistics peer disable command disables the function to collect statistics about the public traffic on a LDP VPLS PW.

By default, the function to collect statistics about the public traffic on the LDP VPLS PW is disabled.

Format

traffic-statistics peer peer-address [ negotiation-vc-id vc-id ] { enable | disable }

undo traffic-statistics peer peer-address [ negotiation-vc-id vc-id ] { enable | disable }

Parameters

Parameter Description Value
negotiation-vc-id vc-id

Specifies the ID of the PW.

The value is an integer ranging from 1 to 4294967295.

peer peer-address

Specifies the peer IP address of the PW.

The value is in dotted decimal notation.

Views

VSI-LDP view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2vpn write

Usage Guidelines

Usage Scenario

In the VSI-LDP view, you can enable or disable the function to collect statistics about the public traffic of the LDP VPLS PW. The PW is uniquely identified by the VSI name, the next-hop IP address, and the peer PW ID.

Note that:

  • The traffic-statistics peer peer-address [ negotiation-vc-id vc-id ] enable command enables the function to collect statistics about the public traffic on a specific LDP VPLS PW. This command takes precedence over the undo traffic-statistics enable command. After running this command, you can view statistics about the public traffic on a specific LDP VPLS PW no matter whether you have run the undo traffic-statistics enable command to disable the function to collect statistics about the VSI-based global traffic in VSI LDP mode.
  • The traffic-statistics peer peer-address [ negotiation-vc-id vc-id ] disable command disables the function to collect statistics about the public traffic on a specific LDP VPLS PW. This command takes precedence over the traffic-statistics enable command. After running this command, you cannot view statistics about the public traffic on a specific LDP VPLS PW no matter whether you have run the traffic-statistics enable command to enable the function to collect statistics about the VSI-based global traffic in VSI LDP mode.
  • The undo traffic-statistics peer peer-address [ negotiation-vc-id vc-id ] enable command deletes the configuration of the traffic-statistics peer peer-address [ negotiation-vc-id vc-id ] enable command. After this command is run, the function to collect statistics about the public traffic on a specific LDP VPLS PW inherits the status of the function to collect statistics about the VSI-based global traffic in VSI LDP mode. For example, if you have run the traffic-statistics enable command to enable the function to collect statistics about the VSI-based global traffic in VSI LDP mode, the statistics about the public traffic on a specific LDP VPLS PW can be viewed.
  • The undo traffic-statistics peer peer-address [ negotiation-vc-id vc-id ] disable command deletes the configuration of the traffic-statistics peer peer-address [ negotiation-vc-id vc-id ] disable command. After this command is run, the function to collect statistics about the public traffic on a specific LDP VPLS PW inherits the status of the function to collect statistics about the VSI-based global traffic in VSI LDP mode. For example, if you have run the undo traffic-statistics enable command to disable the function to collect statistics about the VSI-based global traffic in VSI LDP mode, the statistics about the public traffic on a specific LDP VPLS PW cannot be viewed.

Example

# Enable the function to collect statistics about the public traffic on the specified PW in a VSI.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] vsi newvsi static
[*HUAWEI-vsi-newvs] pwsignal ldp
[*HUAWEI-vsi-newvsi-ldp] vsi-id 1
[*HUAWEI-vsi-newvsi-ldp] traffic-statistics peer 1.1.1.9 negotiation-vc-id 2 enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >