iManager’s job scheduler contains the similar functionality as the job scheduler found in Designer. However, iManager’s job scheduler can start and stop a job, as well as get a job’s status.
The Jobs page is accessed from the Identity Manager Driver Overview page and contains a table showing the existing job objects for the selected driver, which is listed with the name of the job object. Below is an example of scheduled jobs that are created for the Job driver.
Figure 7-9 The Job’s Tab from the Identity Manager Driver Overview
The headings include the job's name, whether the job is enabled or disabled, when it is scheduled to run, and the job description. Click the job’s name to bring up the Job Properties page. Click the enable/disable icon under the Enabled column to enable or disable the job. The Next Scheduled Run heading shows if the job is scheduled to run, and if it is, the date when the job is scheduled. Click the job's description to see a pop-up window listing the job's full description.
Use the commands in the menu bar to perform the following operations.
To create a new job in iManager:
Click New to bring up the Create Job page.
In the Job Name entry, give the job a descriptive name.
Under
, select an or a job. The default is .Under
, choose a definition for the job. The Create Job page displays all jobs that have been installed on the servers. Identity Manager 3.5 comes with three job definitions:Random Password Generator: Generates a random password for each object in the job’s scope. The password is generated by NMAS to match the Password Policy object that the job references. These Password Policy objects are not usually the same as those used for eDirectory user password policies.
The job submits the generated passwords one at a time to the driver’s Subscriber channel. The Subscriber channel policies must take action on the passwords.
Schedule Driver: Starts or stops the associated driver. You can also toggle a driver to start the driver if it is stopped or to stop the driver if it is running.
Subscriber Channel Trigger: Submits zero or more trigger documents to the Subscriber channel. The submission can either be a document per object if a scope is defined, or it can be a single trigger event if no scope is defined.
Trigger event documents identify the job and the scope object. A trigger event can bypass the cache and “go to the head of the queue” if desired. Trigger jobs allow you to use driver policies that you can customize for your personal requirements.
If you select Custom, enter the XML code that defines the custom job.
In the
field, select the server or servers to perform the job execution.Click
. The new job opens Job Property page.Continue with Section 7.2.2, Setting the Job’s Parameters.
Select a job by clicking the box to the left of the job, then click Run Now.
Select a job by clicking the box to the left of the job, then click Stop.
Select a job by clicking the box to the left of the job, then click
. The icon in the column changes to a check mark when the job is enabled.Select a job by clicking the box to the left of the job, then click
. The icon in the column changes to the icon.Select a job by clicking the box to the left of the job, then click
.To delete a job, click the box to the left of the job name, then click
. You see a message stating that the selected job will be deleted from the directory. Click to delete the job, or click to stop the operation. You can click multiple boxes to delete multiple jobs, or click the upper left box to delete all of the jobs listed.Click a job to bring up the Job Property page and set up how you want the job to run.
A line at the top of the General tab shows the Java class name of the job.
Figure 7-10 Items Under the General Tab
To enable the job, select
.To delete the job after it runs, select
.In the
column, select the server or servers where this job should run.A filtered list of servers is available to help you assign this job. A custom job may be installed on one server but not on another. In this case, the server without this custom job is filtered out of the Server List.
A job can be assigned to multiple servers as long as it has been installed on each server. iManager only allows this association if the jobs are properly installed and packaged so that the Metadirectory engine can see them.
For the
entry, browse to the default notification collection template. Select the browse button, select the Security container, then the Default Notification Collection object. The fully distinguished path is Default Notification Collection.Security. Or you can use the history icon to select from previously selected items.Check the other job settings:
The
entry shows which type of job has been selected.The
field displays the description that has been written for the job type.The Schedule tab allows you to set up when you want to run the job.
Figure 7-11 The Job Options for the Scheduler Tab
Select the
option to set the date and time, and whether to run the job daily, weekly, monthly, yearly.Or select the
option to run the job when you choose to.With
selected, type the hours and minutes when you want the job to start running. Use the drop-down menus to select or . The default is 1:00 AM.If you want to run the job repeatedly, use the
, , , , or fields to select when you want it to run.For example, if you want the job to run weekly, select
, then select the day you want it to run. If you want the job to run once a month, select , then click the icon to select the day of the month.If you select
, you can choose minutes, hours, days, months and days of the week by using crontab syntax:Minute: 0-59; Hour: 0-23; Day of month: 1-31; Month: 1-12; Day of week: 0-6, 0=Sunday; *=all.
Use a comma to separate integers and ranges, and a space to separate each field.
The information displayed in the 30,2,1,12,5 and press , those numbers are displayed in the field.
field displays any settings you make in the Custom entry. For example, if you typeOnce you have selected the day or days you want to schedule the job, click
.Scopes allow you to define the objects that this job applies to. An object in eDirectory can be a container, a dynamic group, a group, or a leaf object. If you select a group object, you can apply the job to the group's members, or only to the group. If you select a container object, you can apply the job to all descendants in that container, to all of the children in the container, or to the container only.
Click
to add a scope to the job object.On the Job Scope page, use the
icon to browse to the object. Click to add the scope object.If the object is a container, select how you want to apply the job:
(Optional) If you select
or , you can specify the classes you want to scope. Click the icon to bring up the Enter the Class Name page and specify the classes you want to scope. Then click .The classes are added to the
box. To remove a class, select it and click the icon.If the object is a group or a dynamic group, select the
or if the scope is for the group.After the scope criteria are selected, click
to add the scope job to the Job Scope page.If you need to edit a scope, click the scope name.
To remove a scope, select the scope name, then click
.The Parameter page allows you to set parameters used by the job when the job is doing its work. What you can do depends on the type of job you selected. The following procedure uses a Subscriber Channel trigger for its example.
Figure 7-12 The Job Parameter Page for the Subscriber Channel Trigger Job
If you want to submit a trigger document for scoped objects that do not have a driver association, select
. Otherwise, keep the default of .If you want to use the job’s Common Name (CN) as a document identifier trigger, keep the default of
. Otherwise, select .(Optional) If you select
, specify the string that the job can use as the value for the trigger element’s Source attribute.Select a method for submitting the trigger documents. If you want to queue the job the trigger is from, keep the default of
. Otherwise, select .(Optional) If you select
, you are presented with the option. If you want to start the driver if it is not running, keep the default of . Otherwise, select .(Optional) If you select
for the option, you are presented with the option with the default of . Use the default to stop the driver after it finishes processing the trigger job, or select to keep the driver running.All job definitions have their own parameter sets.
The
tab allows you to define what you want to do with the job results. The Results page is divided into two parts: and , with the following results allowed: , , , and .To the right of the Results column is the
column. Clicking the column allows you to set how you want to be notified for each result. Actions include sending an audit result or sending an e-mail when the result completes. If you do not select an option, no action is taken for the result.Figure 7-13 Setting Up Who Gets Notified from the Results Tab
Click an
entry to bring up the Result Notification page.Under
, select who you want to send the results to by typing in the user’s or group’s e-mail name.The
, , and fields are required for a profile. The fully distinguished name for the Email template is .When you have filled in the information, click
.If you want the results to go to Novell Audit, select
.Use Step 1 through Step 4 for each of the options:
If you do not select an option, no action is taken for the result.