Saving system information to a log file – H3C Technologies H3C SecBlade NetStream Cards User Manual
Page 286

271
To do…
Use the command…
Remarks
Enable information center
info-center enable
Optional
Enabled by default.
Name the channel with a specified
channel number
info-center channel
channel-number name
channel-name
Optional
See
for default channel
names.
Configure the output rules of the
system information
info-center source { module-name |
default } channel { channel-number
| channel-name } [ debug { level
severity | state state }* | log { level
severity | state state }* | trap
{ level severity | state state }* ]*
Optional
See “
Default output rules of system
.”
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 logging in through 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
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
ensure 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:
•
If the device only supports a single log file, the system will delete the earliest message(s)and write
new message(s) into the log file. The directory of a log file varies with the device models. Typically,
a log file is saved in the directory /logfile/logfile.log.
•
If the device supports multiple log files, the system will create new log files to save new messages.
The new log files will be named as logfile1.log, logfile2.log, and so on. When the number of log
files reaches the upper limit, or the storage media has no space available, the system will delete the
earliest log file and create a new one.
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 information center
info-center enable
Optional
Enabled by default