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.

Thenoform 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 thedebugcommand followed by a space and a question mark (?).

Enables debug logging for a specific submodule. For a list of supported submodules, enter thedebugcommand 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 isdebug. Optional.

emer

Specifies storage of debug logs with a severity level ofemergencyonly.

crit

Specifies storage of debug logs with severity level ofcriticaland above.

alert

Specifies storage of debug logs with severity level ofalertand above.

err

Specifies storage of debug logs with severity level oferrorand above.

notice
Specifies storage of debug logs with severity level ofnoticeand above.
warning

Specifies storage of debug logs with severity level ofwarningand above.

info

Specifies storage of debug logs with severity level ofinfoand above.

debug

Specifies storage of debug logs with severity level ofdebug(default).

port

Displays debug logs for the specified port, for example1/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 exampleA: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