R3204P16-HP Load Balancing Module System Maintenance Command Reference-6PW101

23
Note that:
The info-center loghost command takes effect only after the information center is enabled with the
info-center enable command.
Ensure to input a correct IP address while using the info-center loghost command to configure the
IP address for a log host. System will prompt an invalid address if the loopback address (127.0.0.1)
is input.
A maximum number of 4 hosts (different) can be designated as the log host.
Examples
# Output log information to a log host with the IP address being 1.1.1.1.
<Sysname> system-view
[Sysname] info-center loghost 1.1.1.1
info-center loghost source
Syntax
info-center loghost source interface-type interface-number
undo info-center loghost source
View
System view
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: