The configuration made by this command cannot survive a system restart or an active/standby
switchover.
Examples
# Create a directory with the name test under root directory cfa0.
<Sysname> mkdir test
%Created dir cfa0:/test.
# Set the directory to save the log file to cfa0:/test.
<Sysname> system-view
[Sysname] info-center logfile switch-directory cfa0:/test
info-center loghost
Use info-center loghost to specify a log host and configure output parameters.
Use undo info-center loghost to restore the default.
Syntax
info-center loghost { ipv6 host-ipv6-address | [ vpn-instance vpn-instance-name ] host-ipv4-address }
[ port port-number ] [ channel { channel-number | channel-name } | facility local-number ] *
undo info-center loghost { ipv6 host-ipv6-address | [ vpn-instance vpn-instance-name ]
host-ipv4-address }
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.
218