Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[EX/QFX] How to obtain BGP information by using a SNMP OID on EX-series switches

0

0

Article ID: KB20815 KB Last Updated: 05 Mar 2017Version: 2.0
Summary:
This article provides information on how to obtain BGP information by using a SNMP OID on EX-series switches.
Symptoms:
To obtain the following BGP Information by using a SNMP OID:
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
Cause:

Solution:
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
From the above output the following BGP information is obtained:

  • The BGP peer connection state:
    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
  • The local IP address of this entry's BGP connection:
    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
  • The Remote IP address of this entry's BGP connection:
    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
Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search