I recently saw a question on the HP support forums if it is possible to schedule a WLAN to be online/offline using the controller:
So this article is a basic recap of the forum reply.
Unified controller WLAN Service Template
On a Unified Controller, the WLAN configuration is done through a WLAN Service Template. Each WLAN has a unique service template ID.
This would be the example to define an open (clear) SSID, for which the traffic will be assigned to vlan 10:
# Define the virtual L2 interface
port link-type access
port access vlan 10
# Define the WLAN Service Template, bind it to the virtual L2 interface and enable it:
wlan service-template 10 clear
bind WLAN-ESS 10
Next the WLAN Service Template must be bound to an AP Radio, this is not part of the article.
Comware Job Scheduler
Comware devices have a local job scheduler, which can be used for ad-hoc jobs or to have jobs saved in the configuration file (these will remain scheduled after a reload)
A Job has 2 parameters:
- View : the context in which the scheduled command must be executed
- Time : the time and command
When a command must be executed in user-view, the view is called monitor.
Combining the Scheduler with the WLAN configuration
In this example, we need to be in the system-view, but not just the global configuration, but the WLAN Service Template. To figure out how the view is called, you need to enter the context in the CLI and see how it is displayed in the prompt:
[wifi-uni-ac]wlan service-template 10
So the CLI prompt shows that the view is called wlan-st-10, so this is what needs to be used in the job object.
This job will disable the SSID at 19.00 every weekday.
time 1 repeating at 19:00 week-day Mon Tue Wed Thu Fri command service-template disable
And this job will enable the SSID at 7.00 every weekday:
time 1 repeating at 07:00 week-day Mon Tue Wed Thu Fri command service-template enable
The name of the jobs wifi10-disable and wifi10-enable can be defined by the admin.