前段时间我们发布了定时任务功能(通过JOB命令实现日志和命令+配置备份),AP如何进行二层、三层注册的文章(华三无线AP三层+二层注册组网)(分部AP通过总部AC NAT公网地址注册)以及(华三无线AP基于IP网段自动加入到对应的AP组功能)让大家初步了解到无线上线配置,那么今天我们来学习一下如何减轻AP压力的定时任务功能。

一 功能背景

为了避免AP长时间运行工作负载大进而影响客户上网体验,可以在无线控制器设置AP定时重启功能缓解AP长时间使用压力。

注意:AP一定要设置时钟服务器,确保AP时间与现实实际一致才行,避免白天用户业务高峰期AP自动重启。

二 配置方法

1.锐捷AP自动重启功能

!

ap-config AP1

reload at 2:00:00 //每天凌晨2点定时重启AP

no reload at //关闭AP定时重启功能

!

ap-config AP1

reload at everyweek sun 2:00:00 //每周六凌晨2点重启AP

no reload at //关闭AP定时重启功能

!

2.华三AP定时重启功能

设置每天固定时间重启AP:

#

scheduler job reboot-ap

command 1 reset wlan ap all (all是重启所有ap,如果单个ap,此处直接写ap名字)

command 2 y

scheduler schedule reboot

job reboot-ap

time repeating at 02:00

# 三 真实案例

1.配置AP定时重启功能:

scheduler job reboot-ap

command 1 reset wlan ap all (all是重启所有ap,如果单个ap,此处直接写ap名字)

command 2 y

scheduler schedule reboot

job reboot-ap

time repeating at 18:35 (设置AP18:35定时重启)

2.查看定时job动作为重启AP

dis scheduler job

Job name: reboot-ap

reset wlan ap all

y

3.查看定时任务每天18:35重启AP,未执行

dis scheduler schedule

Schedule name : reboot

Schedule type : Run on every day at 18:35:00

Start time : Mon Jun 1 18:35:00 2026

Last execution time : Yet to be executed

-----------------------------------------------------------------------

Job name Last execution status

reboot-ap -NA-

4.查看AP在线并且时间为18:34,等待1分钟18:35查看执行效果

dis wl ap all

Total number of APs: 2

Total number of connected APs: 2

Total number of connected manual APs: 2

Total number of connected auto APs: 0

Total number of connected common APs: 2

Total number of connected WTUs: 0

Total number of inside APs: 0

Maximum supported APs: 60000

Remaining APs: 59998

Total AP licenses: 60000

Local AP licenses: 60000

Server AP licenses: 0

Remaining local AP licenses: 59998

Sync AP licenses: 0

AP information

State : I = Idle, J = Join, JA = JoinAck, IL = ImageLoad

C = Config, DC = DataCheck, R = Run, M = Master, B = Backup

AP name APID State Model Serial ID

AP1 1 R/M WA6320-HCL H3C_90-B0-5B-55-03-00

AP2 2 R/M WA6320-HCL H3C_90-B0-5E-BB-04-00

dis clock

18:34:53 UTC Mon 06/01/2026

5.等待一分钟后AP自动重启,可以看到日志提示被admin用户操作

[HCL]Get ssid: test.

[HCL]Get ap mac: 90b0-5b55-0300.

[HCL]Processing service BSS delete event from STAMGR.

[HCL]Get ssid: test.

[HCL]Get ap mac: 90b0-5b55-0300.

[HCL]Processing service BSS delete event from STAMGR.

[HCL]Get ssid: test.

[HCL]Get ap mac: 90b0-5ebb-0400.

[HCL]Processing service BSS delete event from STAMGR.

[HCL]Get ssid: test.

[HCL]Get ap mac: 90b0-5ebb-0400.

[HCL]Processing service BSS delete event from STAMGR.

%Jun 1 18:35:00:974 2026 AC CWS/4/CWS_AP_DOWN: -MDC=1; CAPWAP tunnel to AP AP1 went down. Reason: AP was reset by admin.

