
Maintaining and Debugging the System
341
For the above configuration, the log host is not configured on the switch. All other
configurations will take effect after enabling the logging function.
Enabling and Disabling the Logging Function
You can use the following commands to enable or disable the logging function.
Perform the following operation in system view.
By default, syslog is disabled. When syslog is enabled, system performance is
affected by the information classification and the output, especially when there is
a large amount of information to be processed.
Setting the Output Channel of the Log
The syslog of the Ethernet switch has six possible output destinations. Use the
configuration commands to specify the required channels for syslog output. All
the information will be filtered by the specified channel and then transmitted to
the configured destination. You can configure the channel and filtering
information for every destination to implement the filtering and redirection of
different information.
Use the following commands to configure the output channel of the log.
Perform the following configuration in system view.
Table 37
Enable/Disable the Logging Function
Operation
Command
Enable the logging function.
info-center enable
Disable the logging function.
undo info-center enable
Table 38
Log Output
Operation
Command
Configure to output the information to the
Console
i
nfo-center console channel
{
channel-number
|
channel-name
}
Disable the output of the information to the
Console
undo info-center console channel
Configure to output the information to the
Telnet terminal or monitor
info-center monitor channel
{
channel-number
|
channel-name
}
Disable the output of the information to the
Telnet terminal or monitor
undo info-center monitor channel
Configure to output the information to the
logging buffer.
info-center logbuffer
[
size
buffersize
] [
channel
{
channel-number
|
channel-name
} ]
Disable the output of the information to the
logging buffer.
undo info-center logbuffer
[
channel | size
]
Configure to output the information to the
info-center loghost.
i
nfo-center loghost
host-ip-addr
[
channel
{
channel-number
|
channel-name
} ] [
facility
local-number
] [
language
{
chinese | english
} ]
Disable the output of the information to the
info-center loghost.
undo info-center loghost
host-ip-addr
Set the address of the interface specified by
interface-name as
the
source address for
packets sent to loghost
info-center loghost source
interface-name
Summary of Contents for Switch 7700
Page 10: ...2 ABOUT THIS GUIDE ...
Page 52: ...44 CHAPTER 2 PORT CONFIGURATION ...
Page 194: ...186 CHAPTER 5 IP ROUTING PROTOCOL OPERATION ...
Page 195: ...Route Capacity 187 ...
Page 196: ...188 CHAPTER 5 IP ROUTING PROTOCOL OPERATION ...
Page 197: ...Route Capacity 189 ...
Page 198: ...190 CHAPTER 5 IP ROUTING PROTOCOL OPERATION ...
Page 237: ...GMRP 229 SW7700 Ethernet1 0 1 gmrp ...
Page 238: ...230 CHAPTER 6 MULTICAST PROTOCOL ...
Page 270: ...262 CHAPTER 7 QOS OPERATION ...
Page 320: ...312 CHAPTER 9 AAA AND RADIUS OPERATION ...
Page 330: ...322 CHAPTER 10 RELIABILITY ...
Page 390: ...382 CHAPTER 11 SYSTEM MANAGEMENT ...