Outputting system information to the web interface, Saving system information to a log file – H3C Technologies H3C SecBlade LB Cards User Manual
Page 29
20
Outputting system information to the Web interface
The Web interface only receives log information, and discards trap and debug information.
This feature allows you to control whether to output system information to the Web interface and, if so,
which system information can be output to the Web interface. The Web interface provides abundant
search and sorting functions. If you output system information to the Web interface, you can view the
system information by clicking corresponding tabs after logging in to the device through the Web
interface.
To output system information to the Web interface:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable the information center. info-center enable
Optional.
Enabled by default.
3.
Name the channel with a
specified channel number.
info-center channel
channel-number name
channel-name
Optional.
See
for default channel
names.
4.
Configure an output channel
for the Web interface.
info-center syslog channel
{ channel-number |
channel-name }
Optional.
By default, system information is
output to the Web interface
through channel 6.
5.
Configure an output rule for
the Web interface.
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
."
6.
Configure the timestamp
format.
info-center timestamp { debugging
| log | trap } { boot | date | none }
Optional.
The timestamp format for log, trap
and debug information is date by
default.
Saving system information to a log file
This feature enables the device to save generated log information to a log file. You can specify how often
the log file is saved, or you can manually save the log file.
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 (24 hours by default). You can also manually save the logs while the device is not
busy. After saving logs from the log file buffer to the log file, the system clears the log file buffer.
The log file has a specific capacity. When the capacity is reached, the system deletes the earliest
messages and writes new messages into the log file. The log file is saved in the directory
/logfile/logfile.log.
To save system information to a log file: