5.3 Setting the Schedule

Although all Knowledge Scripts have a default schedule, you can modify the schedule for any Knowledge Script job as needed. You can specify when the job should start, the interval (if any) at which the job should run, and when the job should stop. You can also schedule jobs to run on specific days and at set times, or to run only once. To prevent jobs from running on a Windows computer during scheduled maintenance periods, run the AMADMIN_SchedMaint Knowledge Script. On a UNIX agent, use the AMAdminUNIX_SchedMaint Knowledge Script. For more information, double-click the AMADMIN_SchedMaint Knowledge Script in the Knowledge Scripts view and click Help on the Values tab in the Properties window.

To set the schedule for a job:

  1. In the Enterprise Layout view of the Navigation pane, select a Jobs view or on the Jobs tab of the Server Information pane, select the job you want to modify.

  2. In the Tasks pane, click Job Properties.

  3. Click the Schedule tab.

    NOTE:The options for setting intervals, start and stop times, and daily frequency depend on the selected schedule.

  4. Select a schedule type.

    If you select...

    Then...

    Run once

    Set a start time for the job to run once (see Step 5).

    Regular intervals

    Set the interval (Every) — in hours, minutes, or seconds — and start and end times for the job (see Step 6).

    The interval controls how many times the job runs between the starting and ending time. For example, if you set a 10-minute interval with a start time of 10:00:00 PM and an end time of 10:59:00 PM, the job runs every 10 minutes — for a total of six times. (If the job takes more than 10 minutes to run, then it will run fewer times. For example, if the job takes 15 minutes to run, then it will run at 10:00:00 PM, 10:20:00 PM (the next scheduled interval), and 10:40:00 — for a total of three times.)

    X number of times

    Set how often you want the job to run (Every) — in hours, minutes, or seconds. Set how many times you want the job to run (End after ___ Times).

    Then set a start time (see Step 5.).

    Daily schedule

    Set the daily interval (Every) you want the job to run.

    Then set start and end dates (see Step 5) and the frequency (see Step 6).

    Weekly schedule

    Set the weekly interval (Every) and the days of the week you want the job to run.

    Then set start and end dates (see Step 5) and the frequency (see Step 6).

    Monthly schedule

    Set the monthly interval (Every) and the days of the month you want the job to run (On).

    Depending on the option you select in the On list, you can further refine your selection. For example, if you select a day of the week (such as Monday), you can further select the weeks in the month (such as The first Monday and The last Monday of the month). If you choose Selected Day, you can then select days in calendar format (such as 3 and 17, or L for the last day of the month).

    Then set start and end dates (see Step 5) and the daily frequency (see Step 6).

    NOTE:If you configure an AppManager job to run monthly on a particular weekend (such as first weekend, second weekend, etc.), a weekend constitutes a consecutive Saturday and Sunday that falls within the calendar month.

    Asynchronous

    This option is selected for Knowledge Scripts that run asynchronously to monitor resources as changes occur.

  5. Set start and end date/times for the job. Available options depend on the schedule type you selected in Step 3.

    For...

    Select...

    Start (date or time)

    Now, or a date and time.

    End (date or time)

    No end date, or a date and time.

  6. Set the frequency for the job.

    To run the job...

    Select...

    Once during the day

    Once for the selected period and then set a start time.

    At set intervals during the day

    Every. Then set the interval — in seconds, minutes, or hours — and a start and end time.

  7. Click another tab to change its properties or click OK to start the job.