Page 101 / 757 Scroll up to view Page 96 - 100
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
97
debug buffer
buffer to the TFTP server. The “buffer” here refers to the module debug messages stored in
the RAM. For more information on this command, please refer to the UIS-Debug topic
Parameters
utilization
- Displays the debug buffer’s state
dump
- Displays the debug messages in the debug buffer.
clear
- Clears the debug buffer
upload_toTFTP
- Uploads the debug buffer to the TFTP server that is specified by its IP
address
<ipaddr>
- IP version 4 address
<path_filename 64>
- Uploads the debug buffer to the TFTP server and names it to the string
<path_filename 64>.
Restrictions
Only Administrator level users can issue this command.
Example usage:
To show the debug buffer’s state:
DGS-3627:admin# debug buffer utilization
Command: debug buffer utilization
Allocate from
:
System memory
Total size :
2 MB
Utilization rate :
30%
DGS-3627:admin#
debug output
Purpose
This command is used to set the specified module’s debug message output to the debug
buffer or console
Syntax
debug output [module <module_list> | all] [buffer | console]
Description
This command is used to set the specified module’s debug message output to the debug
buffer or console. For more information on this command, please refer to the UIS-Debug
topic.
Parameters
<module_list>
- This is the controlling module list. For BGP debug, use BGP as the
parameter.
all
- Control output method of all modules.
buffer
- Let debug messages of the module output to the debug buffer.(default)
console
- Let debug messages of the module output to the console.
Restrictions
Only Administrator level users can issue this command.
Example usage:
To set all modules’ debug message output to console:
DGS-3627:admin# debug output all console
Command: debug output all console
Success.
DGS-3627:admin#
Page 102 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
98
debug bgp show flag
Purpose
This command is used to display the current BGP debugging flags’ setting
Syntax
debug bgp show flag
Description
This command is used to display the current BGP debugging flags’ setting
Parameters
None.
Restrictions
Only Administrator level users can issue this command.
Example usage:
This example shows the BGP debug flag:
DGS-3627:admin# debug bgp show flag
Command: debug bgp show flag
Current BGP flags setting:
Peer FSM Event
Disable
OPEN Packet Receive
Disable
OPEN Packet Send
Disable
UPDATE Packet Receive
Disable
UPDATE Packet Send
Disable
KEEPALIVE Packet Receive
Disable
KEEPALIVE Packet Send
Disable
NOTIFY Packet Receive
Disable
NOTIFY Packet Send
Disable
REFRESH Packet Receive
Disable
REFRESH Packet Send
Disable
CAPABILITY Packet Receive
Disable
CAPABILITY Packet Send
Disable
Filter Info
Disable
Route MAP
Disable
Access List
Disable
Prefix List
Disable
ERROR Information
Disable
Zebros Debug Info
Disable
Other Normal Information.
Disable
DGS-3627:admin#
debug bgp all flag
Purpose
This command is used to set all BGP debugging flags to be disabled or enabled
Syntax
debug bgp all flag [enable | disable]
Description
This command is used to set all BGP debugging flags to be disabled or enabled
Parameters
enable
- Enable the BGP debug function
disable
- Disable the BGP debug function
Restrictions
Only Administrator level users can issue this command.
Example usage:
Configure all BGP debug flags’ state to be enabled:
Page 103 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
99
DGS-3627:admin#
debug bgp all flag enable
Command: debug bgp all flag enable
Success.
DGS-3627:admin#
debug bgp fsm_event
Purpose
This command is used to set the flag of debugged information related to the peer FSM Event
Syntax
debug bgp fsm_event [enable | disable]
Description
This command is used to set the flag of debugged information related to the peer FSM Event
Parameters
enable
- Enable the BGP debug function
disable
- Disable the BGP debug function
Restrictions
Only Administrator level users can issue this command.
Example usage:
Configure BGP peer FSM event debug flag to be enabled:
DGS-3627:admin# debug bgp fsm_event enable
Command: debug bgp fsm_event enable
Success.
DGS-3627:admin#
After the BGP peer FSM event debug flag is set to enable, it may print following information:
BGP: 10.1.1.1-10.2.2.2, [FSM] State Change: Idle -> Connect.
BGP: 10.1.1.1-10.2.2.2, [FSM] Hold-Timer Expiry.
BGP: 10.1.1.1-10.2.2.2, [FSM] State: Open, Event: 3.
debug bgp packet
Purpose
This command is used to set the flag of debugged information related to the different type of
BGP packets, receiving and sending.
Syntax
debug bgp packet [ {open | update | keepalive | notify | refresh | capability } (1) | all ] [
in | out ] [ enable | disable ]
Description
This command is used to set the flag of debugged information related to the different type of
BGP packets, receiving and sending. When a packet is sent or received and the updated
packet’s NLRI prefix is more than 5, the debugged information will only show the number five
in the NLRI prefix followed by three dots to the end.
Parameters
packet
- Packet type for debug information to display:
open
update
keepalive
notify
refresh
capability
all
Page 104 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
100
debug bgp packet
Direction of packet:
in
out
enable
- Enable the BGP debug function
disable
- Disable the BGP debug function
Restrictions
Only Administrator level users can issue this command.
Example usage:
Configure BGP to display debugging information after it received update packets:
DGS-3627:admin# debug bgp packet all in enable
Command: debug bgp packet all in enable
Success.
DGS-3627:admin#
After the BGP peer FSM event debug flag is enabled, it may print following information:
BGP:Peer:<10.1.1.10> RCV OPEN, version:<4>,remote-as:<40>, HoldTime:<180>,RID:<16.0.0.1>
BGP:Peer:<10.1.1.10> RCV KEEPALIVE.
BGP:Peer:<10.1.1.10> RCV UPDATE, withdraw: <21.0.0.0/8>,<22.0.0.0/8>,<23.0.0.0/8>,
<24.0.0.0/8>,<25.0.0.0/8>...
BGP:Peer:<10.1.1.10> RCV UPDATE,attr:<Orign:i,As-path:10,Next-hop:10.1.1.10,Med:5>, NLRI:
<21.0.0.0/8>,<22.0.0.0/8>
BGP:Peer:<10.1.1.10> RCV NOTIFYCATION,Code:<OPEN Message Error.>,SubCode:<Bad Peer AS.>
BGP:Peer:<10.1.1.10> RCV REFRESH,afi:<1>,safi:<1>
BGP:Peer:<10.1.1.10> RCV Capability Action:Set,Code: GRST ,Length:2
debug bgp error
Purpose
This command is used to set the flag of debugging information related to BGP errors, to not
send BGP notifications
Syntax
debug bgp error state [enable | disable]
Description
This command is used to set the flag of debugging information related to BGP errors, to not
send BGP notifications
Parameters
enable
- Enable the BGP debug function
disable
- Disable the BGP debug function
Restrictions
Only Administrator level users can issue this command.
Example usage:
Configure BGP to enable the error debug flag:
DGS-3627:admin# debug bgp error state enable
Command: debug bgp error state enable
Success.
DGS-3627:admin#
Page 105 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
101
After configuring BGP to enable the error debug flag, it may print following information when an error happens:
BGP: 10.1.1.1-10.2.2.2, NHop Validate: Invalid NHop address 250.3.0.0/8 received.
BGP: Hold-Timer: Invalid Peer.
debug bgp show global_info
Purpose
This command is used to display global information of the current BGP instance.
Syntax
debug bgp show global_info
Description
This command is used to display global information of the current BGP instance.
Parameters
None.
Restrictions
Only Administrator level users can issue this command.
Example usage:
Configure BGP to show global information:
DGS-3627:admin# debug bgp show global_info
Command: debug bgp show global_info
Following is the information for global debugging:
---------------------------------------------------
AS Number
: 10000
Router ID
: 192.168.60.105
Cluster ID
: 0.0.0.0
Confed ID
: 0
Confederation peers
:
Fast External Fallover
: Enabled
Graceful Restart
: Disabled
Restart Time
: 120 Seconds
Stalepath Time
: 360 Seconds
Update Delay Time
: 120 Seconds
Dampening ability
: Disabled
Client to Client ability
: Enable
Cluster peers are:
Aggregate Next_Hop_Check
: Disabled
Default Local Preference
: 100
Default Holdtime
: 180
Default Keepalive
: 60
Scan Time
: 60
BGP active flag:
BGP active af-flag is:
BGP_AF_CFLAG_NETWORK_SYNC
note: address family is IPv4 Unicast
BGP active Redist-Flags:
note: The address family is IPv4
BGP Trap
: None
DGS-3627:admin#

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top