HP Unified Wireless controller : Scheduled SSID enable and disable


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

interface WLAN-ESS10
description v10-guest
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
ssid guest
bind WLAN-ESS 10
 service-template enable

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.

job wifi10-disable
view wlan-st-10
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:

job wifi10-enable
view wlan-st-10
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.

This entry was posted in Comware5, Unified Wireless and tagged , , , . Bookmark the permalink.

4 Responses to HP Unified Wireless controller : Scheduled SSID enable and disable

  1. Joep says:

    Hi, great post!
    Do you know if there’s a possibility to do this on the HP MSM wireless series?

    Best regards,

    • Hi Joep, long time ago 🙂 I hope you are doing fine!
      MSM does not have a built-in scheduler, so you will need help from an external application (like IMC to power off AP switch ports or ssh script to update the MSM config) to get this done.
      The SSH script should be scheduled from a management server.
      I will check if I have an example CLI available,
      best regards,Peter

    • Hi Joep,

      This is an example using plink(putty).
      Create 2 text files (input for plink)
      # file1 : msm-ssid-down.txt
      virtual ap “Demo”
      no active
      controlled network base
      execute action synchronize
      # file2: msm-ssid-up.txt
      virtual ap “Demo”
      controlled network base
      execute action synchronize

      Next create 2 batch files (update pw/ip)
      # msm-down.cmd
      plink -pw admin -ssh admin@ <msm-ssid-down.txt

      # msm-up.cmd
      plink -pw admin -ssh admin@ <msm-ssid-up.txt

      These need to be scheduled.

      Note that above script will perform a "synchronize" of all APs, you can limit this to specific groups if you want.

      best regards,Peter

  2. Joep says:

    Hi Peter,

    I’m doing fine 🙂 thx. And how are you?
    That’s a quick and usable reply on my question! Many thanks for looking this up and working out an example.

    Best regards,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s