Instantly share code, notes, and snippets.

Embed
What would you like to do?
vMX1-show_route_protocol_bgp_extensive_display_xml
sbehrens@vMX1> show route protocol bgp extensive | display xml
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/16.1R3/junos">
<route-information xmlns="http://xml.juniper.net/junos/16.1R3/junos-routing">
<!-- keepalive -->
<route-table>
<table-name>inet.0</table-name>
<destination-count>10</destination-count>
<total-route-count>11</total-route-count>
<active-route-count>10</active-route-count>
<holddown-route-count>0</holddown-route-count>
<hidden-route-count>0</hidden-route-count>
<rt junos:style="detail">
<rt-destination>41.0.0.1</rt-destination>
<rt-prefix-length>32</rt-prefix-length>
<rt-entry-count junos:format="1 entry">1</rt-entry-count>
<rt-announced-count>1</rt-announced-count>
<tsi junos:indent="0">
KRT in-kernel 41.0.0.1/32 -> {indirect(1048574)}
</tsi>
<rt-entry>
<active-tag>*</active-tag>
<current-active/>
<last-active/>
<protocol-name>BGP</protocol-name>
<preference>170</preference>
<preference2>-101</preference2>
<nh-type>Indirect</nh-type>
<nh-index>0</nh-index>
<nh-address>0xc807510</nh-address>
<nh-reference-count>6</nh-reference-count>
<nh-kernel-id>0</nh-kernel-id>
<gateway>192.168.0.2</gateway>
<nh-type>Router</nh-type>
<nh-index>584</nh-index>
<nh junos:indent="16">
<nh-string>Next hop</nh-string>
<to>192.168.0.2</to>
<via>ge-0/0/1.0</via>
<selected-next-hop/>
<session>161</session>
</nh>
<protocol-nh junos:indent="16">
<to>192.168.0.2</to>
<indirect-nh>0xb28ca80 1048574 INH Session ID: 0x162</indirect-nh>
</protocol-nh>
<rt-entry-state>Active Int Ext</rt-entry-state>
<local-as>6100</local-as>
<peer-as>6100</peer-as>
<age junos:seconds="698">11:38</age>
<metric2>0</metric2>
<validation-state>unverified</validation-state>
<task-name>BGP_6100.192.168.0.2</task-name>
<announce-bits>2</announce-bits>
<announce-tasks>0-KRT 4-Resolve tree 2 </announce-tasks>
<as-path>AS path: I
</as-path>
<communities>
<community>12345:1</community>
</communities>
<bgp-rt-flag>Accepted</bgp-rt-flag>
<local-preference>100</local-preference>
<peer-id>10.0.0.2</peer-id>
<indirect-nh-count>1</indirect-nh-count>
<protocol-nh junos:indent="24">
<to>192.168.0.2</to>
<indirect-nh>0xb28ca80 1048574 INH Session ID: 0x162</indirect-nh>
<forwarding-nh-count>1</forwarding-nh-count>
<nh-type>Router</nh-type>
<nh-index>584</nh-index>
<nh junos:indent="8">
<nh-string>Next hop</nh-string>
<to>192.168.0.2</to>
<via>ge-0/0/1.0</via>
<session>161</session>
</nh>
<output>
192.168.0.0/24 Originating RIB: inet.0
Node path count: 1
Forwarding nexthops: 1
Next hop type: Interface
Nexthop: via ge-0/0/1.0
</output>
</protocol-nh>
</rt-entry>
</rt>
<rt junos:style="detail">
<rt-destination>41.0.0.2</rt-destination>
<rt-prefix-length>32</rt-prefix-length>
<rt-entry-count junos:format="1 entry">1</rt-entry-count>
<rt-announced-count>1</rt-announced-count>
<tsi junos:indent="0">
KRT in-kernel 41.0.0.2/32 -> {indirect(1048574)}
</tsi>
<rt-entry>
<active-tag>*</active-tag>
<current-active/>
<last-active/>
<protocol-name>BGP</protocol-name>
<preference>170</preference>
<preference2>-101</preference2>
<nh-type>Indirect</nh-type>
<nh-index>0</nh-index>
<nh-address>0xc807510</nh-address>
<nh-reference-count>6</nh-reference-count>
<nh-kernel-id>0</nh-kernel-id>
<gateway>192.168.0.2</gateway>
<nh-type>Router</nh-type>
<nh-index>584</nh-index>
<nh junos:indent="16">
<nh-string>Next hop</nh-string>
<to>192.168.0.2</to>
<via>ge-0/0/1.0</via>
<selected-next-hop/>
<session>161</session>
</nh>
<protocol-nh junos:indent="16">
<to>192.168.0.2</to>
<indirect-nh>0xb28ca80 1048574 INH Session ID: 0x162</indirect-nh>
</protocol-nh>
<rt-entry-state>Active Int Ext</rt-entry-state>
<local-as>6100</local-as>
<peer-as>6100</peer-as>
<age junos:seconds="698">11:38</age>
<metric2>0</metric2>
<validation-state>unverified</validation-state>
<task-name>BGP_6100.192.168.0.2</task-name>
<announce-bits>2</announce-bits>
<announce-tasks>0-KRT 4-Resolve tree 2 </announce-tasks>
<as-path>AS path: I
</as-path>
<communities>
<community>12345:1</community>
</communities>
<bgp-rt-flag>Accepted</bgp-rt-flag>
<local-preference>100</local-preference>
<peer-id>10.0.0.2</peer-id>
<indirect-nh-count>1</indirect-nh-count>
<protocol-nh junos:indent="24">
<to>192.168.0.2</to>
<indirect-nh>0xb28ca80 1048574 INH Session ID: 0x162</indirect-nh>
<forwarding-nh-count>1</forwarding-nh-count>
<nh-type>Router</nh-type>
<nh-index>584</nh-index>
<nh junos:indent="8">
<nh-string>Next hop</nh-string>
<to>192.168.0.2</to>
<via>ge-0/0/1.0</via>
<session>161</session>
</nh>
<output>
192.168.0.0/24 Originating RIB: inet.0
Node path count: 1
Forwarding nexthops: 1
Next hop type: Interface
Nexthop: via ge-0/0/1.0
</output>
</protocol-nh>
</rt-entry>
</rt>
<rt junos:style="detail">
<rt-destination>41.0.0.3</rt-destination>
<rt-prefix-length>32</rt-prefix-length>
<rt-entry-count junos:format="1 entry">1</rt-entry-count>
<rt-announced-count>1</rt-announced-count>
<tsi junos:indent="0">
KRT in-kernel 41.0.0.3/32 -> {indirect(1048574)}
</tsi>
<rt-entry>
<active-tag>*</active-tag>
<current-active/>
<last-active/>
<protocol-name>BGP</protocol-name>
<preference>170</preference>
<preference2>-101</preference2>
<nh-type>Indirect</nh-type>
<nh-index>0</nh-index>
<nh-address>0xc807510</nh-address>
<nh-reference-count>6</nh-reference-count>
<nh-kernel-id>0</nh-kernel-id>
<gateway>192.168.0.2</gateway>
<nh-type>Router</nh-type>
<nh-index>584</nh-index>
<nh junos:indent="16">
<nh-string>Next hop</nh-string>
<to>192.168.0.2</to>
<via>ge-0/0/1.0</via>
<selected-next-hop/>
<session>161</session>
</nh>
<protocol-nh junos:indent="16">
<to>192.168.0.2</to>
<indirect-nh>0xb28ca80 1048574 INH Session ID: 0x162</indirect-nh>
</protocol-nh>
<rt-entry-state>Active Int Ext</rt-entry-state>
<local-as>6100</local-as>
<peer-as>6100</peer-as>
<age junos:seconds="698">11:38</age>
<metric2>0</metric2>
<validation-state>unverified</validation-state>
<task-name>BGP_6100.192.168.0.2</task-name>
<announce-bits>2</announce-bits>
<announce-tasks>0-KRT 4-Resolve tree 2 </announce-tasks>
<as-path>AS path: I
</as-path>
<communities>
<community>12345:1</community>
</communities>
<bgp-rt-flag>Accepted</bgp-rt-flag>
<local-preference>100</local-preference>
<peer-id>10.0.0.2</peer-id>
<indirect-nh-count>1</indirect-nh-count>
<protocol-nh junos:indent="24">
<to>192.168.0.2</to>
<indirect-nh>0xb28ca80 1048574 INH Session ID: 0x162</indirect-nh>
<forwarding-nh-count>1</forwarding-nh-count>
<nh-type>Router</nh-type>
<nh-index>584</nh-index>
<nh junos:indent="8">
<nh-string>Next hop</nh-string>
<to>192.168.0.2</to>
<via>ge-0/0/1.0</via>
<session>161</session>
</nh>
<output>
192.168.0.0/24 Originating RIB: inet.0
Node path count: 1
Forwarding nexthops: 1
Next hop type: Interface
Nexthop: via ge-0/0/1.0
</output>
</protocol-nh>
</rt-entry>
</rt>
</route-table>
</route-information>
<cli>
<banner></banner>
</cli>
</rpc-reply>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment