< Home

log-threshold

Function

The log-threshold command enables the log function for packet loss caused by congestion on all interfaces of a device.

The undo log-threshold command disables the log function for packet loss caused by congestion on all interfaces of a device.

By default, the log function is enabled for packet loss caused by congestion on all interfaces of a device.

Format

log-threshold { input-discard | output-discard }*

undo log-threshold { input-discard | output-discard }*

Parameters

Parameter Description Value

input-discard

Records logs about packet loss caused by congestion in the inbound direction of an interface.

-

output-discard

Records logs about packet loss caused by congestion in the outbound direction of an interface.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Enable or disable the log function for packet loss caused by congestion on all interfaces of a device in the system view.

Example

# Enable the log function for inbound packet loss cased by congestion on a device.

<HUAWEI> system-view
[HUAWEI] log-threshold input-discard 
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >