Instantly share code, notes, and snippets.

Embed
What would you like to do?
show bgp neighbor | display xml
sbehrens@vMX1> show bgp neighbor | display xml
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/16.1R3/junos">
<bgp-information xmlns="http://xml.juniper.net/junos/16.1R3/junos-routing">
<bgp-peer junos:style="detail">
<peer-address>192.168.0.2+179</peer-address>
<peer-as>6100</peer-as>
<local-address>192.168.0.1+53881</local-address>
<local-as>6100</local-as>
<peer-group>internal-bgp</peer-group>
<peer-cfg-rti>master</peer-cfg-rti>
<peer-fwd-rti>master</peer-fwd-rti>
<peer-type>Internal</peer-type>
<peer-state>Established</peer-state>
<peer-flags>Sync</peer-flags>
<last-state>OpenConfirm</last-state>
<last-event>RecvKeepAlive</last-event>
<last-error>Cease</last-error>
<bgp-option-information xmlns="http://xml.juniper.net/junos/16.1R3/junos-routing">
<bgp-options>Preference Refresh</bgp-options>
<bgp-options2></bgp-options2>
<bgp-options-extended></bgp-options-extended>
<holdtime>90</holdtime>
<preference>170</preference>
</bgp-option-information>
<flap-count>8</flap-count>
<last-flap-event>Stop</last-flap-event>
<bgp-error>
<name>Cease</name>
<send-count>7</send-count>
<receive-count>1</receive-count>
</bgp-error>
<peer-id>10.0.0.2</peer-id>
<local-id>10.0.0.1</local-id>
<active-holdtime>90</active-holdtime>
<keepalive-interval>30</keepalive-interval>
<group-index>0</group-index>
<peer-index>0</peer-index>
<bgp-peer-iosession>
<iosession-thread-name>bgpio-0</iosession-thread-name>
<iosession-state>Enabled</iosession-state>
</bgp-peer-iosession>
<bgp-bfd>
<bfd-configuration-state>disabled</bfd-configuration-state>
<bfd-operational-state>down</bfd-operational-state>
</bgp-bfd>
<peer-restart-nlri-configured>inet-unicast</peer-restart-nlri-configured>
<nlri-type-peer>inet-unicast</nlri-type-peer>
<nlri-type-session>inet-unicast</nlri-type-session>
<peer-refresh-capability>2</peer-refresh-capability>
<peer-stale-route-time-configured>300</peer-stale-route-time-configured>
<peer-no-restart/>
<peer-restart-flags-received>Notification</peer-restart-flags-received>
<peer-restart-nlri-negotiated>inet-unicast</peer-restart-nlri-negotiated>
<peer-end-of-rib-received>inet-unicast</peer-end-of-rib-received>
<peer-end-of-rib-sent>inet-unicast</peer-end-of-rib-sent>
<peer-end-of-rib-scheduled></peer-end-of-rib-scheduled>
<peer-no-llgr-restarter/>
<peer-4byte-as-capability-advertised>6100</peer-4byte-as-capability-advertised>
<peer-addpath-not-supported/>
<bgp-rib junos:style="detail">
<name>inet.0</name>
<rib-bit>20000</rib-bit>
<bgp-rib-state>BGP restart is complete</bgp-rib-state>
<send-state>in sync</send-state>
<active-prefix-count>3</active-prefix-count>
<received-prefix-count>3</received-prefix-count>
<accepted-prefix-count>3</accepted-prefix-count>
<suppressed-prefix-count>0</suppressed-prefix-count>
<advertised-prefix-count>0</advertised-prefix-count>
</bgp-rib>
<last-received>4573</last-received>
<last-sent>47</last-sent>
<last-checked>4573</last-checked>
<input-messages>4</input-messages>
<input-updates>2</input-updates>
<input-refreshes>0</input-refreshes>
<input-octets>127</input-octets>
<output-messages>3</output-messages>
<output-updates>0</output-updates>
<output-refreshes>0</output-refreshes>
<output-octets>61</output-octets>
<bgp-output-queue>
<number>1</number>
<count>0</count>
<table-name>inet.0</table-name>
<rib-adv-nlri>inet-unicast</rib-adv-nlri>
</bgp-output-queue>
</bgp-peer>
</bgp-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