https://github.com/Juniper/healthbot-rules/
https://github.com/ksator/junos_monitoring_with_healthbot
rpc commands | |
---|---|
show | looking for the rate on an interface show jcluser@vMX-addr-5> show interfaces ge-0/0/3.0 detail | match bps Input bytes : 503550 3912 bps Output bytes : 523272 4144 bps |
rpc command | rpc command jcluser@vMX-addr-5> show interfaces ge-0/0/3.0 detail | display xml rpc <rpc-reply xmlns:junos="http://xml.juniper.net/junos/18.3R1/junos"> <rpc> <get-interface-information> <detail/> <interface-name>ge-0/0/3.0</interface-name> </get-interface-information> </rpc> <cli> <banner></banner> </cli> </rpc-reply> |
show in xml format | <logical-interface> <transit-traffic-statistics> <input-bps> 1128 </input-bps> <output-bps> 1128 </output-bps> show in xml format jcluser@vMX-addr-5> show interfaces ge-0/0/3.0 detail | display xml <rpc-reply xmlns:junos="http://xml.juniper.net/junos/18.3R1/junos"> <interface-information xmlns="http://xml.juniper.net/junos/18.3R1/junos-interface" junos:style="normal"> <logical-interface> <name>ge-0/0/3.0</name> <local-index>335</local-index> <snmp-index>537</snmp-index> <generation>144</generation> <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="verbose" junos:indent="2" > <input-bytes>890256</input-bytes> <output-bytes>1040970</output-bytes> <input-packets>11762</input-packets> <output-packets>12249</output-packets> </traffic-statistics> <local-traffic-statistics> <input-bytes>270795</input-bytes> <output-bytes>399696</output-bytes> <input-packets>3830</input-packets> <output-packets>4094</output-packets> </local-traffic-statistics> <transit-traffic-statistics> <input-bytes>619461</input-bytes> <input-bps>1128</input-bps> <output-bytes>641274</output-bytes> <output-bps>1128</output-bps> <input-packets>7932</input-packets> <input-pps>2</input-pps> <output-packets>8155</output-packets> <output-pps>1</output-pps> </transit-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> <generation>170</generation> <route-table>0</route-table> <address-family-flags> <ifff-sendbcast-pkt-to-re/> <internal-flags>0x0</internal-flags> </address-family-flags> <filter-information> </filter-information> <policer-information> </policer-information> <interface-address> <ifa-flags> <ifaf-current-preferred/> <ifaf-current-primary/> </ifa-flags> <ifa-destination>7.105.106.0/30</ifa-destination> <ifa-local>7.105.106.1</ifa-local> <ifa-broadcast>7.105.106.3</ifa-broadcast> <generation>146</generation> </interface-address> </address-family> <address-family> <address-family-name>iso</address-family-name> <mtu>1497</mtu> <generation>171</generation> <route-table>0</route-table> <address-family-flags> <internal-flags>0x0</internal-flags> </address-family-flags> </address-family> <address-family> <address-family-name>mpls</address-family-name> <mtu>1488</mtu> <maximum-labels>3</maximum-labels> <generation>172</generation> <route-table>0</route-table> <address-family-flags> <internal-flags>0x10000000</internal-flags> </address-family-flags> </address-family> <address-family> <address-family-name>multiservice</address-family-name> <mtu>Unlimited</mtu> <generation>173</generation> <route-table>0</route-table> <address-family-flags> <internal-flags>0x0</internal-flags> </address-family-flags> <filter-information> </filter-information> <policer-information> <policer-input>__default_arp_policer__</policer-input> </policer-information> </address-family> </logical-interface> </interface-information> <cli> <banner></banner> </cli> </rpc-reply> jcluser@vMX-addr-5> |