< Home

firewall log packet-discard record enable

Function

The firewall log packet-discard record enable command enables the function of sending packet discard logs to the log buffer.

The undo firewall log packet-discard record enable command disables the function of sending packet discard logs to the log buffer.

Format

firewall log packet-discard record enable

undo firewall log packet-discard record enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

By default, packet discard logs are not sent to the log buffer.

After this function is enabled, the FW sends a packet discard log, as a sample, per second to the log buffer. If the FW discards packets, the packet discard logs can be directly sent to the log buffer, facilitating troubleshooting.

Before running this command, you must run the firewall log packet-discard enable command to enable the packet discard log sending function. The packet discard logs can be sent to the log buffer only after both the firewall log packet-discard enable and firewall log packet-discard record enable commands are run.

Example

# Enable the function of sending packet discard logs to the log buffer.

<sysname> system-view
[sysname] firewall log packet-discard  record enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >