debugging

Syntax

debugging { all [ timeout time ] | module-name [ option ] }

undo debugging { all | module-name [ option ] }

View

User view

Default level

1: Monitor level

Parameters

all: All debugging functions.

timeout time: Specifies the timeout time for the debugging all command. When all debugging is enabled, the system automatically executes the undo debugging all command after the time. The value is in the range of 1 to 1440, in minutes.

module-name: Module name, such as arp or device. To display the current module name, use the debugging ? command.

option: The debugging option for a specific module. Different modules have different debugging options in terms of their number and content. To display the currently supported options, use the debugging module-name ? command.

Description

Use debugging to enable the debugging of a specific module.

Use undo debugging to disable the debugging of a specific module.

By default, debugging functions of all modules are disabled.

Output of the debugging information may degrade system efficiency, so you should enable the debugging of the corresponding module for diagnosing network failure, and not to enable debugging of multiple modules at the same time.

Default level describes the default level of the debugging all command. Different debugging commands may have different default levels.

Configure the debugging, terminal debugging and terminal monitor commands first to display detailed debugging information on the terminal. For more information about the terminal debugging and terminal monitor commands, see "Information center configuration commands."

Related commands: display debugging.

Examples

# Enable IP packet debugging.

<Sysname> debugging ip packet