Saving Logs To The Log File - HP 5920 Configuration Manual

Table of Contents

Advertisement

Step
4.
(Optional.) Set the maximum
number of logs that can be
stored in the log buffer.
5.
Configure an output rule for
the log buffer.
6.
(Optional.) Configure the
timestamp format.

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 maximum capacity is reached, the system will replace
earliest logs with new logs.
To save logs to the log file:
Step
1.
Enter system view.
2.
Enable the information center.
3.
Enable the log file feature.
4.
(Optional.) Enable log file
overwrite-protection.
5.
(Optional.) Configure the
maximum size for the log file.
6.
(Optional.) Specify the
directory to save the log file.
Command
info-center logbuffer size
buffersize
info-center source { module-name |
default } { console | monitor |
logbuffer | logfile | loghost }
{ deny | level severity }
info-center timestamp { boot | date
| none }
Command
system-view
info-center enable
info-center logfile enable
info-center logfile
overwrite-protection
[ all-port-powerdown ]
info-center logfile size-quota size
info-center logfile directory
dir-name
85
Remarks
By default, the log buffer can store
512 logs.
For information about default
output rules, see
"Default output
rules for
logs."
By default, the timestamp format is
date.
Remarks
N/A
By default, the information center is
enabled.
By default, the log file feature is
enabled.
By default, log file
overwrite-protection is disabled.
This command is supported only in
FIPS mode.
By default, the maximum size of the
log file is 10 MB.
To ensure normal operation, set the
size argument to a value between
1 MB and 10 MB.
The default directory is
flash:/logfile.
The configuration made by this
command cannot survive an IRF
reboot or a master/subordinate
switchover.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

5900

Table of Contents