capture-packet file limit (System view)

Function

The capture-packet file limit command sets the maximum number of packet header obtaining files (with a suffix name .cap) in the packet header obtaining directory.

The undo capture-packet file limit command restores the default maximum number of packet header obtaining files (with a suffix name .cap) in the packet header obtaining directory.

By default, the maximum number of packet header obtaining files (with a suffix name .cap) in the packet header obtaining directory is 10.

Format

capture-packet file limit limit-value

undo capture-packet file limit [ limit-value ]

Parameters

Parameter Description Value
limit-value

Specifies the maximum number of packet header obtaining files (with a suffix name .cap) in the packet header obtaining directory.

The value is an integer ranging from 1 to 50.

Views

System view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
hostdefend debug

Usage Guidelines

Usage Scenario

You can set the maximum number of packet header obtaining files (with a suffix name .cap) in the packet header obtaining directory to save system storage space and ensure that new packet header obtaining files can be properly stored.

Precautions

After the capture-packet file limit command is run, if the number of packet header obtaining files in the directory exceeds the upper limit, the system does not delete the files immediately. Instead, the system deletes the earliest one or more files when an additional packet header obtaining file is created.

In VS mode, this command is supported only by the admin VS.

Example

# Set the maximum number of packet header obtaining files to 20.
<HUAWEI> system-view
[~HUAWEI] capture-packet file limit 20
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >