xStack
®
DGS-3400 Series Layer 2 Gigabit Ethernet Managed Switch CLI Manual
142
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-3450:admin# debug buffer utilization
Command: debug buffer utilization
Allocate from
:
System memory
Total size :
2 MB
Utilization rate :
30%
DGS-3450:admin#
To clear the debug buffer:
DGS-3450:admin# debug buffer clear
Command: debug buffer clear
Success.
DGS-3450:admin#
To upload the messages stored in debug buffer to TFTP server:
DGS-3450: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-3450: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]