info-center loghost
Function
The info-center loghost command configures the device to output information to a log host.
The undo info-center loghost command disables the device from outputting information to a log host.
By default, no information is output to the log host.
Format
info-center loghost ip-address [ channel { channel-number | channel-name } | facility local-number | language language-name | port port | transport { udp | tcp ssl-policy policy-name } ] *
info-center loghost ipv6 ipv6-address [ channel { channel-number | channel-name } | facility local-number | { language language-name | binary [ port ] } | transport { udp | tcp ssl-policy policy-name } ] *
info-center loghost domain domain-name [ channel { channel-number | channel-name } | facility local-number | language language-name | port port| transport { udp | tcp ssl-policy policy-name } ] *
undo info-center loghost ip-address
undo info-center loghost ipv6 ipv6-address
undo info-center loghost domain domain-name
Parameters
Parameter | Description | Value |
---|---|---|
ip-address | Specifies the IPv4 address of the log host. | The value is in dotted decimal notation. |
channel { channel-number | channel-name } | Specifies the channel used to send information to a
log host.
|
The value of channel-number is an integer that ranges from 0 to 9. The value of channel-name is a string of 1 to 30 case-sensitive characters. The value consists of letters or numbers and must start with a letter. |
facility local-number | Specifies a syslog server facility that is used to identify the log information source. You can use this parameter to plan a local value for the log information of a specified device, so that the syslog server can handle received log information based on the parameter. | The value ranges from local0 to local7. The default value is local7. |
language language-name | Displays the language in which logs are recorded. | By the default, the language mode is English. |
port | Specifies the number of the port that sends logs. | The value is an integer that ranges from 1 to 65535. The default value is 514. |
ipv6 ipv6-address | Specifies the IPv6 address of the log host. | The value is a 32-digit hexadecimal number. |
transport | Indicates the information transport mode. | - |
udp | Indicates the UDP transport mode. NOTE:
The default transport
mode is UDP if no transport mode is specified. |
- |
tcp | Indicates the TCP transport mode. NOTE:
The default transport
mode is UDP if no transport mode is specified. |
- |
ssl-policy policy-name | Specifies a Secure Sockets Layer (SSL) policy in the TCP transport mode. This parameter is recommended to improve log transmission security. |
The value is a string of 1 to 31 characters. |
domain domain-name | Specifies a DNS domain name of a log host. |
The value is a string of 1 to 255 case-sensitive characters, spaces not supported. |
Usage Guidelines
To query information generated on the AC deployed remotely, configure the AC to export information to a log host so that you can view device information on the log host. Run the info-center loghost command to configure the AC to export information to a log host.
To configure the AC to output information to different log hosts using different channels, specify the channels used to send information to the log hosts. For example, you can configure the AC to output information to log hosts at 192.168.0.1 and 192.168.0.2 using channels 7 and 8 respectively.
PrerequisitesThe information center has been enabled using the info-center enable command and the log host IP address has been obtained.
PrecautionsThe AC supports a maximum of eight log hosts including IPv4 and IPv6 hosts to implement backup among log hosts.
Example
# Configure a device to use channel 6 to output information to the log host at 10.1.1.1.
<AC6605> system-view [AC6605] info-center loghost 10.1.1.1 channel channel6
# Configure the AC to send information to the log host at 2001:db8:1::1/64.
<AC6605> system-view [AC6605] info-center loghost ipv6 2001:db8:1::1
<AC6605> system-view [AC6605] info-center loghost 192.168.2.2 transport tcp ssl-policy huawei123