![Huawei V100R006C00 Скачать руководство пользователя страница 71](http://html.mh-extra.com/html/huawei/v100r006c00/v100r006c00_configuration-manual_169533071.webp)
l
The IP address of the log host is specified as 1.0.0.1/8.
Configuration Procedure
NOTE
In the example, only the commands related to monitoring are listed. For details on configuring the log host,
see the help files on the log host.
1.
Enable the information center.
# Enable the information center. By default, the information center on the S5700 is enabled.
<Quidway>
system-view
[Quidway]
info-center enable
Info:Information center is enabled
2.
Configure the information channel.
# Send logs of severity levels 0 to 7 from all modules on the S5700 through the channel to
the log host. Disable the sending of the debugging information and traps through the channel
to the log host.
[Quidway]
info-center source default channel loghost log level debugging state
on trap state off debug state off
# Verify the configuration.
[Quidway]
display channel loghost
channel number:2, channel name:loghost
MODU_ID NAME ENABLE LOG_LEVEL ENABLE TRAP_LEVEL ENABLE DEBUG_LEVEL
ffff0000 default Y debugging N debugging N debugging
3.
Configure the log host.
# Set the IP address of the log host to 1.0.0.1.
[Quidway]
info-center loghost 1.0.0.1
# Set VLANIF 10 as the interface for sending information to the log host on the S5700.
[Quidway]
vlan 10
[Quidway-vlan10]
quit
[Quidway]
interface gigabitethernet0/0/1
[Quidway-GigabitEthernet0/0/1]
port link-type hybrid
[Quidway-GigabitEthernet0/0/1]
port hybrid untagged vlan 10
[Quidway-GigabitEthernet0/0/1]
quit
[Quidway]
interface vlanif 10
[Quidway-vlanif10]
ip address 2.0.0.1 255.0.0.0
[Quidway-vlanif10]
quit
[Quidway]
info-center loghost source vlanif 10
# Verify the configuration.
[Quidway]
display info-center
Information Center:enabled
Log host:
the interface name of the source address:vlanif 10
1.0.0.1, channel number 2, channel name loghost,
language English , host facility local7
Console:
channel number : 0, channel name : console
Monitor:
channel number : 1, channel name : monitor
SNMP Agent:
channel number : 5, channel name : snmpagent
Log buffer:
enabled,max buffer size 1024, current buffer size 512,
current messages 440, channel number : 4, channel name : logbuffer
dropped messages 0, overwritten messages 0
Trap buffer:
enabled,max buffer size 1024, current buffer size 256,
current messages 1, channel number:3, channel name:trapbuffer
dropped messages 0, overwritten messages 0
Quidway S5700 Series Ethernet Switches
Configuration Guide - Device Management
6 Monitoring the Device Through the Information Center
Issue 01 (2011-07-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
62