know want you want | show commands {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 | 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 |
General
Content
Integrations