Configuring Time Based Services

This chapter describes time range profiles and the procedure for configuring time based services. It includes the following topics:

Time Range Profiles
Configuring a Time Range Profile
Applying a Time Range Profile to a WLAN SSID
Verifying the Configuration

Time Range Profiles

In Instant 6.4.3.4-4.2.1.0, IAPs allow you to enable or disable an SSID for users at a particular time of the day. You can now create a time range profile and assign it to a WLAN SSID, so that user access to the Internet or network is restricted during a specific time period.

IAPs support the configuration of both absolute and periodic time range profiles. You can configure an absolute time range profile to execute during a specific time frame or create a periodic profile to execute at regular intervals based on the periodicity specified in the configuration.

The following configuration conditions apply to the time-based services:

Time-based services require an active NTP server connection. IAPs use the default NTP server for time synchronization. However, the administrators can also configure an NTP server on the IAP. To verify the time synchronization between the NTP server and the IAP, execute the show time-range command and check if the time on the NTP server is in synchronization with the local time. For more information on NTP server configuration, see NTP Server.
For a time range profile configured to enable the SSID on the IAP:
When the timer starts, if the current time is greater than the start time and lesser than the end time, the SSID will be brought UP. If the SSID is already UP, then there is no effect on the SSID.
When the timer ends, If the current time is greater than the end time, the SSID is brought DOWN. If the SSID is already DOWN, then there is no effect on the SSID.
For a time range profile configured to disable the SSID on the IAP:
When the timer starts, if the current time is greater than the start time and lesser than the end time, the SSID will be brought DOWN. If the SSID is already DOWN, then there is no effect on the SSID.
When the timer ends, If the current time is greater than the end time, the SSID is brought UP. If the SSID is already UP, then there is no effect on the SSID.

Configuring a Time Range Profile

You can create Time Range Profiles using the Instant UI or CLI.

In the Instant UI

1. Navigate to System > Show advanced options > Time Based Services.
2. Click New under Time Range Profiles. The New Profile window for creating time range profiles is displayed. Configure the parameters listed in the following table:

Table 1: Time Range Profile Configuration Parameters

Parameter Description

Name

Specify a name for the time range profile.

Type

Select the type of time range profile.

Periodic— When configured, the state of the IAP changes based on the time range configured in the profile.

Absolute—When configured, the state of the IAP changes during a specific date / day and time.

Period Type

For periodic time range profiles, specify a periodic interval (day / weekday / weekend / daily) at which the time range profile must be applied.

Start Day and End Day

For absolute time range profiles, specify the start day and end day to configure a specific time period during which the time range profile is applied.

NOTE: The year selected for the Start Day and End Day cannot exceed the year 2037.

Start Time

Select the start time for the time range profile in the hh:mm format.

End Time

Choose the end time for the time range profile in hh:mm format.

3. Click OK.

In the CLI:

To create an absolute time range profile:

(Instant AP)(config)# time-range <name> absolute start <startday> <starttime> end <endday> <endtime>

(Instant AP)(config)# end

(Instant AP)# commit apply

To configure a periodic time range profile:

(Instant AP)(config)# time-range <name> periodic {<startday>| daily| weekday| weekend} <starttime> to <endtime>

(Instant AP)(config)# end

(Instant AP)# commit apply

Applying a Time Range Profile to a WLAN SSID

To apply a time range profile to a WLAN SSID in the Instant UI:

1. Navigate to the WLAN SSID profile configuration wizard (click Network>New or Network> or select the WLAN SSID> click edit).
2. Click Show advanced options.
3. Click Edit, select a time range profile from the list and select a value from the Status drop-down list, and then click OK.
When a time range profile is enabled on SSID, the SSID is made available to the users for the configured time range. For example, if the specified time range is 12:00 to 13:00, the SSID becomes available only between 12 PM to 1 PM on a given day.
If a time range is disabled, the SSID becomes unavailable for the configured time range. For example, if configured time-range is 14:00 to 17:00, the SSID is made unavailable from 2 PM to 5 PM on a given day.
4. Click Next and then click Finish.

 

If the SSID has two time profiles enabled with an overlapping duration, the time range profile will be executed as per the configuration conditions described earlier in this chapter. For example, if profile1 has 9AM-12PM as the duration and the time-range configured for profile2 is 10AM-11AM and both are enabled on the SSID, the SSID becomes available only between 9AM-11AM.

In the CLI

To enable a time profile on an SSID:

(Instant AP)(config)# wlan ssid-profile <name>

(Instant AP)(SSID Profile "<name>")# time-range <name> enable

(Instant AP)(SSID Profile "<name>")# end

(Instant AP)# commit apply

To disable a time profile on an SSID:

(Instant AP)(config)# wlan ssid-profile <name>

(Instant AP)(SSID Profile "<name>")# time-range <name> disable

(Instant AP)(SSID Profile "<name>")# end

(Instant AP)# commit apply

Verifying the Configuration

To view the time range profiles created on an IAP, execute the following command:

(Instant AP) (config) # show time-range

 

Time Range Summary

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

Profile Name Type Start Day Start Time End Day End Time Valid

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

test Periodic daily 13:00 - 14:00 No

test1 Absolute 11/17/2015 10:00 11/24/2015 17:00 No

Lunchbreak Periodic weekday 12:00 - 13:00 No

Lunchbreak1 Periodic daily 12:00 - 13:00 No

To verify if the time range profile is enabled on an SSID:

(Instant AP)(config) # show time-profile

Time Range SSID Profile

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

Time Profile Name SSID profile Name Enable/Disable

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

Lunch Break Test123 Enable

Example

The following example creates an absolute time range profile :

(Instant AP)(config) # time-range timep1 absolute start 10/20/2013 10:40 end 10/20/2015 10:50

The following example creates a periodic time range profile that executes on the specified day of the week:

(Instant AP)(config) # time-range timep2 periodic monday 10:40 to tuesday 10:50

The following example creates a periodic time range profile that executes daily:

(Instant AP)(config) # time-range testhshs12 periodic daily 10:20 to 10:35

The following example creates a periodic time range profile that executes during the weekday:

(Instant AP)(config) # time-range timep3 periodic weekday 10:20 to 10:35

The following example creates a periodic time range profile that executes during the weekend:

(Instant AP)(config) # time-range timep4 periodic weekend 10:20 to 10:30

The following example removes the time range configuration:

(Instant AP)(config) # no time-range testhshs12