< Home

server-detect

Function

The server-detect command configures parameters related to the Portal server detection function.

The undo server-detect command restores default settings of parameters related to the Portal server detection function.

By default, the Portal server detection interval is 60 seconds, the maximum number of detection failures is 3, and no log is sent when the Portal server status changes.

Format

server-detect { interval interval-period | max-times times | action log } *

undo server-detect { interval | max-times | action log }

Parameters

Parameter

Description

Value

interval interval-period

Specifies the detection interval of the Portal server.

The value is an integer that ranges from 30 to 65535, in seconds.

The default value is 60.

max-times times

Specifies the maximum number of times that the detection fails.

The value is an integer that ranges from 1 to 255.

The default value is 3.

action

Specifies the action to be taken after the number of detection failures exceeds the maximum.

-

log

Indicates that the device sends a log after the number of detection failures exceeds the maximum.

-

Views

Portal server template view

Default Level

2: Configuration level

Usage Guidelines

If the communication is interrupted because the network between the device and Portal server is faulty or the Portal server is faulty, new Portal authentication users cannot go online. This brings great inconvenience to users.

After the Portal server detection function is enabled in a Portal server template, the device detects Portal servers configured in the Portal server template. If the number of times the device fails to detect a Portal server exceeds the maximum value, the device changes the Portal server status from Up to Down, allowing the administrator to obtain the status of Portal servers on the network in real time.

The Portal server periodically sends heartbeat packets to the device. The device checks the heartbeat packets to determine the reachability of the server. If the device receives heartbeat packets or other authentication packets within the specified detection period (configured using the server-detect interval interval-period command), If the value is correct, the detection succeeds. Otherwise, the detection fails. If the number of consecutive detection failures for a Portal server exceeds the maximum number (configured using the server-detect max-times times command), the device changes the status of the Portal server from Up to Down.

Example

# Set the Portal serve detection interval to 100s, set the maximum number of failures to 5, and specify the log sent after the number of failures exceeds the limit.

<sysname> system-view
[sysname] web-auth-server abc
[sysname-web-auth-server-abc] server-detect interval 100 max-times 5 action log
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >