traceoption of netconfig ( debug )


1- config on vMX

2- log: netconf.log


ssh user@hostname -p 830 -s netconf





config netconfig traceoptions
vagrant@vqfx-re> show configuration system services

netconf {
    ssh;
    traceoptions {
        file netconf.log;
        flag all;
    }
}
rest {
    http {
        port 8080;
    }
    enable-explorer;
}


set system services ssh root-login allow
set system services netconf ssh
set system services netconf traceoptions file netconf.log
set system services netconf traceoptions flag all
set system services rest http port 8080
set system services rest enable-explorer




show log netconf.log
{master:0}
vagrant@vqfx-re> show log netconf.log
Oct 17 16:32:21 [NETCONF] Started tracing session: 3700
Oct 17 16:32:21 [NETCONF] - [3700] Outgoing: <!-- No zombies were killed during the creation of this user interface -->
Oct 17 16:32:21 [NETCONF] - [3700] Outgoing: <!-- user ansible, class j-super-user -->
Oct 17 16:32:21 [NETCONF] - [3700] Outgoing: <hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
Oct 17 16:32:21 [NETCONF] - [3700] Outgoing:   <capabilities>
    <capability>urn:ietf:params:netconf:base:1.0</capability>
    <capability>urn:ietf:params:netconf:capability:candidate:1.0</capability>
    <capability>urn:ietf:params:netconf:capability:confirmed-commit:1.0</capability>
    <capability>urn:ietf:params:netconf:capability:validate:1.0</capability>
    <capability>urn:ietf:params:netconf:capability:url:1.0?scheme=http,ftp,file</capability>
    <capability>urn:ietf:params:xml:ns:netconf:base:1.0</capability>
    <capability>urn:ietf:params:xml:ns:netconf:capability:candidate:1.0</capability>
    <capability>urn:ietf:params:xml:ns:netconf:capability:confirmed-commit:1.0</capability>
    <capability>urn:ietf:params:xml:ns:netconf:capability:validate:1.0</capability>
    <capability>urn:ietf:params:xml:ns:netconf:capability:url:1.0?protocol=http,ftp,file</capability>
    <capability>urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring</capability>
    <capability>http://xml.juniper.net/netconf/junos/1.0</capability>
    <capability>http://xml.juniper.net/dmi/system/1.0</capability>
Oct 17 16:32:21 [NETCONF] - [3700] Outgoing:   </capabilities>
Oct 17 16:32:21 [NETCONF] - [3700] Outgoing:   <session-id>3700</session-id>
Oct 17 16:32:21 [NETCONF] - [3700] Outgoing: </hello>
Oct 17 16:32:21 [NETCONF] - [3700] Outgoing: ]]>]]>
Oct 17 16:32:45 [NETCONF] - [3700] Incoming: rpc>
<close-session/>

Oct 17 16:32:45 [NETCONF] - [3700] Outgoing: <!-- netconf error: unknown command -->
Oct 17 16:32:45 [NETCONF] - [3700] Debug: The last token parsed by mgd [3700] was [rpc>] and gram data current token [rpc>]
Oct 17 16:32:45 [NETCONF] - [3700] Outgoing: <!-- session end at 2018-10-17 16:32:45 UTC -->

{master:0}
vagrant@vqfx-re>