Outputting system information to the web interface, Saving system information to a log file – H3C Technologies H3C MSR 50 User Manual

Page 207

Advertising
background image

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

511.

Enter system view.

system-view

N/A

Optional.

512.

Enable the information center. info-center enable

Enabled by default.

Optional.

info-center channel
channel-number name

channel-name

513.

Name the channel with a
specified channel number.

See

Table 6

for default channel

names.

Optional.

info-center syslog channel

{ channel-number |
channel-name }

514.

Configure an output channel
for the Web interface.

By default, system information is
output to the Web interface

through channel 6.

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.

515.

Configure an output rule for
the Web interface.

See "Default output rules of system

information."

Optional.

516.

Configure the timestamp
format.

info-center timestamp { debugging
| log | trap } { boot | date | none }

The timestamp format for log, trap
and debug information is date by

default.

Saving system information to a log file

By default, the log file feature saves system information from the log file buffer to a log file every 24 hours.

You can adjust the saving interval or manually save system information to a log file. After saving

information into a log file, the system clears the log file buffer.
The router supports multiple log files. Each log file has a specific capacity. When the capacity is reached,
the system creates a new log file to save new messages. The log files are named as logfile1.log,

logfile2.log, and so on. If the number of log files reaches the upper limit, or the storage device runs out

of space, the system deletes the earliest log file and creates a new one.

194

Advertising