R3721-F3210-F3171-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101
99
Parameters
interface-type interface-number: Specifies the egress interface for log information by the interface type
and interface number.
Description
Use info-center loghost source to specify the source IP address for output log information.
Use undo info-center loghost source to restore the default.
By default, the source IP address of output log information is the primary IP address of the matching
route's egress interface.
The system uses the primary IP address of the specified egress interface as the source IP address of log
information no matter which physical interface is used to output the log information. If you want to
display the source IP address in the log information, you can configure it by using this command.
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, the status of interface GigabitEthernet 0/1
is up, and the log information in the following format is displayed on the log host:
<187>Jul 22 05:58:06 2008 Sysname %%10IFNET/3/LINK UPDOWN(l): GigabitEthernet0/1 link
status is UP.
# 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, the status of interface GigabitEthernet 0/1 becomes up, and the log
information in the following format is displayed on the log host (the -DevIP=2.2.2.2 field identifies the
source IP address):
<187>Jul 22 06:11:31 2008 Sysname %%10IFNET/3/LINK
UPDOWN(l):-DevIP=2.2.2.2;GigabitEthernet0/1 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
Default level
2: System level