Saving System Information To A Log File - HP 5820X Switch Configuration Manual

Network management and monitoring
Hide thumbs Also See for 5820X Switch:
Table of Contents

Advertisement

Saving system information to a log file

With the log file feature enabled, the log information generated by system can be saved to a
specified directory with a predefined frequency. This allows you to check the operation history at any
time to make sure that the device functions properly.
Logs are saved into the log file buffer before they are saved into a log file. The system writes the logs
in the log file buffer into the log file at a specified frequency, which is usually set to 24 hours and
during a relatively free time, in mornings for example. You can also manually save the logs. After the
logs in the log file buffer are saved into the log file successfully, the system clears the log file buffer.
A log file has capacity limitations. When the size of a log file reaches the maximum value, the system
will delete the earliest messages and write new messages into the log file.
To set to save system information to a log file:
To do...
1.
Enter system view.
2.
Enable information center.
3.
Enable the log file feature.
4.
Configure the frequency with
which the log file is saved.
5.
Configure the maximum
storage space reserved for a
log file.
6.
Configure the directory to
save the log file.
7.
Manually save the log buffer
content to the log file.
NOTE:
To make sure that the device works normally, use the info-center logfile size-quota command to set a
log file to be no smaller than 1 MB and no larger than 10 MB.
The info-center logfile switch-directory command is always used when you back up or move files.
The configuration will be invalid after system reboot or the active standby switchover.
Use the command...
system-view
info-center enable
info-center logfile enable
info-center logfile frequency freq-
sec
info-center logfile size-quota size
info-center logfile switch-directory
dir-name
logfile save
239
Remarks
Optional.
Enabled by default.
Optional.
Enabled by default.
Optional.
The default value is 86,400
seconds.
Optional.
The default value is 10 MB.
Optional.
By default, it is the log file
directory under the root directory
of the Flash.
Optional.
Available in any view.
By default, the system saves the
log file with the frequency defined
by the info-center logfile
frequency command.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

5800 switch

Table of Contents