display netconfc session

Function

The display netconfc session command displays information about all or specific NETCONF Client session.

Format

display netconfc session [ peer-id peerid ]

Parameters

Parameter Description Value
peer-id peerid

Specifies the ID of a peer device.

The value is an integer ranging from 0 to 4294967295.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
netconfc read

Usage Guidelines

Usage Scenario

To view session information about a specified or all active NETCONF clients, run the display netconfc session command. Maximum sessions of primary that can be displayed are 3 and minimum sessions that can be displayed are zero.

Maximum sessions of backup that can be displayed are 2 and minimum sessions that can be displayed are zero. The information helps check whether the number of failed connections reaches the upper threshold.

Precautions

In VS mode, this command is supported only by the admin VS.

Example

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

# Display information about the NETCONF Client session.
<HUAWEI> display netconfc session
---------------------------------------------------------
Peer ID             : 2000
NETCONFC Session ID : 4446
User Name           : netconf
Session Type        : CFG
Session State       : READY
Up Time             : 2020-01-28 10:26:53
PID                 : 26674268

Peer ID             : 3000
NETCONFC Session ID : 4716
User Name           : netconf
Session Type        : CFG
Session State       : READY
Up Time             : 2020-01-28 10:26:20
PID                 : 26674346
---------------------------------------------------------
# Display information about the NETCONF Client session with the ID of 2000.
<HUAWEI> display netconfc session peer-id 2000
----------------------------------------------------------------------
Peer ID             : 2000
NETCONFC Session ID : 1533
User Name           : netconf
Session Type        : CFG
Session State       : READY
Up Time             : 2020-01-28 10:26:53
PID                 : 26674268
----------------------------------------------------------------------
Table 1 Description of the display netconfc session command output
Item Description
Peer ID

ID of a peer device.

NETCONFC Session ID

ID of a NETCONFC session.

Session Type

Session type.

  • NCC: transparent transmission channel.
  • NONE: idle channel.
  • CFG: configuration channel.
  • QUERY: query channel.
  • ACT: maintenance channel.
Session State

Session status.

  • INIT: The session is in initialization state.
  • LOCKING: The NETCONF client is locking peer device configurations.
  • READY: The session is idle.
  • BLOCK: The session is blocked and backpressure is required for CMF messages.
User Name

User name for session establishment.

Up Time

Time when the session is successfully established.

PID

PID of the component on which the session exists.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.