%Jun 1 18:35:00:975 2026 AC CWS/4/CWS_AP_DOWN: -MDC=1; CAPWAP tunnel to AP AP2 went down. Reason: AP was reset by admin.

%Jun 1 18:35:00:980 2026 AC APMGR/6/APMGR_AP_OFFLINE: -MDC=1; AP AP1 went offline. State changed to Idle.

%Jun 1 18:35:00:981 2026 AC STAMGR/6/SERVICE_OFF: -MDC=1; BSS 90b0-5b55-0310 was deleted after service template 1 with SSID test was unbound from radio 1 on AP AP1. Reason: AP down.

%Jun 1 18:35:00:981 2026 AC STAMGR/6/SERVICE_OFF: -MDC=1; BSS 90b0-5b55-0320 was deleted after service template 1 with SSID test was unbound from radio 2 on AP AP1. Reason: AP down.

%Jun 1 18:35:00:984 2026 AC APMGR/6/APMGR_AP_OFFLINE: -MDC=1; AP AP2 went offline. State changed to Idle.

%Jun 1 18:35:00:985 2026 AC STAMGR/6/SERVICE_OFF: -MDC=1; BSS 90b0-5ebb-0410 was deleted after service template 1 with SSID test was unbound from radio 1 on AP AP2. Reason: AP down.

%Jun 1 18:35:00:985 2026 AC STAMGR/6/SERVICE_OFF: -MDC=1; BSS 90b0-5ebb-0420 was deleted after service template 1 with SSID test was unbound from radio 2 on AP AP2. Reason: AP down.

6.再次查看定时任务执行成功

dis scheduler schedule

Schedule name : reboot

Schedule type : Run on every day at 18:35:00

Start time : Mon Jun 1 18:35:00 2026

Last execution time : Mon Jun 1 18:35:00 2026

Last completion time : Mon Jun 1 18:35:00 2026

Execution counts : 1

-----------------------------------------------------------------------

Job name Last execution status

reboot-ap Successful

dis scheduler job

Job name: reboot-ap

reset wlan ap all

y

7.AP全部下线

dis wl ap all

Total number of APs: 2

Total number of connected APs: 0

Total number of connected manual APs: 0

Total number of connected auto APs: 0

Total number of connected common APs: 0

Total number of connected WTUs: 0

Total number of inside APs: 0

Maximum supported APs: 60000

Remaining APs: 60000

Total AP licenses: 60000

Local AP licenses: 60000

Server AP licenses: 0

Remaining local AP licenses: 60000

Sync AP licenses: 0

AP information

State : I = Idle, J = Join, JA = JoinAck, IL = ImageLoad

C = Config, DC = DataCheck, R = Run, M = Master, B = Backup

AP name APID State Model Serial ID

AP1 1 I WA6320-HCL H3C_90-B0-5B-55-03-00

AP2 2 I WA6320-HCL H3C_90-B0-5E-BB-04-00

8.配置过程:

[AC-schedule-reboot]time ?

at Specify the execution time

once Run the schedule for once

repeating Run the schedule repeatedly

[AC-schedule-reboot]time repeating at ?

TIME Execution time (HH:MM)

[AC-schedule-reboot]time repeating at 18:30 ?

DATE Execution date (MM/DD/YYYY or YYYY/MM/DD)

interval Specify repeating interval

month-date Specify the day of the month

week-day Specify the days of the week

[AC-schedule-reboot]time repeating at 18:30 w

[AC-schedule-reboot]time repeating at 18:30 week-day ?

Fri Friday

Mon Monday

Sat Saturday

Sun Sunday

Thu Thursday

Tue Tuesday

Wed Wednesday

[AC-schedule-reboot]time repeating at 18:30 week-day

Logo

openEuler 是由开放原子开源基金会孵化的全场景开源操作系统项目,面向数字基础设施四大核心场景(服务器、云计算、边缘计算、嵌入式),全面支持 ARM、x86、RISC-V、loongArch、PowerPC、SW-64 等多样性计算架构

更多推荐