< Home

traffic-statistics peer enable (Martini)

Function

The traffic-statistics peer enable command enables the statistics about the public traffic on a specified Martini VPLS PW.

The undo traffic-statistics peer enable command disables the statistics about the public traffic on a specified Martini VPLS PW.

By default, the statistics function is disabled.

Format

traffic-statistics peer peer-address [ negotiation-vc-id vc-id ] enable

undo traffic-statistics peer peer-address [ negotiation-vc-id vc-id ] enable

Parameters

Parameter Description Value
peer peer-address Specifies the peer IP address of the PW. -
negotiation-vc-id vc-id Specifies the ID of the PW. The value is an integer that ranges from 1 to 4294967295.

Views

VSI-LDP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the Martini VPLS network is configured, you can run the traffic-statistics peer enable command to enable statistics about the traffic on the specified PW. You can specify peer-address to enable the statistics about the traffic on the corresponding PW.

Prerequisites

The VSI ID has been configured using the vsi-id vsi-id command in the VSI-LDP view.

Precautions

After you enable the statistics about the public traffic on the specified Martini VPLS PW, run the display traffic-statistics vsi peer negotiation-vc-id command to view the statistics about the public traffic on the specified PW.

The traffic-statistics peer enable command cannot be used together with the traffic-statistics enable (VSI-LDP view) command in the VSI-LDP view.

Example

# Enable the statistics about the public traffic on the specified Martini VPLS PW.

<HUAWEI> system-view
[HUAWEI] vsi newvsi static
[HUAWEI-vsi-newvsi] pwsignal ldp
[HUAWEI-vsi-newvsi-ldp] vsi-id 1
[HUAWEI-vsi-newvsi-ldp] traffic-statistics peer 10.22.33.20 negotiation-vc-id 2 enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >