Sun Management Center 3.6 User's Guide

Creating and Managing Jobs

A job consists of a task or activity and a set of filtering criteria used to define the objects to which that task applies. This section describes how to define, schedule, suspend, and delete jobs.

ProcedureTo Define a Job

Note –

This procedure describes the main steps that you follow to create a job request. Individual steps are explained in further detail in the referenced procedures.

  1. Choose Manage Jobs from the Tools menu in the main console window.

  2. Type a unique name for the job in the Job Name field.

    The name should describe the job. For example, if the job is to load the Directory Monitoring module, the name could be Load Directory Monitoring.

  3. Specify the initial set of managed objects to which this job applies.

    • To apply this job to all objects within the current domain, select All Objects in Domain.

    • To select objects manually, select Selected Objects in Main Window.

      Note –

      You can select objects before you define the job. Alternately, you can go to the topology area of the main console window to select the objects now. In either case, you must select topology objects before you submit this job.

    • To use objects that were selected previously for this job, select Objects Previously Selected in Main Window.

      Note –

      This feature applies only to jobs that are being modified. For new jobs, this feature is unavailable and is dimmed.

  4. To limit the managed objects even further, specify a filter.

    • Click the New Filter button to limit this task to objects that use a specific operating system version, platform, or other specified criteria.

      The New Filter window appears from which you define the filter. See Using Filters for more information.

    • Choose a defined filter from the Filter menu.

  5. To see what objects would be selected by the defined filter, click Preview Objects.

  6. Specify the action for the job to execute.

    • Click New Task to define a task.

      The New Task window appears from which you define the task. See To Define a Task for more information.

    • Choose a defined task from the Task menu.

  7. Determine whether to run the job immediately or to schedule the job.

    • To run this job when you have finished defining it, click the radio button next to Run Job Immediately.

    • To schedule this job to run, click the radio button next to Schedule Job, then click Set Schedule to access the scheduling function.

      For more information about scheduling a job, see To Schedule a Job.

  8. To complete the definition of this job, click Add Job.

    Tip –

    To clear all fields in the job, click Reset Form.

ProcedureTo View Job Status

The Jobs section of the Manage Jobs window shows a brief status for current jobs.

  1. To view more detailed job status, select the job from the Jobs section of the Manage Jobs window.

  2. Click the View Log button.

    A window appears that displays detailed information about the selected job.

    Tip –

    If the View Log window is mostly empty, the job probably has not finished. Exit from the View Log window. Wait until the status in the Manage Jobs window no longer says “Running” before you reopen the View Log window.

    The View Log window provides the following information about the selected job:

    • The name, type, and description for the task

    • The domain in which the job was run

    • The date and time that the job was run

    • The overall job status

    • The length of time it took for the job to run

    • The user name of the user that requested the job

    • A list of managed objects to which the job applies

    • For each managed object in the job, information about job activities and status

  3. To view more information about the job status for a specific managed object, select the object in the Domain Object Status section of the View Log window.

    Specific information about the job status as it relates to the selected object appears in the Domain Object Status Details section of the window.

ProcedureTo Schedule a Job

A similar Scheduler window is used for defining schedules for module loading and enabling, group-related jobs, alarm monitoring, and Discovery requests.

  1. To set this job to begin on a day other than today, type a date in the Start Date field.

    To select a date from the calendar, click the date. To change the month, use the left and right arrows at the top of the calendar.

  2. Select an hour and minutes from the Start Time menu.

    Hours are based on a 24–hour clock. For example, 16:00 is the same as 4:00 PM.

    Note –

    You cannot schedule two jobs with MCP configuration tasks at the same time. If you are scheduling a job with an MCP configuration task, make sure the scheduled time is different from any previously scheduled jobs with MCP configuration tasks. If you schedule two jobs for the same time, the job scheduled first is executed. The second job scheduled for the same time is ignored.

  3. (Optional) Choose how often the action should occur from the Repeat Interval menu.

    You can schedule a task to occur more than once. For example, to schedule a task to run weekly, you would select Weekly.

    Note –

    Repeat Interval values differ by scheduling activity.

  4. (Optional) Select an appropriate time reference from the Repeat Interval menu. Then, type a number in the Repeat Interval field.

    You can run the action for a specific number of repeated intervals. For example, to run a task for the next two months, select Months from the Repeat Interval menu and type 2 in the Repeat Interval field.

    Note –

    Some time intervals, such as Weekly, do not allow you to specify Repeat Intervals. In those cases, you cannot type a value in the Repeat Interval field.

  5. Click OK to set this schedule.

ProcedureTo Suspend a Running Job Request

You can stop a job from running and restart the job later. For example, if you have major system maintenance that is going to be performed, you might want to temporarily disable some alarm processing.

  1. In the Manage Jobs window, select the task request that you want to suspend from the list of jobs.

  2. Click the Suspend Job button.

    • If the job is running, the value in the State column changes to Suspended.

    • If the job is not running (for example, the current State is Queued), nothing appears to happen.

  3. To restart a suspended job, select the job and click the Resume Job button.

ProcedureTo Delete a Job Request

  1. In the Manage Jobs window, select the job that you want to delete from the list of jobs.

  2. Click the Delete Job button.

    A Delete confirmation window appears to remind you that deleting the job is a permanent action.

  3. To permanently delete the job, click the Delete button.