Configures an enforcement time in days and hours. The enforcement time is applicable only to those rules, within the application policy, that do not have a schedule policy associated. By default an application policy is enforced on all days.
Note
Schedule policies enforce allow/deny/mark/rate-limit rules at different time periods. If absence of a schedule policy, application policy rules are enforced at the enforcement-time specified within the policy. For more information on configuring a schedule policy, see schedule-policy.enforcement-time days [sunday|monday|tuesday|wednesday|thursday|friday|saturday| all|weekends|weekdays] {start-time <HH:MM> end-time <HH:MM>}
enforcement-time days [sunday|monday|tuesday|wednesday|thursday|friday|saturday| all|weekends|weekdays] {start-time <HH:MM> end-time <HH:MM>}
enforcement-time days | Enforces this application policy on only on the days
specified here
In case no enforcement time is specified, the application policy is enforced on all days (i.e., always active). If using schedule policies with the allow/deny/mark/rate-limit rules, the best practice would be to keep the application policy active at all time (i.e., retain the default enforcement-time setting of ‘all‘). |
start-time <HH:MM> end-time <HH:MM> | Optional. Configures this application policy‘s
enforcement period
|
nx9500-6C8809(config-purview-app-policy-PurAppPolicy)#enforcement-time days weekends start-time 10:30 end-time 20:00
nx9500-6C8809(config-purview-app-policy-PurAppPolicy)#show context purview-application-policy PurAppPolicy description "This application policy allows Applie_Streaming packets on weekends." enforcement-time days weekends start-time 10:30 end-time 20:00 allow application Apple_Streaming precedence 1 nx9500-6C8809(config-purview-app-policy-PurAppPolicy)#
no | Removes this application policy‘s enforcement period |