jcluser@ubuntu:/var/local/healthbot/input$ more traffic-statistics.yml
---
SystemStatisticsTable:
rpc: get-pfe-statistics
item: pfe-traffic-statistics
key: pfe-input-packets
view: PFEStatisticsView <<<<<<<<<<<<< Next line
PFEStatisticsView:
fields:
pfe-input-packets: pfe-input-packets
pfe-output-packets: pfe-output-packets
jcluser@vMX-addr-5> show pfe statistics traffic | display xml rpc
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/18.3R1/junos">
<rpc>
<get-pfe-statistics> <<<<<<<<<<<<<<<<<<<< RPC commands: rpc: get-pfe-statistics
</get-pfe-statistics>
</rpc>
jcluser@vMX-addr-5> show pfe statistics traffic | display xml
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/18.3R1/junos">
<pfe-statistics>
<pfe-traffic-statistics> <<<<<<<<<<<<<<<<<<<<< Start here: item: pfe-traffic-statistics and key: pfe-input-packets
<pfe-input-packets>72823</pfe-input-packets> <<<<<<<<< Value of interest : pfe-input-packets: pfe-input-packets
<input-pps>6</input-pps>
<pfe-output-packets>74923</pfe-output-packets> <<<<<<<<< value of interest: pfe-output-packets: pfe-output-packets
<output-pps>5</output-pps>
<pfe-fabric-input>0</pfe-fabric-input>
<pfe-fabric-input-pps>0</pfe-fabric-input-pps>
<pfe-fabric-output>0</pfe-fabric-output>
<pfe-fabric-output-pps>0</pfe-fabric-output-pps>
</pfe-traffic-statistics>
<pfe-local-traffic-statistics>
<pfe-input-packets>35585</pfe-input-packets>
<pfe-output-packets>75594</pfe-output-packets>
<software-input-control-drops>0</software-input-control-drops>
<software-input-high-drops>0</software-input-high-drops>
<software-input-medium-drops>0</software-input-medium-drops>
<software-input-low-drops>0</software-input-low-drops>
<software-output-low-drops>0</software-output-low-drops>
<hardware-input-drops>0</hardware-input-drops>
</pfe-local-traffic-statistics>
<pfe-local-protocol-statistics>
<hdlc-keepalive-count>0</hdlc-keepalive-count>
<atm-oam-count>0</atm-oam-count>
<fr-lmi-count>0</fr-lmi-count>
<ppp-lcp-ncp-count>0</ppp-lcp-ncp-count>
<ospf-hello-count>0</ospf-hello-count>
<ospf3-hello-count>0</ospf3-hello-count>
<rsvp-hello-count>13543</rsvp-hello-count>
<ldp-hello-count>0</ldp-hello-count>
<bfd-count>0</bfd-count>
<isis-iih-count>7910</isis-iih-count>
<lacp-count>0</lacp-count>
<arp-count>89</arp-count>
<ether-oam-count>0</ether-oam-count>
<unknown-count>0</unknown-count>
</pfe-local-protocol-statistics>
<pfe-hardware-discard-statistics>
<timeout-discard>0</timeout-discard>
<truncated-key-discard>0</truncated-key-discard>
<bits-to-test-discard>0</bits-to-test-discard>
<data-error-discard>0</data-error-discard>
<tcp-header-error-discard>0</tcp-header-error-discard>
<stack-underflow-discard>0</stack-underflow-discard>
<stack-overflow-discard>0</stack-overflow-discard>
<bad-route-discard>111</bad-route-discard>
<nexthop-discard>0</nexthop-discard>
<invalid-iif-discard>0</invalid-iif-discard>
<info-cell-discard>0</info-cell-discard>
<fabric-discard>0</fabric-discard>
</pfe-hardware-discard-statistics>
<pfe-chip-statistics>
<input-checksum>0</input-checksum>
<output-mtu>0</output-mtu>
</pfe-chip-statistics>
</pfe-statistics>
===============================================================================================================================
Local netconf
-------------
jcluser@vMX-addr-5> netconf
<!-- No zombies were killed during the creation of this user interface -->
<!-- user jcluser, class j-super-user -->
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<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>
</capabilities>
<session-id>8927</session-id>
</hello>
]]>]]>
<rpc><get-pfe-statistics/>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:junos="http://xml.juniper.net/junos/18.3R1/junos">
<pfe-statistics>
<pfe-traffic-statistics> <<<<<<<<<<<<<<<<<<<<< Start here: item: pfe-traffic-statistics and key: pfe-input-packets
<pfe-input-packets>67819</pfe-input-packets> <<<<<<<<< Value of interest : pfe-input-packets: pfe-input-packets
<input-pps>4</input-pps>
<pfe-output-packets>69769</pfe-output-packets> <<<<<<<<< value of interest: pfe-output-packets: pfe-output-packets
<output-pps>4</output-pps>
<pfe-fabric-input>0</pfe-fabric-input>
<pfe-fabric-input-pps>0</pfe-fabric-input-pps>
<pfe-fabric-output>0</pfe-fabric-output>
<pfe-fabric-output-pps>0</pfe-fabric-output-pps>
</pfe-traffic-statistics> <<<<<<<<<<<<<<<<<<<<< Finish here:
<pfe-local-traffic-statistics>
<pfe-input-packets>33262</pfe-input-packets>
<pfe-output-packets>70654</pfe-output-packets>
<software-input-control-drops>0</software-input-control-drops>
<software-input-high-drops>0</software-input-high-drops>
<software-input-medium-drops>0</software-input-medium-drops>
<software-input-low-drops>0</software-input-low-drops>
<software-output-low-drops>0</software-output-low-drops>
<hardware-input-drops>0</hardware-input-drops>
</pfe-local-traffic-statistics>
<pfe-local-protocol-statistics>
<hdlc-keepalive-count>0</hdlc-keepalive-count>
<atm-oam-count>0</atm-oam-count>
<fr-lmi-count>0</fr-lmi-count>
<ppp-lcp-ncp-count>0</ppp-lcp-ncp-count>
<ospf-hello-count>0</ospf-hello-count>
<ospf3-hello-count>0</ospf3-hello-count>
<rsvp-hello-count>12642</rsvp-hello-count>
<ldp-hello-count>0</ldp-hello-count>
<bfd-count>0</bfd-count>
<isis-iih-count>7395</isis-iih-count>
<lacp-count>0</lacp-count>
<arp-count>85</arp-count>
<ether-oam-count>0</ether-oam-count>
<unknown-count>0</unknown-count>
</pfe-local-protocol-statistics>
<pfe-hardware-discard-statistics>
<timeout-discard>0</timeout-discard>
<truncated-key-discard>0</truncated-key-discard>
<bits-to-test-discard>0</bits-to-test-discard>
<data-error-discard>0</data-error-discard>
<tcp-header-error-discard>0</tcp-header-error-discard>
<stack-underflow-discard>0</stack-underflow-discard>
<stack-overflow-discard>0</stack-overflow-discard>
<bad-route-discard>111</bad-route-discard>
<nexthop-discard>0</nexthop-discard>
<invalid-iif-discard>0</invalid-iif-discard>
<info-cell-discard>0</info-cell-discard>
<fabric-discard>0</fabric-discard>
</pfe-hardware-discard-statistics>
<pfe-chip-statistics>
<input-checksum>0</input-checksum>
<output-mtu>0</output-mtu>
</pfe-chip-statistics>
</pfe-statistics>
<rpc/>
<rpc-error>
<error-type>protocol</error-type>
<error-tag>operation-failed</error-tag>
<error-severity>error</error-severity>
<error-message>syntax error, expecting </rpc></error-message>
<error-info>
<bad-element>rpc</bad-element>
</error-info>
</rpc-error>
<rpc><close-session/>
|