Outputting Logs To A Log File - Huawei Quidway S9300 Configuration Manual

Terabit routing switch v100r003c01
Table of Contents

Advertisement

2 Information Center Configuration
----End

2.2.7 Outputting Logs to a Log File

When a fault occurs on the device, you locate the fault based on information saved in the log
file.
Context
Do as follows on the switch:
Procedure
Step 1 Sending logsto a channel
1.
2.
Step 2 Configuring the channel through which logs are output to the log file
1.
Step 3 (Optional) Configuring the size of the log file output by the information center
1.
----End
2-12
2.
Run:
info-center logbuffer [ channel { channel-number | channel-name } ]
Logs are output to the log buffer.
3.
(Optional) Run:
info-center logbuffer [ channel { channel-number | channel-name } | size
buffersize ] *
The size of the log buffer is configured.
After the information center is enabled, logs are output to the log buffer through
Channel 4 by default and the log buffer can cache a maximum of 512 logs.
Run:
system-view
The system view is displayed.
Run:
info-center source { module-name | default }
channel-name } [ log { state { off | on } | level severity } * | trap
{ state { off | on } | level severity } * | debug
level severity } * ] *
Logs are sent the information channel.
Logs can be output only after the information center is enabled. By default, the timestamp
logs is in the date format.
Run:
info-center logfile channel { channel-number | channel-name }
The channel through which logs are output to the log file is configured.
Run:
info-center logfile size size
By default, the logs are saved in a log file.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Quidway S9300 Terabit Routing Switch
Configuration Guide - Device Management
channel
{ channel-number |
{ state { off | on } |
Issue 01 (2010-12-15)

Advertisement

Table of Contents
loading

Table of Contents