R3303-HP HSR6800 Routers Network Management and Monitoring Configuration Guide

169
Saving system information to the log file
Perform this task to enable saving system information to the log file at specific interval, or manually save
system information to the log file.
System information is saved into the log file buffer. The system writes the information from the log file
buffer to the log file at the specified interval. You can also manually save the information while the device
is not busy. After saving information from the log file buffer to the log file, the system clears the log file
buffer.
The log file has a specific capacity. When the capacity is reached, the system deletes the earliest
messages and writes new messages into the log file.
To save system information to the log file:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enable the information center.
info-center enable
Optional.
Enabled by default.
3. Enable saving system
information to the log file.
info-center logfile enable
Optional.
Enabled by default.
4. Configure the interval at which
the system saves system
information in the logfile buffer
to the log file.
info-center logfile frequency
freq-sec
Optional.
The default saving interval is 60
seconds.
5. Enable log file
overwrite-protection
info-center logfile
overwrite-protection
[ all-port-powerdown ]
Optional.
By default, log file
overwrite-protection is disabled.
This feature is only supported in
FIPS mode.
6. Configure the maximum size of
the log file.
info-center logfile size-quota size
Optional.
The default setting is 2 MB.
To ensure normal operation, set
the size argument to a value
between 1 MB and 10 MB.
7. Configure the directory to save
the log file.
info-center logfile switch-directory
dir-name
Optional.
By default, the log file is saved in
the logfile directory under the root
directory of the storage device
(the root directory varies with
devices).
The configuration made by this
command cannot survive a
reboot or an active/standby
switchover.