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 2003 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.
<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
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 2003 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
Parameters
channel-number: Specifies a channel by its number in the range of 0 to 9.
channel-name: Specifies a channel by its name, a default name or a self-defined name. For information
about configuring a channel name, see info-center channel name.
Usage guidelines
The info-center monitor channel command takes effect only after the information center enabled with the
info-center enable command.
220