
50
NOTE:
•
After the source IP address of the log information is specified, no matter which physical interface is used
to output the log information, the source IP address of the log information is the primary IP address of the
specified interface. To display the source IP address in the log information, configure it by using this
command.
•
The
info-center loghost source
command takes effect only after the information center is enabled with
the
info-center enable
command.
•
The IP address of the specified source interface must be configured; otherwise, although the
info-center
loghost source
command can be configured successfully, the log host will not receive any log
information.
Examples
# When the source IP address for log information is not specified, log in to the FTP server using the
username ftp. The log information in the following format is displayed on the log host:
<189>Jan 31 05:37:52 2011 Sysname %%10FTPD/5/FTPD_LOGIN(l): User ftp (192.168.1.23) has
logged in successfully.
# Specify the IP address of the VLAN interface as the source IP address of log information.
<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 log information in
the following format is displayed on the log host (compared with the format displayed when the source
IP address for log information is not specified, the following format has the
-DevIP=2.2.2.2
field added
to show the source IP address):
<189>May 31 05:38:14 2011 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
Syntax
info-center monitor channel
{
channel
-
number | channel
-
name
}
undo info-center monitor channel
View
System view
Default level
2: System level
Parameters
channel
-
number
: Specifies a channel number, which ranges from 0 to 9.
channel
-
name
: Specifies a channel name, which could be a default name or a self-defined name. The
user needs to specify a channel name first before using it as a self-defined channel name. For more
information, see the
info-center channel name
command.