debug {all | <MODULE-NAME>}
Syntax
debug {all | <MODULE-NAME>} [<SUBMODULE-NAME>] [severity (emer|crit|alert|err|notice|warning|info|debug)] {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>] {port | vlan | ip | mac | vrf | instance}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
allEnables debug logging for all modules.
<MODULE-NAME>Enables debug logging for a specific module. For a list of supported modules, enter the
debugcommand followed by a space and a question mark (?).<SUBMODULE-NAME>Enables debug logging for a specific submodule. For a list of supported submodules, enter the
debug <MODULE-NAME>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.emerSpecifies storage of debug logs with a severity level of
emergencyonly.
critSpecifies storage of debug logs with severity level of
criticaland above.
alertSpecifies storage of debug logs with severity level of
alertand above.
errSpecifies storage of debug logs with severity level of
errorand above.
notice- Specifies storage of debug logs with severity level of
noticeand above.
warningSpecifies storage of debug logs with severity level of
warningand above.
infoSpecifies storage of debug logs with severity level of
infoand above.
debugSpecifies storage of debug logs with severity level of
debug(default).
portDisplays 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 or local user group members with execution rights for this command.
Examples
switch# debug all