16-13
Default Level
2: System level
Parameters
interface-type interface-number
: Specifies the egress interface for log information by the interface type
and interface number.
Description
Use the
info-center loghost source
command to specify the source IP address for log information.
Use the
undo info-center loghost source
command to restore the default.
By default, the interface for sending log information is determined by the matched route, and the
primary IP address of this interface is the source IP address of the log information.
After the source IP address of log information is specified, no matter the log information is actually
output through which physical interface, the source IP address of the log information is the primary IP
address of the specified interface. If you want to display the source IP address in the log information,
you can configure it by using this command.
Note that:
z
The
info-center loghost source
command takes effect only after the information center is
enabled with the
info-center enable
command.
z
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
By default, the log information in the following format is displayed on the log host:
<188>Jul 22 05:58:06 2008 Sysname %%10IFNET/4/LINK UPDOWN(l): Vlan-interace1: link status
is UP
# Specify the primary IP address of VLAN-interace1 as the source IP address of log information.
<Sysname> system-view
[Sysname] interface Vlan-interace1
[Sysname-Vlan-interace1] ip address 2.2.2.2
[Sysname-Vlan-interace1] quit
[Sysname] info-center loghost source Vlan-interace1
After the above configuration, the log information in the following format is displayed on the log host
(compared with the default format, the following format has the
-DevIP=2.2.2.2
field):
<188>Jul 22 06:11:31 2008 Sysname %%10IFNET/4/LINK UPDOWN(l):-DevIP=2.2.2.2;
Vlan-interace1: link status is UP0
info-center monitor channel
Syntax
info-center monitor channel
{
channel
-
number | channel
-
name
}
undo info-center monitor channel
Summary of Contents for E4510-48G
Page 109: ...2 18 Sysname interface bridge aggregation 1 Sysname Bridge Aggregation1 shutdown ...
Page 309: ...6 4 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address dhcp alloc ...
Page 324: ...8 3 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address bootp alloc ...
Page 530: ...2 5 Sysname mvlan 100 subvlan 10 to 15 ...
Page 739: ...8 15 Sysname system view Sysname port security trap addresslearned ...
Page 819: ...13 11 Sysname system view Sysname public key peer key2 import sshkey key pub ...
Page 914: ...5 17 Sysname reset oam ...
Page 1064: ...5 30 Slot 2 Set next configuration file successfully ...
Page 1325: ...21 13 Examples Redirect to member 2 Sysname irf switch to 2 Sysname Slave 2 ...