5.9. NETCONF Show and Debug Command Reference

5.9.1. Command Hierarchies

5.9.1.1. Show Commands

show
— system

5.9.1.2. Debug Commands

debug
— system
info

5.9.2. Command Descriptions

5.9.2.1. Show Commands

5.9.2.1.1. System Commands

netconf

Syntax 
netconf
Context 
show>system
Description 

This command displays active NETCONF SSH sessions.

Output 

The following is an example of NETCONF information.

Table 79 describes the NETCONF output fields.

Sample Output
# show system netconf
===============================================================================
NETCONF Server
===============================================================================
Administrative State      : Enabled
Operational State         : Up
===============================================================================
Table 79:  NETCONF Output Fields 

Label

Description  

Administrative State

Enabled — Indicates that NETCONF is enabled.

Disabled — Indicates that NETCONF is disabled.

Operational State

Up — Indicates that NETCONF is operational.

Down — Indicates that NETCONF is not operational.

connection

Syntax 
connection
Context 
show>system>netconf
Description 

This command displays active NETCONF connections.

Output 

The following is an example of NETCONF connection information.

Table 80 describes the NETCONF connection output fields.

Sample Output
# show system netconf connection
===============================================================================
NETCONF Server connections
===============================================================================
Connection          Username       Session Status         Running    Candidate
                                   Id                     Locked?    Locked?
-------------------------------------------------------------------------------
135.121.197.102     admin          56      connected      no         no
-------------------------------------------------------------------------------
Number of NETCONF sessions : 1
===============================================================================
Table 80:  NETCONF Connection Output Fields 

Label

Description  

Connection

The IP address of the connected routers (remote client).

Username

The name of the user.

Session ID

The NETCONF session ID.

Status

Connected or not connected.

Running Locked?

Yes — Indicates the <running> datastore is locked.

No — Indicates the <running> datastore is not locked.

Candidate Locked?

Yes — Indicates the <candidate> datastore is locked.

No — Indicates the <candidate> datastore is not locked.

Number of NETCONF sessions

Total NETCONF sessions

counters

Syntax 
counters
Context 
show>system>netconf
Description 

This command displays NETCONF counters.

Output 

The following is an example of NETCONF counter information.

Table 81 describes the NETCONF counter output fields.

Sample Output
# show system netconf counters
==============================================================================
NETCONF counters:
==============================================================================
    Rx Messages
------------------------------------------------------------------------------
      in gets            : 23
      in get-configs     : 19
      in edit-configs    : 35
      in copy-configs    : 0
      in delete-configs  : 0
      in validates       : 0
      in close-sessions  : 0
      in kill-sessions   : 0
      in locks           : 0
      in unlocks         : 0
      in commits         : 2
      in discards        : 1
-------------------------------------------------------------------------------
      Rx Total           : 80
==============================================================================
    Tx Messages
------------------------------------------------------------------------------
      out rpc-errors     : 4
------------------------------------------------------------------------------
      Tx Total           : 9
==============================================================================
    Failed requests due to lock being taken by other sessions 
------------------------------------------------------------------------------
      failed edit-configs: 1
      failed locks       : 0
==============================================================================
Table 81:  NETCONF Counters Output Fields 

Label

Description  

RX Messages

Types and numbers of received messages

RX Total

Total of all received messages

TX Messages

Types and numbers of sent messages

TX Total

Total of all sent messages

failed edit-configs

Number of failed <edit-config> requests due to a lock (including implicit ones) being taken by other netconf sessions

failed locks

Number of failed <lock> requests due to a lock (including implicit ones) being taken by other netconf sessions

5.9.3. Debug Commands

5.9.3.1. NETCONF Debug Commands

netconf

Syntax 
netconf
Context 
debug>system
Description 

This command enters the debug NETCONF context.

info

Syntax 
info
Context 
debug>system>netconf
Description 

This command displays debug information for NETCONF sessions.

Output 

The following is an example of debug information for NETCONF sessions.

Sample Output
17 2018/03/17 12:29:54.785 UTC minor: DEBUG #2001 Base NETCONF
“NETCONF: INFO user: ncuser session 36: 
session started”
 
“18 2018/03/17 12:29:54.785 UTC minor: DEBUG #2001 Base NETCONF
NETCONF: INFO user: ncuser session 36: 
received <hello>”
 
19 2018/03/17 12:29:54.785 UTC minor: DEBUG #2001 Base NETCONF
“NETCONF: INFO user: ncuser session 36: setting 1.1 capability, chunk framing mode enabled”
 
20 2018/03/17 12:29:54.785 UTC minor: DEBUG #2001 Base NETCONF
“NETCONF: INFO user: ncuser session 36: 
successfully processed <hello> message”
 
21 2018/03/17 12:29:54.844 UTC minor: DEBUG #2001 Base NETCONF
“NETCONF: INFO user: ncuser session 36: 
received <edit-config>”
 
22 2018/03/17 12:29:54.848 UTC minor: DEBUG #2001 Base NETCONF
“NETCONF: INFO user: ncuser session 36: 
error occurred while processing <edit-config> RPC”
 
23 2018/03/17 12:29:54.892 UTC minor: DEBUG #2001 Base NETCONF
“NETCONF: INFO user: ncuser session 36: 
successfully processed <edit-config> RPC”
 
24 2018/03/17 12:29:54.893 UTC minor: DEBUG #2001 Base NETCONF
“NETCONF: INFO user: ncuser session 36: 
session terminated”