Saving system information to the log file – H3C Technologies H3C WX5500E Series Access Controllers User Manual
Page 55
47
Step Command
Remarks
3.
Specify a name for a channel
identified by its 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 } [ log { 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 debugging information is date
by default.
Saving system information to the log file
The log file feature saves log information from the log file buffer to the log file at every 24 hours. You can
adjust the saving interval or manually save log information to the log file. After saving log information
into 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 log
messages and writes new messages into the log file.
To save system information to the log file:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable the information center. info-center enable
Optional.
Enabled by default.
3.
Enable the log file feature.
info-center logfile enable
Optional.
Enabled by default.
4.
Configure the interval at
which the log file is saved.
info-center logfile frequency
freq-sec
Optional.
The default saving interval is
86400 seconds.
5.
Configure the maximum size
of the log file.
info-center logfile size-quota size
Optional.
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.