R3166-R3206-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101
79
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 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. If you want to display the source IP address in the log information, you can configure
it by using this command.
Note that:
• 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
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): GigabitEthernet0/3: link
status is UP
# Specify the primary IP address of interface GigabitEthernet 0/3 as the source IP address of log
information.
<Sysname> system-view
[Sysname] interface gigabitethernet 0/3
[Sysname-GigabitEthernet0/3] ip address 2.2.2.2 24
[Sysname-GigabitEthernet0/3] quit
[Sysname] info-center loghost source gigabitethernet 0/3
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;
GigabitEthernet0/3: link status is UP
info-center monitor channel
Syntax
info-center monitor channel { channel-number | channel-name }
undo info-center monitor channel
View
System view