Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 2
Next »
|
|
---|
know want you want |
{master:0}
Netbox@ND-QFX5100_3> show interfaces ge-0/0/2.0 statistics
Logical interface ge-0/0/2.0 (Index 562) (SNMP ifIndex 517)
Flags: Up SNMP-Traps 0x4004000 Encapsulation: ENET2
Input packets : 382417
Output packets: 764929
Protocol inet, MTU: 1500
Max nh cache: 75000, New hold nh limit: 75000, Curr nh cnt: 1, Curr new hold cnt: 0, NH drop cnt: 0
Flags: Sendbcast-pkt-to-re
Addresses, Flags: Is-Preferred Is-Primary
Destination: 192.168.20/24, Local: 192.168.20.20, Broadcast: 192.168.20.255
{master:0}
Netbox@ND-QFX5100_3> show interfaces ge-0/0/2.0 statistics | match packets
Input packets : 382418
Output packets: 764930
|
translate to RPC call |
Netbox@ND-QFX5100_3> show interfaces ge-0/0/2.0 statistics | match packets | display xml rpc
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/19.2R0/junos">
<rpc>
<get-interface-information>
<statistics/>
<interface-name>ge-0/0/2.0</interface-name>
</get-interface-information>
</rpc>
<rpc>
<get-interface-information>
<statistics/>
<interface-name>ge-0/0/2.0</interface-name>
</get-interface-information>
</rpc>
<cli>
<banner>{master:0}</banner>
</cli>
</rpc-reply>
{master:0}
<get-interface-information> <statistics/> <interface-name>ge-0/0/2.0 |
test rpc call in junos | 1- type: netconfig 2- type the rpc call: <rpc>
<get- interface -information>
<statistics/>
< interface -name>ge- 0 / 0 / 2.0 </ interface -name>
</get- interface -information>
</rpc>
┌────────────────────────────────────────────────────────────────────┐
│ • MobaXterm 9.4 • │
│ (SSH client, X-server and networking tools) │
│ │
│ ➤ SSH session to Netbox@172.30.92.204 │
│ • SSH compression : ✔ │
│ • SSH-browser : ✔ │
│ • X11-forwarding : ✘ (disabled or not supported by server) │
│ • DISPLAY : 192.168.0.101:0.0 │
│ │
│ ➤ For more info, ctrl+click on help or visit our website │
└────────────────────────────────────────────────────────────────────┘
WARNING - This device is being used for a Junos Space demo NOW
Last login: Sat Mar 7 08:29:11 2020 from 172.30.92.129
--- JUNOS 19.2R1.8 built 2019-06-21 18:33:05 UTC
{master:0}
Netbox@ND-QFX5100_3> netconf
<!-- No zombies were killed during the creation of this user interface -->
<!-- user Netbox, 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?scheme=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>44517</session-id>
</hello>
]]>]]>
<rpc>
<get-interface-information>
<statistics/>
<interface-name>ge-0/0/2.0</interface-name>
</get-interface-information>
</rpc>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:junos="http://xml.juniper.net/junos/19.2R0/junos">
<interface-information xmlns="http://xml.juniper.net/junos/19.2R0/junos-interface" junos:style="normal">
<logical-interface>
<name>
ge-0/0/2.0
</name>
<local-index>
562
</local-index>
<snmp-index>
517
</snmp-index>
<if-config-flags>
<iff-up/>
<iff-snmp-traps/>
<internal-flags>
0x4004000
</internal-flags>
</if-config-flags>
<encapsulation>
ENET2
</encapsulation>
<policer-overhead>
</policer-overhead>
<traffic-statistics junos:style="brief">
<input-packets>
382490
</input-packets>
<output-packets>
765074
</output-packets>
</traffic-statistics>
<filter-information>
</filter-information>
<address-family>
<address-family-name>
inet
</address-family-name>
<mtu>
1500
</mtu>
<max-local-cache>
75000
</max-local-cache>
<new-hold-limit>
75000
</new-hold-limit>
<intf-curr-cnt>
1
</intf-curr-cnt>
<intf-unresolved-cnt>
0
</intf-unresolved-cnt>
<intf-dropcnt>
0
</intf-dropcnt>
<address-family-flags>
<ifff-sendbcast-pkt-to-re/>
</address-family-flags>
<interface-address>
<ifa-flags>
<ifaf-current-preferred/>
<ifaf-current-primary/>
</ifa-flags>
<ifa-destination>
192.168.20/24
</ifa-destination>
<ifa-local>
192.168.20.20
</ifa-local>
<ifa-broadcast>
192.168.20.255
</ifa-broadcast>
</interface-address>
</address-family>
</logical-interface>
</interface-information>
</rpc-reply>
]]>]]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|