R3303-HP HSR6800 Routers Network Management and Monitoring Command Reference

216
Default
No log host is specified.
Views
System view
Default command level
2: System level
Parameters
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN by its name, a case-sensitive string of 1 to 31
characters. If the log host is on the public network, do not specify this option.
ipv6 host-ipv6-address: Specifies the IPv6 address of a log host.
host-ipv4-address: Specifies the IPv4 address of a log host.
port port-number: Specifies the port number of the log host. The value range is 1 to 65535, and the
default is 514. It must be the same as the value configured on the log host. Otherwise, the log host cannot
receive system information.
channel: Specifies the channel through which system information is output to the log host.
channel-number: Specifies a channel by its number in the range of 0 to 9.
channel-name: Specifies a channel by its name, a default name or a self-defined name. For information
about configuring a channel name, see info-center channel name.
facility local-number: Specifies a logging facility from local0 to local7 for the log host. The default value
is local7. Logging facilities are used to mark different logging sources, and query and filer logs.
Usage guidelines
If you configure this command without specifying a channel, the system specifies channel 2 (loghost) by
default.
The info-center loghost command takes effect only after the information center has been enabled with the
info-center enable command.
Enter a correct log host IP address. The system prompts an invalid address if the loopback address
127.0.0.1 is entered.
The router supports up to four log hosts.
Examples
# O u t p u t l o g i n f o r m a t i o n t o t h e I P v 4 l o g h o s t 1.1.1.1.
<Sysname> system-view
[Sysname] info-center loghost 1.1.1.1
# Output log information to the IPv4 log host 1.1.1.2 in vpn1.
<Sysname> system-view
[Sysname] info-center loghost vpn-instance vpn1 1.1.1.2
# Output log information to the IPv6 log host 1::1.
<Sysname> system-view
[Sysname] info-center loghost ipv6 1::1