debug {all | module}
Syntax
debug {all | <MODULE-NAME>} [<SUBMODULE-NAME>] [severity {emergency | critical | alert | error | warning | info | debug}] [filter {port <PORT-NAME> | vlan <VLAN-ID> | ip <IP-ADDRESS> | mac <MAC-ADDRESS> | vrf <VRF-NAME> | instance <INSTANCE-ID>}]
no debug {all | <MODULE-NAME>} [<SUBMODULE-NAME>] [filter {port <PORT-NAME> | vlan <VLAN-ID> | ip <IP-ADDRESS> | mac <MAC-ADDRESS> | vrf <VRF-NAME> | instance <INSTANCE-ID>}]
Description
Enables debug logging for modules or submodules by name, with optional filtering by specific criteria.
The
no
form of this command disables debug logging.
Command context
Manager (#
)
Parameters
all
Enables debug logging for all modules.
<MODULE-NAME>
Enables debug logging for a specific module.
<SUBMODULE-NAME>
Enables debug logging for a specific submodule.
severity {emergency | critical | alert | error | 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.emergency
Specifies storage of debug logs with a severity level of
emergency
only.
critical
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.
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).
filter {port <PORT-NAME> | vlan <VLAN-ID> | ip <IP-ADDRESS> | mac <MAC-ADDRESS> | vrf <VRF-NAME> | instance <INSTANCE-ID>}
Selects the debug logs that match the filtering parameters.
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 <IP-ADDRESS>
Displays debug logs for the specified IP Address.
mac <MAC-ADDRESS>
Displays debug logs for the specified MAC Address, for example
A:B:C:D:E:F
.vrf <VRF-NAME>
Displays debug logs for the specified VRF.
instance <INSTANCE-ID>
Displays debug logs for the specified instance. Provide an instance ID from 1 to 255.
Authority
Administrators
Examples
switch# debug all