xStack
®
DGS-3400 Series Layer 2 Gigabit Ethernet Managed Switch CLI Manual
143
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-3450:admin# debug output all console
Command: debug output all console
Success.
DGS-3450: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)
disable
- Do not need reboot switch when fatal error happens, system will hang-up for debug
and enter the debug shell mode for debug..
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To set the switch to not need a reboot when a fatal error occurs:
DGS-3450:admin# debug config error_reboot disable
Command: debug config error_reboot disable
Success.
DGS-3450:admin#
debug show status
Purpose
Use the command to show the specified module’s debug status.
Syntax
debug show status { module <module_list> }
Description
Show the debug handler state and the specified module’s debug status.
If the input module list is empty, the states of all registered modules which support debug
module will be shown.