Skip to content

Instantly share code, notes, and snippets.

@Mierdin
Created April 21, 2015 19:17
Show Gist options
  • Save Mierdin/13317980cb2ed6fc35bf to your computer and use it in GitHub Desktop.
Save Mierdin/13317980cb2ed6fc35bf to your computer and use it in GitHub Desktop.
---
BGPNeighborTable:
rpc: get-bgp-summary-information
item: bgp-information/bgp-peer
key: peer-address
view: BGPNeighborView
BGPNeighborView:
fields:
otheras: peer-as
#####################################################################
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/12.1X47/junos">
<bgp-information xmlns="http://xml.juniper.net/junos/12.1X47/junos-routing">
<group-count>1</group-count>
<peer-count>2</peer-count>
<down-peer-count>0</down-peer-count>
<bgp-rib junos:style="brief">
<name>inet.0</name>
<total-prefix-count>2</total-prefix-count>
<received-prefix-count>2</received-prefix-count>
<accepted-prefix-count>2</accepted-prefix-count>
<active-prefix-count>1</active-prefix-count>
<suppressed-prefix-count>0</suppressed-prefix-count>
<history-prefix-count>0</history-prefix-count>
<damped-prefix-count>0</damped-prefix-count>
<total-external-prefix-count>2</total-external-prefix-count>
<active-external-prefix-count>1</active-external-prefix-count>
<accepted-external-prefix-count>2</accepted-external-prefix-count>
<suppressed-external-prefix-count>0</suppressed-external-prefix-count>
<total-internal-prefix-count>0</total-internal-prefix-count>
<active-internal-prefix-count>0</active-internal-prefix-count>
<accepted-internal-prefix-count>0</accepted-internal-prefix-count>
<suppressed-internal-prefix-count>0</suppressed-internal-prefix-count>
<pending-prefix-count>0</pending-prefix-count>
<bgp-rib-state>BGP restart is complete</bgp-rib-state>
</bgp-rib>
<bgp-peer junos:style="terse" heading="Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...">
<peer-address>1.1.12.2</peer-address>
<peer-as>121</peer-as>
<input-messages>337</input-messages>
<output-messages>337</output-messages>
<route-queue-count>0</route-queue-count>
<flap-count>0</flap-count>
<elapsed-time junos:seconds="9073">2:31:13</elapsed-time>
<peer-state junos:format="0/1/1/0 0/0/0/0">Established</peer-state>
<bgp-rib>
<name>inet.0</name>
<active-prefix-count>0</active-prefix-count>
<received-prefix-count>1</received-prefix-count>
<accepted-prefix-count>1</accepted-prefix-count>
<suppressed-prefix-count>0</suppressed-prefix-count>
</bgp-rib>
</bgp-peer>
<bgp-peer junos:style="terse">
<peer-address>1.1.31.3</peer-address>
<peer-as>131</peer-as>
<input-messages>338</input-messages>
<output-messages>335</output-messages>
<route-queue-count>0</route-queue-count>
<flap-count>0</flap-count>
<elapsed-time junos:seconds="9073">2:31:13</elapsed-time>
<peer-state junos:format="1/1/1/0 0/0/0/0">Established</peer-state>
<bgp-rib>
<name>inet.0</name>
<active-prefix-count>1</active-prefix-count>
<received-prefix-count>1</received-prefix-count>
<accepted-prefix-count>1</accepted-prefix-count>
<suppressed-prefix-count>0</suppressed-prefix-count>
</bgp-rib>
</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