< Home

log disk-full-notification enable

Function

The log disk-full-notification enable command enables the log notification function when the storage space of service logs reaches/exceeds the threshold. When the hard disk space is used up, the device sends a log to notify you of releasing the disk space.

The undo log disk-full-notification enable command disables the log notification function when the storage space of service logs reaches/exceeds the threshold. If this function is disabled and the hard disk space is used up, the device does not send notification logs.

Format

log disk-full-notification enable

undo log disk-full-notification enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

The device allocates specific storage spaces on the hard disk for storing logs from each service module. When the log storage space of a module reaches/exceeds the threshold specified in the disk log-full alert-threshold command, the device will generate a "NLOG/2/DISKFULL" log every day to instruct you of clearing unnecessary logs to release the disk space. If you do not care about these logs, run the undo log disk-full-notification enable command, so that the device will not generate the "NLOG/2/DISKFULL" log.

By default, the log notification function when the hard disk space of service logs reaches/exceeds the threshold is enabled.

This command can be used only on a device that has a hard disk.

Example

# Enable the log notification function when the storage space of service logs reaches/exceeds the threshold.

<sysname> system-view
[sysname] log disk-full-notification enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >