Page 186 / 757 Scroll up to view Page 181 - 185
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
182
clear counter
If no parameter is specified, system will counter all of the ports.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To clear the switch’s statistics counters:
DGS-3627:admin# clear counters ports 2:7-2:9
Command: clear counters ports 2:7-2:9
Success.
DGS-3627:admin#
Page 187 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
183
22
DEBUG COMMANDS
Software Debug is used to define the common behavior of each module’s debug function and collect and save basic OS
information when exceptions happen.
The Debug commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the
following table.
Command
Parameters
debug error_log
[dump | clear | upload_toTFTP <ipaddr> <path_filename 64>]
debug buffer
[utilization | dump | clear | upload_toTFTP <ipaddr> <path_filename 64>]
debug output
[module <module_list> | all] [buffer | console]
debug config ipv6route_preference
[local | static | ripng | ospf6] <value 1-999>
debug config error_reboot
[enable | disable]
debug show status
{ module <module_list> }
debug config state
[enable | disable]
debug show error_reboot state
Each command is listed, in detail, in the following sections.
debug error_log
Purpose
Use this command to dump, clear or upload the software error log to a TFTP server.
Syntax
debug error_log [dump | clear | upload_toTFTP <ipaddr> <path_filename 64>]
Description
Dump, clear or upload the debug log to a TFTP server. The “error log” here refers to the
software error log stored in NVRAM.
Parameters
dump
- Display the debug message of the debug log.
clear
- Clear the debug log.
upload_toTFTP
- Upload the debug log to a TFTP server specified by IP address.
<ipaddr>
- Specifies the IPv4 address of the TFTP server.
<path_filename 64>
- The pathname specifies the DOS pathname on the TFTP server. It can
be a relative pathname or an absolute pathname.
Restrictions
Only Administrator and Operator-level users can issue this command.
Page 188 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
184
Example usage:
To dump the error log:
DGS-3627:admin# debug error_log dump
Command: debug error_log dump
**************************************************************************
# debug log: 1
# level: fatal
# clock: 10000ms
# time : 2010/03/11 13:00:00
====================== SOFTWARE FATAL ERROR =======================
Invalid mutex handle : 806D6480
Current TASK : bcmARL.0
------------------------- TASK STACKTRACE ------------------------
->802ACE98
->8018C814
->8028FF44
->8028352C
->801D703C
->8013B8A4
->802AE754
->802A5E0C
->802A5D6C
--------------------------------------------------------------------------
TASK NAME StackTop
CurStkSP
StackSize SchCnt
PRIO(I)
STATUS
8069E7D0
FWD-ETH
823E9798
823E95C4
1K/ 32K
2
160/160
Q:IP_PKT
806A3E70
SysLogTask 80BD040C
80BD0298
1K/ 16K
3
180/180
E:SysLogEvent
806A4340
PktStorm
80BF3188
80BF2DAC
2K/ 16K
807E4
190/190
Q:ST_Storm
To clear the error log:
DGS-3627:admin# debug error_log clear
Command: debug error_log clear
Success.
DGS-3627:admin#
To upload the error log to TFTP server:
DGS-3627:admin# debug error_log upload_toTFTP 10.0.0.90 debug-log.txt
Command: debug error_log upload_toTFTP 10.0.0.90 debug-log.txt
Connecting to server
...................
Done.
Upload error log
...................
Done.
DGS-3627:admin#
Page 189 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
185
debug buffer
Purpose
Use this command to show the debug buffer’s state, or dump, clear, or upload the debug
buffer to a TFTP server.
Syntax
debug buffer [utilization | dump | clear | upload_toTFTP <ipaddr> <path_filename 64>]
Description
Show the debug buffer’s state or dump, clear or upload the debug buffer to TFTP server. The
“buffer” here refers to the module debug message stored in RAM.
Parameters
utilization
- Display the debug buffer’s state.
dump
- Display the debug message in the debug buffer.
clear
- Clear the debug buffer.
upload_toTFTP
- Upload the debug buffer to a TFTP server specified by IP address.
<ipaddr>
- Specifies the IPv4 address of the TFTP server.
<path_filename 64>
- The pathname specifies the DOS pathname on the TFTP server. It can
be a relative pathname or an absolute pathname.
Restrictions
Only Administrator and Operator-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#
To clear the debug buffer:
DGS-3627:admin# debug buffer clear
Command: debug buffer clear
Success.
DGS-3627:admin#
To upload the messages stored in debug buffer to TFTP server:
DGS-3627:admin# debug buffer upload_toTFTP 10.0.0.90 debugcontent.txt
Command: debug buffer upload_toTFTP 10.0.0.90 debugcontent.txt
Connecting to server
....................
Done.
Upload debug file
...................
Done.
DGS-3627:admin#
debug output
Purpose
Use the command to set a specified module’s debug message output to debug buffer or local
console. If the user uses the command in a Telnet session, the error message also is output
to the local console.
Syntax
debug output [module <module_list> | all] [buffer | console]
Page 190 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
186
debug output
Description
Set specified module’s debug message output to debug buffer or local console.
Parameters
<module_list>
- The module list.
all
- Control output method of all modules.
buffer
- Direct the debug message of the module output to debug buffer(default).
console
- Direct the debug message of the module output to local console.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To set all module debug message outputs to local console:
DGS-3627:admin# debug output all console
Command: debug output all console
Success.
DGS-3627:admin#
debug config ipv6route_preference
Purpose
Use the command to debug the IPv6 route preference.
Syntax
debug config ipv6route_preference [local | static | ripng | ospf6] <value 1-999>
Description
Use the command to debug the IPv6 route preference.
Parameters
local
- Debug configure local preference.
static
- Debug configure staticl preference.
ripng
- Debug configure ripng preference.
ospf6
- Debug configure ospf6 preference.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To set the local preference to 1:
DGS-3627:admin# debug config ipv6route_preference local 1
Command: debug config ipv6route_preference local 1
Success.
DGS-3627:admin#
debug config error_reboot
Purpose
This command is used to set if the switch needs to be rebooted when a fatal error occurs.
When the error occurs, the watchdog timer will be disabled by the system first, and then all
debug information will be saved in NVRAM. If the error_reboot is enabled, the watchdog shall
be enabled after all information is stored into NVRAM.
Syntax
debug config error_reboot [enable | disable]
Description
Set if the switch needs to be rebooted when a fatal error occurs.
Parameters
enable
- Need reboot switch when fatal error happens.(if the project do not define the default
setting, enable for default)

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

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

Share
Top