cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

188
Views
0
Helpful
2
Replies
khgrant
Cisco Employee

northbound netconf trace

 

Is there a way to turn on such trace to see the complete message?

netconf.log only shows "nc:message-id”, not any content.

 

Similar question to REST northbound: there seems to be no trace option from NCS.  Although wireshark works well for REST, it can’t show netconf messages in clear text.

 

1 ACCEPTED SOLUTION

Accepted Solutions
khgrant
Cisco Employee

 

Hi Richard

 

There is a way of enabling logging for incoming requests on NSO – by changing the /ncs-config/logs/webui-access-log/traffic-log config variable in /etc/ncs/ncs.conf to true, and then reloading NCS from /etc/init.d. This will log all API requests to the logs/trace_xy folder. The filenames are not really descriptive, but you can grep over them to find the request you’re interested in

 

I am not sure if this will work for netconf, but it works for REST northbound

 

Hope this helps

Sundar

 

View solution in original post

2 REPLIES 2
khgrant
Cisco Employee

 

Hi Richard

 

There is a way of enabling logging for incoming requests on NSO – by changing the /ncs-config/logs/webui-access-log/traffic-log config variable in /etc/ncs/ncs.conf to true, and then reloading NCS from /etc/init.d. This will log all API requests to the logs/trace_xy folder. The filenames are not really descriptive, but you can grep over them to find the request you’re interested in

 

I am not sure if this will work for netconf, but it works for REST northbound

 

Hope this helps

Sundar

 

khgrant
Cisco Employee

 

Hi, Sundar,

 

Thanks for the helpful info. traffic-log works well for REST:

 

<webui-access-log>

<enabled>true</enabled>

<dir>./logs</dir>

<traffic-log>true</traffic-log>

</webui-access-log>

 

While searching menu on traffic-log, also saw netconf-trace-log:

 

<netconf-trace-log>

  <enabled>true</enabled>

  <filename>./logs/netconf.trace</filename>

  <format>pretty</format>

    </netconf-trace-log>

 

Cheers!

Richard

 

 

Create
Recognize Your Peers
Content for Community-Ad