F3215-HP Load Balancing Module System Maintenance Command Reference-6PW101

29
The info-center loghost source command takes effect only when the information center has been enabled
with the info-center enable command.
The IP address of the specified egress interface must have been configured. Otherwise, although the
info-center loghost source command can be configured successfully, the log host cannot receive any log
information.
Examples
When no source IP address is specified for log information, log in to the FTP server by using the username
ftp. The following log information is displayed on the log host:
<189>May 31 05:37:52 2012 Sysname %%10FTPD/5/FTPD_LOGIN(l): User ftp (192.168.1.23) has
logged in successfully.
# Specify the IP address of interface loopback 0 as the source IP address of log information. (Layer 3
mode.)
<Sysname> system-view
[Sysname] interface loopback 0
[Sysname-LoopBack0] ip address 2.2.2.2 32
[Sysname-LoopBack0] quit
[Sysname] info-center loghost source loopback 0
# Specify the IP address of the VLAN interface as the source IP address of log information. (Layer 2
mode.)
<Sysname> system-view
[Sysname] vlan 100
[Sysname-vlan100] interface vlan-interface 100
[Sysname-Vlan-interface100] ip address 2.2.2.2 24
[Sysname-Vlan-interface100] quit
[Sysname] info-center loghost source Vlan-interface 100
After the above configuration, log in to the FTP server by using the username ftp. The following log
information is displayed on the log host (the -DevIP=2.2.2.2 field identifies the source IP address):
<189>May 31 05:38:14 2012 Sysname %%10FTPD/5/FTPD_LOGIN(l): -DevIP=2.2.2.2; User ftp
(192.168.1.23) has logged in successfully.
info-center monitor channel
Use info-center monitor channel to configure the monitor channel. The system uses this channel to output
information to the monitor.
Use undo info-center monitor channel to restore the default monitor output channel.
Syntax
info-center monitor channel { channel-number | channel-name }
undo info-center monitor channel
Default
The system outputs information to the monitor through channel 1.
Views
System view
Default command level
2: System level