Configures a time rule specifying the days and optionally the start and end times. When applied to an application-policy rule, the schedule policy defines the enforcement time of the rule. For more information, see application-policy.

Supported in the following platforms:

  • Wireless Controllers — RFS4000
  • Service Platforms — NX5500, NX7500, NX9500, NX9600, VX9000


time-rule days [sunday|monday|tuesday|wednesday|thursday|friday|saturday|all|
weekends|weekdays] {start-time <HH:MM> [end-time <HH:MM>]}


time-rule days [sunday|monday|tuesday|wednesday|thursday|friday|saturday|all|
weekends|weekdays] {start-time <HH:MM> [end-time <HH:MM>]}
time-rule Configures a time rule in days and hours and minutes

A schedule policy can have more than one non-overlapping time-rules. The following time-rules, having overlapping time periods, are invalid: ‘weekdays, start-time 9:30 am, end-time 11:30 pm‘ and ‘all, start-time 12:00 am, end-time 12:00 pm‘.

days [sunday|monday| tuesday|wednesday|thursday|friday| saturday|all| weekends| weekdays] Specifies the days on which the time rule is applicable
  • sunday – Applicable on Sundays only
  • monday – Applicable on Mondays only
  • tuesday – Applicable on Tuesdays only
  • wednesday – Applicable on Wednesdays only
  • thursday – Applicable on Thursdays only
  • friday – Applicable on Fridays only
  • saturday – Applicable on Saturdays only
  • weekends – Applicable on weekends only
  • weekdays – Applicable on weekdays only
  • all – Applicable on all days
start-time <HH:MM> [end-time <HH:MM>] After specifying the days of enforcement, specify the following:
  • start-time – Optional. Specifies the enforcement start time
    • <HH:MM> – Specify the start time in hours and minutes in the HH:MM format.
If no start time is specified, the time rule is enforced, on the specified days, at all time.
  • end-time – Specifies the enforcement end time
    • <HH:MM> – Specify the time in hours and minutes in the HH:MM format.


nx9500-6C8809(config-schedule-policy-test)#time-rule days weekdays start-time 10:00 end-time 23:30
nx9500-6C8809(config-schedule-policy-test)#show context
schedule-policy test
 description "Denies social networking sites on weekdays."
 time-rule days weekdays start-time 10:00 end-time 23:30

Related Commands

no (schedule-policy-config-mode-commands) Removes the time-rule from the schedule policy