Parameters
all-port-powerdown: Shuts down all the service ports on the device when no log file space or
storage device space is available. If you do not specify this keyword, the device does not shut down
service ports when no log file space or storage device space is available.
Usage guidelines
This command is available only in FIPS mode.
Log file overwrite protection enables the system to stop saving new logs when no log file space or
storage device space is available.
Examples
# Enable log file overwrite-protection.
<Sysname> system-view
[Sysname] info-center logfile overwrite-protection
info-center logfile size-quota
Use info-center logfile size-quota to set the maximum size for the log file.
Use undo info-center logfile size-quota to restore the default.
Syntax
info-center logfile size-quota size
undo info-center logfile size-quota
Default
The maximum size for the log file is 10 MB.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
size: Specifies the maximum size for the log file, in MB. The value range is 1 to 10.
Examples
# Set the maximum size to 6 MB for the log file.
<Sysname> system-view
[Sysname] info-center logfile size-quota 6
Related commands
info-center logfile enable
info-center logging suppress duplicates
Use info-center logging suppress duplicates to enable duplicate log suppression.
Use undo info-center logging suppress duplicate to disable duplicate log suppression.
Syntax
info-center logging suppress duplicates
361