< Home

collect enable

Function

The collect enable command enables a statistics file.

The undo collect enable command disables a statistics file.

Format

collect enable

undo collect enable

Parameters

None

Views

Bulk-file view

Default Level

2: Configuration level

Usage Guidelines

The statistics file is in the Stop state after being created and hence does not participate in statistics collection until its status changes to Ready through the collect enable command. Using the undo collect enable command, you can disable a statistics file and change its status to Stop.

Before running this command, you must set the primary uploading URL using the command transfer.

When you set the statistics collection interval, statistics uploading interval, or period to reserve the statistics for, the statistics uploading interval must be an integer multiple of the statistics collection interval, and the period to reserve the statistics for must not be longer than the statistics uploading interval before running this command.

You can modify the re-uploading times of the statistics file, statistics collection interval, statistics uploading interval, and period to reserve the statistics for. In addition, you can delete the primary URL only after a statistics file is disabled.

You must wait for at least 10 seconds to re-enable a statistics file after it is disabled; otherwise, the statistics file cannot be enabled.

By default, the statistics file function is disabled.

Example

# Enable a statistics file named iftable.

<sysname> system-view
[sysname] bulk-stat enable
[sysname] bulk-file iftable
[sysname-bulk-file-iftable] collect enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >