display ptp-adaptive virtual-port

Function

The display ptp-adaptive vport command displays the configuration and status of a virtual port (vPort).

The display ptp-adaptive master-only-vport command displays the configuration of a master-only-vport and the information about the client connected to the port.

Format

display ptp-adaptive vport [ vport-id ]

display ptp-adaptive master-only-vport [ mvport-id ]

Parameters

Parameter Description Value
vport-id

Specifies the virtual port number.

The value is 1 or 2.

mvport-id

Specifies the port number of master-only-vport.

The value is an integer that ranges from 1 to 5.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
clksync read

Usage Guidelines

Usage Scenario

You can run this command to view the configuration and status of a virtual port.

Prerequisites

The device mode has been set to server-and-client using the ptp-adaptive device-type server-and-client command.

Example

The actual command output varies according to the device. The command output here is only an example.

# When the vport configuration exists, the display ptp-adaptive vport command output is as follows:
[~HUAWEI] display ptp-adaptive vport
  Vport 1
  ------------------------------------------------------------------------------
  VPN                     :--
  Local ip                :10.0.0.2         Remote port ip     :10.0.0.1
  Negotiate state         :Nego init
  Port state              :master           Clock Class        :0
  Pri2                    :0                Accuracy           :0x0
  Local priority          :128              Asymmetry(ns)      :0

  Vport 2
  ------------------------------------------------------------------------------
  VPN                     :--
  Local ip                :3.3.3.3          Remote port ip     :3.3.3.1
  Negotiate state         :Nego init
  Port state              :255              Clock Class        :0
  Pri2                    :0                Accuracy           :0x0
  Local priority          :10               Asymmetry(ns)      :0
# If the master-only-vport configuration exists, the display ptp-adaptive master-only-vport command output is as follows:
[~HUAWEI] display ptp-adaptive master-only-vport
  Master-only-vport list
  ------------------------------------------------------------------------------
  ID  Ip Address      VPN                                      Client number
  1   2.2.2.2         --                                       1
  
  Master-only-vport 1 client list
  ------------------------------------------------------------------------------
      ID  Ip Address      Clock ID          Mode     Announce  Sync  Delay_resp
  ------------------------------------------------------------------------------
  0   0   2.2.2.8         049fcafffe2ef40b  two-way  1         -7    -7
# When the information about a specified vport is queried, display ptp-adaptive vport
<~HUAWEI> display ptp-adaptive vport 1
  Vport 1
  ------------------------------------------------------------------------------
  VPN                     :--
  Local ip                :10.0.0.1         Remote port ip     :10.0.0.2
  Negotiate state         :Nego success
  Port state              :slave            Clock Class        :187
  Pri2                    :128              Accuracy           :0x20
  Local priority          :128              Asymmetry(ns)      :0
# When the information about a specified master-only-vport is queried, display ptp-adaptive master-only-vport
<~HUAWEI> display ptp-adaptive master-only-vport 1
  Master-only-vport 1 client list
  ------------------------------------------------------------------------------
      ID  Ip Address      Clock ID          Mode     Announce  Sync  Delay_resp
  ------------------------------------------------------------------------------
  0   0   10.0.0.1        202008fffe261204  two-way  0         -7    -7
Table 1 Description of the display ptp-adaptive virtual-port command output
Item Description
Vport

Virtual port.

VPN

VPN instance name.

Local ip

IP address of a clock server.

Local priority

Local priority (for BMCA clock source selection).

Remote port ip

IP address of the peer device.

Negotiate state

Negotiation status between the local and peer ends. The value can be init, success, or error.

Port state

Local status. The value can be master. slave, listening, or passive.

Clock Class

Class of a clock source.

Clock ID

Client clock ID.

Pri2

BMCA source selection attribute: priority 2.

Accuracy

Accuracy of the local clock.

Asymmetry(ns)

Asymmetric compensation value.

Master-only-vport list

master-only-vport list.

ID

-

Ip Address

Client IP address.

Ip Address

Client IP address.

Client number

Number of clients connected to the virtual port.

Mode

Frequency recovery mode.

none.

One-way.

Two-way.

Announce

Interval at which Announce packets are sent, which the server negotiates with the client.

Sync

Interval at which Sync packets are sent, which the server negotiates with the client.

Delay_resp

Interval at which Delay_Resp packets are sent, which the server negotiates with the client.

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