Step 7: 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 CLI operational mode commands:
user@host>show bgp summary|savefilenameuser@host>show isis adjacency brief|savefilenameuser@host>show ospf neighbor brief|savefilenameSample Output 1
user@host> show bgp summary|save testWrote 45 lines of output to 'test'user@host> show bgp summaryGroups: 1 Peers: 1 Down peers: 0Table Tot Paths Act Paths Suppressed History Damp State Pendinginet.0 4 4 0 0 0 0Peer 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/0Sample Output 2
user@host>show isis adjacency brief|save testWrote 7 lines of output to 'test'user@host>show isis adjacency briefIS-IS adjacency database:Interface System L State Hold (secs) SNPAso-1/0/0.0 1921.6800.5067 2 Up 13so-1/1/0.0 1921.6800.5067 2 Up 25so-1/2/0.0 1921.6800.5067 2 Up 20so-1/3/0.0 1921.6800.5067 2 Up 19so-2/0/0.0 1921.6800.5066 2 Up 19so-2/1/0.0 1921.6800.5066 2 Up 17so-2/2/0.0 1921.6800.5066 2 Up 20so-2/3/0.0 1921.6800.5066 2 Up 20so-5/0/0.0 ranier 2 Up 17Sample Output 3
user@host>show ospf neighbor brief|save testWrote 10 lines of output to 'test'user@host>show ospf neighbor briefAddress Intf State ID Pri Dead10.168.254.225 fxp3.0 2Way 10.250.240.32 128 3610.168.254.230 fxp3.0 Full 10.250.240.8 128 3810.168.254.229 fxp3.0 Full 10.250.240.35 128 3310.1.1.129 fxp2.0 Full 10.250.240.12 128 3710.1.1.131 fxp2.0 Full 10.250.240.11 128 3810.1.2.1 fxp1.0 Full 10.250.240.9 128 3210.1.2.81 fxp0.0 Full 10.250.240.10 128 33What It Means
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.