6.10.2 Accessing Policies

 

The configured polices can be viewed in the Administration Tool > Policies panel. Only policies that are configured to be executed are listed in this view. To view all the policies available for configuration, you need to access the Policy Configuration tool.

 

Every added policy has certain properties based on which an action is triggered. This section explains how you can view the properties of the default policies available in WebNMS.



Viewing Policies

 

The existing policies in WebNMS can be viewed through the Client. Only the policies that are configured to be executed are listed in this view.

 

To view policies

    1. Open the WebNMS Client.

    2. Choose Administration Tools > Policies. All the existing policies that are configured to be executed are displayed in the Policies panel on the right side.

Tip: In the Policies panel, you can identify a non-periodic policy with a clock symbol beside in the policy Name.

Top

 

 

Adding Policies

 

The policies that are to be executed can be configured in the WebNMS Client.

 

To add policies

    1. In the WebNMS Client, click Administration Tools > Policies.

    2. From the Policy menu, choose Add Policy or press Ctrl+P. The AddPolicy Details dialog box is displayed.

    3. From the Select Policy drop-down box, select the policy that you need to configure for execution.

    4. Click Add. The Object Details dialog box is displayed. For information on each of the fields (for different default policies), refer to Viewing Default Policy Details.

On performing this, the policy is displayed in the Policies panel. Now you can proceed to perform other operations, such as executing, updating, stopping, and scheduling the policy.

 

Top

 

 

Searching Policies

 

All policies configured to be executed are displayed in the Policies panel. When there are more number of policies displayed, use the Search option to locate a specific policy.

 

To search policies

    1. In the WebNMS Client, click Administration Tools > Policies.

    2. From the Policy menu, choose Search, or press Ctrl+F or from the toolbar click Find. The Search Dialog is displayed.

    3. Specify the match criteria and click Execute Query. The policies matching your criteria are displayed in the Policies panel.

    4. To view all the policies again, in the Search Dialog, click Select all Policies.

Top

 

 

Updating Policies

 

After configuring a policy for execution, you can change its properties any time, if need arises. For example, to disable the policy, follow the procedure given below and change the value of 'status' to 'Disabled'.

 

To update a policy

    1. In the WebNMS Client, click Administration Tools > Policies.

    2. In the Policies panel displayed on the right side, select the policy to be updated.

    3. From the Edit menu, choose Update Policy or press Ctrl+U or right-click the policy and choose Update Policy. The Object Details dialog box is displayed. For information on each of the fields (for different default policies), refer to Viewing Default Policy Details.

Top

 

 

Executing Policies

 

To execute a policy

    1. In the WebNMS Client, click Administration Tools > Policies.

    2. In the Policies panel displayed on the right side, select the policy to be executed.

    3. From the Edit menu, choose Execute Policy or press Ctrl+X or right-click the policy and choose Execute Policy.

On performing this procedure, if the policy execution has started, the policy is depicted in cyan (default color code) and if it has completed, the policy is depicted in green (default color code). For more information on the color codes, refer to Changing the Policy Color.

 

For information on the outcome of executing default policies, refer to Viewing Default Policy Details.

 

Top

 

 

Stopping Policies

 

To stop a policy that is currently being executed

The policy is stopped from being executed and the color code changes to yellow (default color code).

Top

 

 

 

Scheduling Policies

 

This section explains how you can schedule the day/date/time when a non-periodic policy needs to be executed.

 

To schedule a policy

    1. In the WebNMS Client, click Administration Tools > Policies.

    2. In the Policies panel displayed on the right side, select the policy to be scheduled.

    3. From the Edit menu, choose Schedule Policy or press Ctrl+H or right-click the policy and choose Schedule Policy. The Policy Scheduler is displayed. Note: This option is available only if the policy is non-periodic.

There are two modes of scheduling: Dates and Days scheduling.

 

Dates scheduling

 

By default, the Dates option is selected.

      • Select Dates for scheduling policy: Displays all the dates of a month (from 1 to 31)

      • Select the Scheduling Hours: Displays hours of a day (0:00 to 23:00). This panel is enabled only if at least a date is specified.

To schedule, click the date or the time (shows a tick symbol on selection). You have options to select all the dates and hours or specific dates and hours.

 

To schedule specific dates, select a date and the Hour(s). Repeat the same procedure.

 

Example 1: To schedule a policy on the 1st and 10th day of the month and at specific hours

      1. In Select Dates for scheduling policy, select Specific and click 1.

      2. In Select the Scheduling Hours, select Specific and click the hour(s).

      3. In Select Dates for scheduling policy, select 10.

      4. In Select the Scheduling Hours, select the hour(s).

      5. Click OK.

Example 2: To schedule a policy at 1, 10, and 22 hours on 2nd of the month

      1. In Select Dates for scheduling policy, select 2.

      2. In Select the Scheduling Hours, select 1, 10, and 22.

Let us assume that you have configured a Date-wise scheduling of a policy for the 5th and 20th hour on the 31st day of every month. As the month of February has only 28 or 29 days, the same policy is scheduled on the 5th hour on 1st of March.

 

After selecting a date/hour, when you need to deselect it, click the date/hour (with tick) again. The selection is cleared.

 

Days scheduling

 

Click the Days option to schedule the policy based on days in a week and hours in a day.

      • Select Days for scheduling policy: Displays all the days in a month (from 1 to 31)

      • Select the Scheduling Hours: Displays hours of a day (0:00 to 23:00). This panel is enabled only if at least a day is specified.

To schedule, click the day or the time (shows a tick symbol on selection). You have options to select all the days and hours or specific days and hours.

    1. To clear all the configurations that you have made in the Policy Scheduler, click Reset.

    2. Click OK.

On performing this procedure, the policy is executed based on the scheduled date/day/time. If you have configured both the date-wise and day-wise scheduling, the configurations that you make finally are effected.

Top

 

 

Deleting Policies

 

To delete a configured policy

    1. In the WebNMS Client, click Administration Tools > Policies.

    2. In the Policies panel displayed on the right side, select the policy to be deleted.

    3. From the Edit menu, choose Delete Policy or press Ctrl+C or right-click the policy and choose Delete Policy. The Policy Scheduler is displayed.

Top

 

 

FAQ


  1. If I schedule a policy on 31st of every month and if a month does not have 31, what is the result?

If you schedule a policy on 31st of every month, then the policy will be executed only for the months which contain the date 31st. For example, if you have scheduled policy on 31st of every month starting from January, then the policy will be executed on January 31. For February, it will not be executed, since it does not have 31. Again on March 31, the policy will be executed and so on.

  1. Periodic policies are executed once they are added; whereas in case of non-periodic policies, it is not so. Why?

This is because a default period (10 seconds) is set for periodic policies. So, periodic policies are executed automatically.

On the other hand, no default period or time can be specified for non-periodic policies. You explicitly need to schedule the policy using the Policy Scheduler. Otherwise, it will not be executed.

  1. Can non-periodic policy be executed at time schedules of hour:minutes?

No. Non-periodic policies cannot be executed like that. It can be executed to the precision of hours only and not hours:minutes. For example, it can be executed at 11:00, 12:00, etc. and not at 11:30, 12:15, etc.

 


Top

 


Copyright © 2013, ZOHO Corp. All Rights Reserved.