xStack
® 
DGS-3120 Series Managed Switch CLI Reference Guide 
224 
 
22-3  debug output 
Description 
This command is used 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. 
 
Format 
debug output [module <module_list> | all] [buffer | console] 
 
Parameters 
module - Specify the module list. 
<module_list> - Enter the module list here. 
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-level users can issue this command. 
 
Example 
To set all module debug message outputs to local console: 
DGS-3120-24TC:admin# debug output all console 
Command: debug output all console 
 
Success. 
 
DGS-3120-24TC:admin# 
 
22-4  debug config error_reboot 
Description 
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. 
 
Format 
debug config error_reboot [enable | disable] 
 
Parameters 
enable – If enabled, the Switch will reboot when a fatal error happens. 
disable – If disabled the Switch will not reboot when a fatal error happens, system will hang-up 
for debug and enter the debug shell mode for debug.