show bgp replication
Syntax
show bgp replication
rib-sharding (rib-shard-name)
Description
Displays the status of BGP state replication between the primary and backup Routing Engines on devices that have nonstop active routing configured on them.
Before attempting nonstop active routing switchover, check the
output of show bgp replication
to confirm that BGP routing
table synchronization has completed on the backup Routing Engine.
The complete
status in the output of show task replication
only indicates that the socket replication
has completed and the BGP synchronization is in progress.
To determine whether BGP synchronization is complete, you must
check the Protocol state
and Synchronization state
fields in the output of show bgp replication
on the primary Routing Engine. The Protocol state
must be idle
and the Synchronization state
must
be complete
. If you perform NSR switchover
before the BGP synchronization has completed, the BGP session might
flap.
rib-sharding (rib-shard-name) |
(Optional) Display replicated information for specific shard only. |
Required Privilege Level
view
Output Fields
Table 1 lists
the output fields for the show bgp replication
command.
Output fields are listed in the approximate order in which they appear.
Field Name |
Field Description |
||||
---|---|---|---|---|---|
Precision timer registration |
State of BGP precision timer feature in the kernel.
|
||||
session state |
State of the current internal BGP state replication session, Up or Down, and the duration for which the session has been in the indicated state. |
||||
flaps |
Total number of flaps that occurred. |
||||
protocol state |
Current state of the protocol operation, Active, Connect, Idle, and the duration for which the protocol has been in the indicated state. |
||||
synchronization state |
Synchronization state at the time of executing the command. The states can be:
|
||||
number of peers waiting |
Total number of peers waiting for various messages:
|
||||
messages sent |
Number of various types of messages that have been sent since internal replication session became active:
|
||||
messages received |
Total number of messages received:
|
Sample Output
- show bgp replication (for Primary)
- show bgp replication (for Primary with rib-sharding configured)
- show bgp replication (for Backup)
- show bgp replication (for Backup with rib-sharding configured)
show bgp replication (for Primary)
user@host> show bgp replication Synchronization master: Precision timer registration: Registered Session state: Up, Since: 10:14 Flaps: 1, Last flap reason: Backup closed connection Protocol state: Idle, Since: 10:14 Synchronization state: Complete Number of peers waiting: AckWait: 0, SoWait: 0, Scheduled: 0 Messages sent: Open 1, Establish 11, GrHelper 0, Update 0, GrStaleLabel 0 Error 0, Complete 1 Messages received: Open 1, Request 1 wildcard 0 targeted, EstablishAck 11, GrHelperAck 0, CompleteAck 1
show bgp replication (for Primary with rib-sharding configured)
user@host> show bgp replication rib-sharding junos-bgpshard0 Synchronization master: Precision timer registration: NotRegistered Session state: Up, Since: 15:12 Flaps: 0 Protocol state: Idle, Since: 15:12 Synchronization state: Complete Number of peers waiting: AckWait: 0, SoWait: 0, Scheduled: 0 Messages sent: Open 1, Establish 0, GrHelper 0, Update 0, GrStaleLabel 0 Error 0, Complete 1 Messages received: Open 1, Request 0 wildcard 0 targeted, EstablishAck 0, GrHelperAck 0, CompleteAck 1
show bgp replication (for Backup)
user@host> show bgp replication Synchronization backup: State: Established 13 ago , Unsync timer: 2 Unsync entry queue: Instance: 0 Neighbor: 30.30.30.1 elapsed: 7 Instance: 0 Neighbor: 40.40.40.3 elapsed: 7 Instance: 0 Neighbor: 40.40.40.4 elapsed: 7 Instance: 0 Neighbor: 40.40.40.5 elapsed: 7 Instance: 0 Neighbor: 40.40.40.6 elapsed: 7 Instance: 0 Neighbor: 40.40.40.1 elapsed: 7 Instance: 0 Neighbor: 40.40.40.2 elapsed: 7
show bgp replication (for Backup with rib-sharding configured)
user@host> show bgp replication rib-sharding junos-bgpshard0 Synchronization backup: State: Established 17:48 ago
Release Information
Command introduced in Junos OS Release 8.5.
Support for logical-system
option introduced in Junos
OS Release 13.3.
Support for rib-sharding (rib-shard-name)
option
introduced in Junos OS and Junos Evolved Release 22.2.