ip userlog export host (System view)

Function

The ip userlog export host command sets the IP address and port number for the host that is used to receive user login and logout log packets and user login result log packets. If transport tcp is not specified, the transport mode is UDP. If transport tcp is specified, the transport mode is TCP.

The undo ip userlog export host command cancels the configuration.

By default, no IP address or port number is set for a log server.

This command is supported only on the NetEngine 8000 F1A.

Format

ip userlog { access | call-status } export host ip-address port

ip userlog { access | call-status } export host ip-address port transport tcp

undo ip userlog { access | call-status } export host

undo ip userlog { access | call-status } export host ip-address port transport tcp

Parameters

Parameter Description Value
access

Indicates user login and logout logs.

-

call-status

Indicates user online result logs.

-

ip-address

Sets an IP address for a log server.

The value is in dotted decimal notation.

port

Sets a port number for a log server.

The value is an integer ranging from 1 to 65535.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bras-control write

Usage Guidelines

Usage Scenario

The device supports the function to generate user login, logout, and online result logs and send the logs to a log server to facilitate information query for maintenance personnel. To set an IP address and port number for a target log server that is used to receive the logs, run the ip userlog access export host command.

Configuration Impact

The IP address and port number of the log server for receiving user login and logout logs and those of the log server for receiving user online result logs are independent of each other and can be configured concurrently. Both the user login and logout logs and the user online result logs can be received.

Precautions

The log server used to receive user login and logout logs and that used to receive user online result logs are independent of each other.

  • Note the following constraints when you set the IP address and port number for a log server used to receive user login and logout logs:
  • The IP address, port number, and packet version number for the log server must have been set before you enable the function to generate user login and logout logs and send the logs to the log server.
  • The preceding settings can be deleted only after the function to generate user login and logout logs and send the logs to a log server is disabled.
  • The preceding constraints do not take effect when you set the IP address and port number for a log server used to receive user online result logs.
  • Only one log server for receiving user login and logout logs can be configured on the device. If more than one log server is configured, the later configuration overrides the previous one.
  • If the IP address/port number of the host used to receive user login and log out log packets is consistent with that of the host used to receive user login result log packets, the transport mode must be set to UDP or TCP.

Example

# Delete the log server that is used to receive user login and logout logs.
<HUAWEI> system-view
[~HUAWEI] undo ip userlog access export host
# Set the IP address to 10.1.1.3 and UDP port number to 514 for a log server that is used to receive user online result logs.
<HUAWEI> system-view
[~HUAWEI] ip userlog call-status export host 10.1.1.3 514
# Set the IP address to 10.1.1.2 and UDP port number to 1200 for a log server that is used to receive user login and logout logs.
<HUAWEI> system-view
[~HUAWEI] ip userlog access export host 10.1.1.2 1200
# Delete the log server that is used to receive user online result logs.
<HUAWEI> system-view
[~HUAWEI] undo ip userlog call-status export host
# Set the IP address to 10.1.1.3, port number to 514, and transport mode to TCP for the host that is used to receive user login result log packets.
<HUAWEI> system-view
[~HUAWEI] ip userlog call-status export host 10.1.1.3 514 transport tcp
# Set the IP address to 10.1.1.2, port number to 1200, and transport mode to TCP for the host that is used to receive user login and logout log packets.
<HUAWEI> system-view
[~HUAWEI] ip userlog access export host 10.1.1.2 1200 transport tcp
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >