The y1731 measure-granularity command configures the granularity for Y.1731 statistics collection.
The undo y1731 measure-granularity command restores the default value.
By default, the granularity for Y.1731 statistics collection is port-vlan.
Layer 2 100GE interface view, 100ge sub-interface view, 100GE interface view, Layer 2 10GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE-L2 view, 25GE sub-interface view, 400GE Layer 2 sub-interface view, 400GE-L2 view, 400GE sub-interface view, 400GE interface view, Layer 2 40GE interface view, 40GE sub-interface view, 40GE interface view, 50GE Layer 2 sub-interface view, Layer 2 50GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk Layer 2 sub-interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE sub-interface view, GE Layer 2 sub-interface view, Layer 2 GE interface view, GE optical interface view, GE sub-interface view, GE electrical interface view, Global-VE layer2 subinterface view, Global VE sub-interface view, VE layer2 subinterface view, VE sub-interface view, Layer 2 sub-interface view
Usage Scenario
In VLL or VPLS networking, to configure the granularity for Y.1731 statistics collection on the AC interface of a PW, run the y1731 measure-granularity command. You can specify either of the following parameters on the AC interface as needed:
Prerequisites
A MEP has been created using the mep mep-id command in the interface view.
<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] quit [*HUAWEI] mpls l2vpn [*HUAWEI-l2vpn] mpls ldp [*HUAWEI-mpls-ldp] quit [*HUAWEI] mpls ldp remote-peer pe2 [*HUAWEI-ldp-remote-pe2] remote-ip 2.2.2.2 [*HUAWEI-ldp-remote-pe2] vsi y1731 static [*HUAWEI-vsi-y1731] pwsignal ldp [*HUAWEI-vsi-y1731] vsi-id 220 [*HUAWEI-vsi-y1731] peer 2.2.2.2 [*HUAWEI-vsi-y1731] quit [*HUAWEI] interface GigabitEthernet 0/1/0.1 [*HUAWEI-GigabitEthernet0/1/0.1] vlan-type dot1q 200 [*HUAWEI-GigabitEthernet0/1/0.1] l2 binding vsi y1731 [*HUAWEI-GigabitEthernet0/1/0.1] quit [*HUAWEI] cfm enable [*HUAWEI] cfm md md1 [*HUAWEI-md-md1] ma ma1 [*HUAWEI-md-md1-ma-ma1] map vsi y1731 [*HUAWEI-md-md1-ma-ma1] mep mep-id 1 interface GigabitEthernet0/1/0.1 inward [*HUAWEI-md-md1-ma-ma1] mep ccm-send mep-id 1 enable [*HUAWEI-md-md1-ma-ma1] remote-mep mep-id 2 [*HUAWEI-md-md1-ma-ma1] remote-mep ccm-receive mep-id 2 enable [*HUAWEI-md-md1-ma-ma1] quit [*HUAWEI-md-md1] quit [*HUAWEI] interface GigabitEthernet 0/1/0.1 [*HUAWEI-GigabitEthernet0/1/0.1] y1731 measure-granularity port