377
Default
No log host is specified.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
vpn-instance
vpn-instance-name
: Specifies an MPLS L3VPN instance 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.
hostname
: Specifies a log host by its name, a case-insensitive string of 1 to 253 characters. The host
name can contain letters, digits, and special characters including hyphen (-), underscore (_), and dot
(.).
ipv4-address
: Specifies a log host by its IPv4 address.
ipv6
ipv6-address
: Specifies a log host by its IPv6 address.
port
port-number
: Specifies the port number of the log host, in the range of 1 to 65535. 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.
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
The
info-center loghost
command takes effect only after information center is enabled with the
info-center enable
command.
The device supports up to 20 log hosts.
Examples
# Output logs to the log host 1.1.1.1.
<Sysname> system-view
[Sysname] info-center loghost 1.1.1.1
info-center loghost source
Use
info-center loghost source
to specify the source IP address for output logs.
Use
undo info-center loghost source
to restore the default.
Syntax
info-center loghost source
interface-type interface-number
undo info-center loghost source
Default
The source IP address of output logs is the primary IP address of the matching route's egress
interface.
Views
System view