debug {all | }
Syntax
debug {all | } [ ] [severity (emer|crit|alert|err|notice|warning|info|debug)] {port | vlan< vlan id >| ip | mac | vrf | instance } no debug {all | } [ ] {port | vlan | ip | mac | vrf | instance}
Description
Enables debug logging for modules or submodules by name, with optional filtering by specific criteria.
Theno
form of this command disables debug logging.
Command context
Manager (#
)
Parameters
-
all
-
使所有的模块的调试日志记录。
-
-
Enables debug logging for a specific module. For a list of supported modules, enter the
debug
command followed by a space and a question mark (?). -
-
Enables debug logging for a specific submodule. For a list of supported submodules, enter the
debug
command followed by a space and a question mark (?). -
severity (emer|crit|alert|err|notice|warning|info|debug)
-
Selects the minimum severity log level for the destination. If a severity is not provided, the default log level is
debug
. Optional.-
emer
-
Specifies storage of debug logs with a severity level of
emergency
only.
-
crit
-
Specifies storage of debug logs with severity level of
critical
and above.
-
alert
-
Specifies storage of debug logs with severity level of
alert
and above.
-
err
-
Specifies storage of debug logs with severity level of
error
and above.
-
notice
-
Specifies storage of debug logs with severity level of
notice
and above.
-
warning
-
Specifies storage of debug logs with severity level of
warning
and above.
-
info
-
Specifies storage of debug logs with severity level of
info
and above.
-
debug
-
Specifies storage of debug logs with severity level of
debug
(default).
-
-
port
-
Displays debug logs for the specified port, for example
1/1/1
. -
vlan< vlan id >
-
Displays debug logs for the specified VLAN. Provide a VLAN from 1 to 4094.
-
ip
-
Displays debug logs for the specified IP Address.
-
mac
-
Displays debug logs for the specified MAC Address, for example
A:B:C:D:E:F
. -
vrf
-
Displays debug logs for the specified VRF.
-
instance
-
Displays debug logs for the specified instance. Provide an instance ID from 1 to 255.
Authority
Administrators or local user group members with execution rights for this command.
Examples
switch#debug all