This article provides information on how to obtain BGP information by using a SNMP OID on EX-series switches.
user@switch# show protocols bgp export test; group ibgp { type internal; local-address 1001::1; peer-as 100; local-as 100; tcp-mss 1000; neighbor 3003::3; } user@switch# run show bgp summary Groups: 1 Peers: 1 Down peers: 0 Table Tot Paths Act Paths Suppressed History Damp State Pending inet6. 0 0 0 0 0 0 0 Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped... 3003::3 100 3 5 0 2 2 Establ inet6.0: 0/0/0/0
user@switch# show protocols bgp export test; group ibgp { type internal; local-address 1001::1; peer-as 100; local-as 100; tcp-mss 1000; neighbor 3003::3; }
user@switch# run show bgp summary Groups: 1 Peers: 1 Down peers: 0 Table Tot Paths Act Paths Suppressed History Damp State Pending inet6. 0 0 0 0 0 0 0 Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped... 3003::3 100 3 5 0 2 2 Establ inet6.0: 0/0/0/0
The following SNMP OID is used to verify the BGP information:
user@switch# run show snmp mib walk .1.3.6.1.2.1.15 bgpVersion.0 = 10 bgpLocalAs.0 = 0 bgpPeerIdentifier.0.0.0.0 = 11.0.1.1 bgpPeerState.0.0.0.0 = 6 > BGP Peer State bgpPeerAdminStatus.0.0.0.0 = 2 bgpPeerNegotiatedVersion.0.0.0.0 = 4 bgpPeerLocalAddr.0.0.0.0 = 0.0.0.0 bgpPeerLocalPort.0.0.0.0 = 61788 bgpPeerRemoteAddr.0.0.0.0 = 0.0.0.0 bgpPeerRemotePort.0.0.0.0 = 179 bgpPeerRemoteAs.0.0.0.0 = 2 bgpPeerInUpdates.0.0.0.0 = 2 bgpPeerOutUpdates.0.0.0.0 = 0 bgpPeerInTotalMessages.0.0.0.0 = 68 bgpPeerOutTotalMessages.0.0.0.0 = 69 bgpPeerLastError.0.0.0.0 = 00 00 bgpPeerFsmEstablishedTransitions.0.0.0.0 = 1 bgpPeerFsmEstablishedTime.0.0.0.0 = 1777 bgpPeerConnectRetryInterval.0.0.0.0 = 32 bgpPeerHoldTime.0.0.0.0 = 90 bgpPeerKeepAlive.0.0.0.0 = 30 bgpPeerHoldTimeConfigured.0.0.0.0 = 90 bgpPeerKeepAliveConfigured.0.0.0.0 = 30 bgpPeerMinASOriginationInterval.0.0.0.0 = 1 bgpPeerMinRouteAdvertisementInterval.0.0.0.0 = 1 bgpPeerInUpdateElapsedTime.0.0.0.0 = 1777 bgpIdentifier.0 = 22.0.2.2
Values: {1 : idle} {2 : connect} {3 : active} {4 : opensent } {5 : openconfirm} {6 : established } jnxBgpM2PeerState.0.2.16.1.0.0.0.0.0.0.0.0.0.0.0.0.0.1.2.48.3.0.0.0.0.0.0.0.0.0.0.0.0.0.3 = 6 < Established
jnxBgpM2PeerLocalAddr.0.2.16.1.0.0.0.0.0.0.0.0.0.0.0.0.0.1.2.48.3.0.0.0.0.0.0.0.0.0.0.0.0.0.3 = 10 01 00 00 00 00 00 00 00 00 00 00 00 00 00 01 < 1001::1
jnxBgpM2PeerRemoteAddr.0.2.16.1.0.0.0.0.0.0.0.0.0.0.0.0.0.1.2.48.3.0.0.0.0.0.0.0.0.0.0.0.0.0.3 = 30 03 00 00 00 00 00 00 00 00 00 00 00 00 00 03 < 3003::3