stp log enable tc

Use stp log enable tc to enable the device to generate a log when it detects or receives a TCN BPDU in PVST mode.

Use undo stp log enable tc to restore the default.

Syntax

stp log enable tc

undo stp log enable tc

Default

In PVST mode, the device does not generate a log when it detects or receives a TCN BPDU.

Views

System view

Predefined user roles

network-admin

Usage guidelines

The command takes effect only in PVST mode.

Examples

# Enable the device to generate a log when it detects or receives a TCN BPDU in PVST mode.

<Sysname> system-view
[Sysname] stp log enable tc

Related commands

snmp-agent trap enable stp