R3303-HP HSR6800 Routers Network Management and Monitoring Command Reference
214
Use undo info-center logfile overwrite-protection to disable log file overwrite-protection. When the size
of the log file reaches the upper limit or the storage device runs out of memory, the device deletes the old
logs in the log file and writes new logs into the log file.
Syntax
info-center logfile overwrite-protection [ all-port-powerdown ]
undo info-center logfile overwrite-protection
Default
Log file overwrite-protection is disabled.
Views
System view
Default command level
2: System level
Parameters
all-port-powerdown: Shuts down all the service interfaces on the device when the size of the log file
reaches the upper limit or the storage device runs out of memory.
Usage guidelines
This command is supported only in FIPS mode.
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 storage space reserved for a log file.
Use undo info-center logfile size-quota to restore the default maximum storage space reserved for a log
file.
Syntax
info-center logfile size-quota size
undo info-center logfile size-quota
Default
The default storage space reserved for a log file is 2 MB.
Views
System view
Default command level
2: System level
Parameters
size: Specifies the maximum storage space reserved for a log file, in the range of 1 to 10 MB.