< Home

log-server

Function

The log-server command configures the log server IP address and port number in the AP system profile and enables log backup on the AP.

The undo log-server command restores the default log server IP address and port number in the AP system profile and disables log backup on the AP.

By default, the port number of the log server is 514, the log server IP address is not configured in an AP system profile, and log backup is disabled on an AP.

Format

log-server ip-address server-ip-address [ port port ]

undo log-server

Parameters

Parameter

Description

Value

ip-address server-ip-address

Specifies the IPv4 address of the log server.

The value is in dotted decimal notation.

port port

Specifies the port number of the log server.

The value is an integer that ranges from 1 to 65535. The default port number is 514.

Views

AP system profile view

Default Level

2: Configuration level

Usage Guidelines

You can run the log-server command to configure the log server IP address and port number in the AP system profile and enable log backup on the AP. After log backup is enabled, the AP automatically sends logs to the log server with the specified IP address.

Modifying the attributes of an AP profile changes configurations of all APs using this profile.

Example

# Set the IP address of the log server to 10.0.0.1 and port number to 2000 and enable log backup on the AP.

<HUAWEI> system-view
[HUAWEI] wlan 
[HUAWEI-wlan-view] ap-system-profile name ap-system1
[HUAWEI-wlan-ap-system-prof-ap-system1] log-server ip-address 10.0.0.1 port 2000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >