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

Community Helping Community

42
Views
0
Helpful
2
Replies
Highlighted
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.

 

Everyone's tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: northbound netconf trace

 

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
Cisco Employee

Re: northbound netconf trace

 

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

Cisco Employee

Re: northbound netconf trace

 

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

 

 

Content for Community-Ad
FusionCharts will render here