Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Log the BGP, IS-IS, and OSPF Adjacency Information

    Purpose

    The following commands log useful information about Border Gateway Protocol (BGP), Intermediate System-to-Intermediate System (IS-IS), and Open Shortest Path First (OSPF) protocols. If you have other protocols installed, such as Multiprotocol Label Switching (MPLS), Resource Reservation Protocol (RSVP), or Protocol Independent Multicast (PIM), you also might log summary information for them.

    Action

    To log the protocol peer information, use the following Junos OS CLI operational mode commands:

    user@host> show bgp summary | save filename user@host> show isis adjacency brief | save filename user@host> show ospf neighbor brief | save filename

    Sample Output 1

    user@host> show bgp summary | save test
    Wrote 45 lines of output to ‘test’
    
    user@host> show bgp summary
    Groups: 1 Peers: 1 Down peers: 0
    Table          Tot Paths  Act Paths Suppressed    History Damp State    Pending
    inet.0                 4          4          0          0          0          0
    Peer               AS      InPkt     OutPkt    OutQ   Flaps Last Up/Dwn State|#Active/Received/Damped..
    9.9.3.1             2       2627       2628       0       0    21:50:12 4/4/0                0/0/0
    

    Sample Output 2

    user@host> show isis adjacency brief | save test
    Wrote 7 lines of output to ‘test’
    
    user@host> show isis adjacency brief
    IS-IS adjacency database:
    Interface  System         L State        Hold (secs) SNPA
    so-1/0/0.0 1921.6800.5067 2 Up                    13
    so-1/1/0.0 1921.6800.5067 2 Up                    25
    so-1/2/0.0 1921.6800.5067 2 Up                    20
    so-1/3/0.0 1921.6800.5067 2 Up                    19
    so-2/0/0.0 1921.6800.5066 2 Up                    19
    so-2/1/0.0 1921.6800.5066 2 Up                    17
    so-2/2/0.0 1921.6800.5066 2 Up                    20
    so-2/3/0.0 1921.6800.5066 2 Up                    20
    so-5/0/0.0 ranier         2 Up                    17
    

    Sample Output 3

    user@host> show ospf neighbor brief | save test
    Wrote 10 lines of output to ‘test’
    
    user@host> show ospf neighbor brief
      Address         Intf               State      ID              Pri  Dead
    10.168.254.225   fxp3.0              2Way      10.250.240.32    128   36
    10.168.254.230   fxp3.0              Full      10.250.240.8     128   38
    10.168.254.229   fxp3.0              Full      10.250.240.35    128   33
    10.1.1.129       fxp2.0              Full      10.250.240.12    128   37
    10.1.1.131       fxp2.0              Full      10.250.240.11    128   38
    10.1.2.1         fxp1.0              Full      10.250.240.9     128   32
    10.1.2.81        fxp0.0              Full      10.250.240.10    128   33
    

    Meaning

    Sample output 1 displays summary information about BGP and its neighbors. Sample output 2 displays information about IS-IS neighbors. Sample output 3 displays information about all OSPF neighbors.

    Published: 2013-02-25