R3204P16-HP Load Balancing Module System Maintenance Configuration Guide-6PW101

21
To do… Use the command…
Remarks
Configure the format of the
time stamp
info-center timestamp { debugging
| log | trap } { boot | date | none }
Optional
The time stamp format for log, trap and
debugging information is date by
default.
NOTE:
You can configure to output log, trap and debugging information to a channel. However, when this
channel is bound with the output destination web interface, after lo
gg
in
g
in throu
g
h the web interface, you
can view log information of specific types only, and other types of information will be filtered out.
Saving system information to a log file
This feature enables the device to save generated log information to a specified directory at a specified
interval.
Logs are saved into the log file buffer. The system writes the logs from the log file buffer to the log file at
the specified interval, which is usually set to 24 hours. You can also manually save the logs when the
device is not busy. After the logs in the log file buffer are saved into the log file successfully, the system
clears the log file buffer.
The log file has a specific capacity. When the capacity is reached, the system will delete the earliest
messages and write new messages into the log file. The directory of the log file is /seclog/logfile.log.
NOTE:
The number of log file(s) supported on a device varies with device models.
Follow these steps to set to save system information to a log file:
To do… Use the command…
Remarks
Enter system view system-view
Enable the log file feature info-center logfile enable
Optional
Enabled by default
Configure the frequency with
which the log file is saved
info-center logfile frequency
freq-sec
Optional
Configure the maximum storage
space reserved for a log file
info-center logfile
size-quota size
Optional
Configure the directory to save the
log file
info-center logfile
switch-directory dir-name
Optional
By default, it is the log file directory under
the root directory of the memory device,
which varies with devices.
Manually save the log buffer
content to the log file
logfile save
Optional
Available in any view
By default, the system saves the log file
with the frequency defined by the
info-center logfile frequency command.