R211x-HP Flexfabric 11900 Network Management and Monitoring Configuration Guide
64
Saving logs to the log file
By default, the log file feature saves logs from the log file buffer to the log file every 24 hours. You can
adjust the saving interval or manually save logs to the log file. After saving logs into the log file, the
system clears the log file buffer.
The log file has a maximum capacity. When the capacity is reached, the system will replace earliest logs
with new logs.
To save logs to the log file:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enable the information center.
info-center enable
By default, the information center is
enabled.
3. Enable the log file feature.
info-center logfile enable
By default, the log file feature is
enabled.
4. (Optional.) Enable log file
overwrite-protection.
info-center logfile
overwrite-protection
[ all-port-powerdown ]
By default, log file
overwrite-protection is disabled.
When it is enabled, the device
stops saving new logs when the log
file is full or the storage device runs
out of space.
This command is supported only in
FIPS mode.
5. (Optional.) Configure the
maximum size for the log file.
info-center logfile size-quota size
The default setting is10 MB.
To ensure normal operation, set the
size argument to a value between
1 MB and 10 MB.
6. (Optional.) Specify the
directory to save the log file.
info-center logfile directory
dir-name
The default setting is flash:/logfile.
The configuration made by this
command cannot survive a reboot
or an active/standby switchover.
(In standalone mode.)
The configuration made by this
command cannot survive an IRF
reboot or a global active/standby
switchover in an IRF fabric. (In IRF
mode.)
7. Save the logs in the log file
buffer to the log file.
• Method 1: Configure the
interval to perform the save
operation:
info-center logfile frequency
freq-sec
• Method 2: Manually save the
logs in the log file buffer to the
log file:
logfile save
Use either method.
The default saving interval is
86400 seconds.
The logfile save command is
available in any view.










