Description

"show log netconf" not printing any output about "get-config" being run from server as a keep alives, while "show log messages" print the output correctly

Symptoms

NETCONF traceoptions are enabled on the device

 

root@PTX10008-re0> show configuration system services netconf traceoptions

file netconf size 20m files 10;

flag all;

 

Log messages point to server issuing "get-config" (as keep alives) rpc through NETCONF.

 

root@PTX10008-re0> show log messages | match netconf | match "Jun 5"

Jun 5 00:04:29.462 PTX10008-re0 mgd[26835]: UI_NETCONF_CMD: User 'bnc' used NETCONF client to run command 'get-config'

 

These commands executed by server are not captured in the netconf traceoption file

root@PTX10008-re0> show log netconf | match get-config

Solution

On configuring the NETCONF traceoptions as below, 'get-config' rpc is seen in NETCONF logs too as mentioned below: 

 

root@PTX-re0> show configuration system services netconf 

traceoptions {

  file netconf.log;

  flag all;

}

 

{master}

root@PTX-re0> show log netconf.log | match get 

Jul 12 01:09:05 [NETCONF] - [4777] Incoming: <rpc><get-config><source><running/></source></get-config></rpc>

 

{master}

root@PTX-re0> show log messages | match get-config | grep UI_NETCONF_CMD 

Jul 12 01:07:22 jnaneshm-vscapa-RE0-re0 mgd[4777]: UI_NETCONF_CMD: User 'root' used NETCONF client to run command 'get-config'

Modification History

2024-08-27 : Initial publication