debug {all | module}

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

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 (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 isdebug. 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 <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