The debugging bgp event command enables debugging of BGP neighbor events.
The undo debugging bgp event command disables debugging of BGP neighbor events.
By default, debugging of BGP neighbor events is disabled.
The debugging bgp graceful-restart command enables debugging of the BGP graceful restart feature.
The undo debugging bgp graceful-restart command disables debugging of the graceful restart feature.
By default, debugging of the BGP graceful restart feature is disabled.
The debugging bgp socket-process command enables debugging of socket processing events for BGP neighbors.
The undo debugging bgp socket-process command disables debugging of socket processing events for BGP neighbors.
By default, debugging of socket processing events for BGP neighbors is disabled.
debugging bgp { event | graceful-restart | socket-process } peer peerIpv4Addr
debugging bgp { event | graceful-restart | socket-process } vpn-instance vrf-name [ peer { peerIpv4Addr | peerIpv6Addr } ]
debugging bgp { event | graceful-restart | socket-process }
debugging bgp { event | graceful-restart | socket-process } peer peerIpv6Addr
debugging bgp instance bgpName { event | graceful-restart | socket-process } peer peerIpv4Addr
debugging bgp instance bgpName { event | graceful-restart | socket-process }
undo debugging bgp { event | graceful-restart | socket-process } peer peerIpv4Addr
undo debugging bgp { event | graceful-restart | socket-process } vpn-instance vrf-name [ peer { peerIpv4Addr | peerIpv6Addr } ]
undo debugging bgp { event | graceful-restart | socket-process }
undo debugging bgp { event | graceful-restart | socket-process } peer peerIpv6Addr
undo debugging bgp instance bgpName { event | graceful-restart | socket-process } peer peerIpv4Addr
undo debugging bgp instance bgpName { event | graceful-restart | socket-process }
Parameter | Description | Value |
---|---|---|
peer peerIpv4Addr |
Specifies the IP address of an IPv4 peer. |
The value is in dotted decimal notation. |
instance bgpName |
Specifies the name of a BGP multi-instance. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
vpn-instance vrf-name |
Specify a VPN-Instance (VRF) name. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string. |
peerIpv6Addr |
Specifies the IP address of an IPv6 peer. |
The value is in the X:X:X:X:X:X:X:X format. |
Usage Scenario
The debugging bgp event command enables debugging of BGP neighbor events so that you can view changes of the neighbor state machine.
The debugging bgp graceful restart command enables debugging of the graceful restart feature so that you can view the information during the BGP GR processing. When much information is output, you can filter the output information by VPN instance, peer. The debugging bgp socket-process command enables debugging of socket processing events for BGP neighbors so that you can view the information about interaction between BGP and the socket process.Follow-up Procedure
Run the undo debugging bgp event command to disable debugging of BGP neighbor events.
Run the undo debugging bgp graceful-restart command to disable debugging of the graceful restart feature. Run the undo debugging bgp socket-process command to disable debugging of socket processing events for BGP neighbors.Precautions
Debugging information is output on the screen. Do not output too much information for other purposes than debugging so that the performance is not affected.
<HUAWEI> debugging bgp socket-process
2011-02-23 02:18:32 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738910;
BGP(VPN 0): 21 bytes are read on socket(47) from 3.3.3.9.
2011-02-23 02:18:32 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738910;
BGP(VPN 0): Peer 3.3.3.9 closes socket(47).
2011-02-23 02:18:41 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738910;
BGP(VPN 0): 3.3.3.9 create connect socket.
2011-02-23 02:18:41 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738910;
BGP(VPN 0): Connected to 3.3.3.9 on socket(50).
2011-02-23 02:18:42 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738910;
BGP(VPN 0): 51 bytes are read on socket(50) from 3.3.3.9.
2011-02-23 02:18:42 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738910;
BGP(VPN 0): 19 bytes are writen to socket(50) for 3.3.3.9.
2011-02-23 02:18:42 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738910;
BGP(VPN 0): 19 bytes are read on socket(50) from 3.3.3.9.
2011-02-23 02:18:42 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738910;
BGP(VPN 0): 53 bytes are read on socket(50) from 3.3.3.9.
<HUAWEI> debugging bgp event
2011-02-23 02:16:45 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738910;
BGP(VPN 0): 3.3.3.9 changes state from ESTABLISHED to IDLE on event RECV_NOTIF.
2011-02-23 02:16:54 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738910;
BGP(VPN 0): 3.3.3.9 changes state from IDLE to IDLE on event IH_TIMER.
2011-02-23 02:16:54 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738910;
BGP(VPN 0): 3.3.3.9 changes state from IDLE to CONNECT on event AUTO_START.
2011-02-23 02:16:54 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738910;
BGP(VPN 0): 3.3.3.9 changes state from CONNECT to CONNECTPEND on event TCP_SUCCEED.
2011-02-23 02:16:54 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738910;
BGP(VPN 0): 3.3.3.9 changes state from CONNECT to CONNECTPEND on event TCP_SUCCEED.
2011-02-23 02:16:54 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738910;
BGP(VPN 0): 3.3.3.9 changes state from CONNECTPEND to OPENSENT on event OD_TIMER.
2011-02-23 02:16:54 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738910;
BGP(VPN 0): 3.3.3.9 changes state from OPENSENT to OPENCONFIRM on event RECV_OPEN.
2011-02-23 02:16:54 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738910;
BGP(VPN 0): 3.3.3.9 changes state from OPENCONFIRM to OPENCONFIRM on event KA_TIMER.
2011-02-23 02:16:55 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738910;
BGP(VPN 0): 3.3.3.9 changes state from OPENCONFIRM to ESTABLISHED on event RECV_KA.
2011-02-23 02:16:55 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738910;
BGP(VPN 0): 3.3.3.9 changes state from ESTABLISHED to ESTABLISHED on event RECV_UPDATE.
2011-02-23 02:16:55 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738910;
BGP(VPN 0): 3.3.3.9 changes state from ESTABLISHED to ESTABLISHED on event RECV_UPDATE.
<HUAWEI> debugging bgp graceful-restart
2011-02-23 02:19:42 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738910;
BGP.GR(VPN 0)(IPv4-unicast): Restart timer is created for 3.3.3.9 - 180s
2011-02-23 02:20:40 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738910;
BGP.GR(VPN 0)(IPv4-unicast): EOR timer is created for 3.3.3.9 - 600s
2011-02-23 02:20:41 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738910;
BGP.GR(VPN 0)(IPv4-unicast): 3.3.3.9 received EOR