Use the Change Manager to initiate jobs to run on managed hosts, such as installation or audit. Also, use the Change Manager to initiate jobs to run on the Change Manager server, such as import or export. Then, use the job log and job queue to get status about jobs that you created from the Hosts and Files sections.
The following topics are described in this chapter:
A job is described by a job name and a unique job ID that the Change Manager generates.
You can perform the following actions on jobs:
View the status of submitted jobs
Cancel running jobs
Purge the completed jobs from the job queue
From the Jobs page, view the job queue to monitor current and recent pending, running, and completed jobs. Jobs are initiated on the Change Manager server to perform several tasks, such as installing a managed host. Initiate the jobs from the Hosts section. Then, check the status of the jobs from the Jobs section. There are several job status values:
Job that has been terminated.
Job that is in the process of being terminated.
Job that successfully completed.
Job that failed to complete successfully. See the job log for failure details.
Job that is scheduled to run, but the start time has not arrived.
Job that is currently running.
Job queue entries include the following information:
The unique generated ID of the job.
User-supplied name for the job.
The user who initiated the command.
The time the job started.
The time the job completed.
The status of the job.
From the Logs page, view the job log to see detailed information about the progress of jobs. A log entry is created to show each change to the job status. The entry includes the following information:
Time the job starts or completes.
The unique generated ID of the job.
The command being run.
The managed host on which the job is initiated.
The status of the job, which indicates whether the job has started or completed.
The status of the job. This field indicates that the job has been submitted or dispatched. If the job fails, this field shows the failure message.
From the Logs page, view the transaction log. The transaction log shows the actions that have been initiated from the Change Manager server. This log shows all actions, not just the long-running jobs included in the job log. Each log entry includes the following information:
Time the job starts or completes.
The user who initiated the command.
The operation being run.
The type of object being used by the operation.
Status of the job. This field indicates that the job succeeded or failed. If the job fails, an error message is included with the status.
The following table identifies the procedures you need to monitor jobs by using the web browser.
Task |
Description |
For Instructions |
---|---|---|
View the job queue. |
View the job queue to monitor current and recent pending jobs, running jobs, and completed jobs. | |
Cancel jobs. |
Cancel running jobs and pending jobs that appear in the job queue. | |
Reschedule running jobs. |
Reschedule a running job to run at a different time. | |
Purge completed jobs from the job queue. |
Purge completed jobs from the job queue. Running jobs and pending jobs are not affected. |
See How to Purge Completed Jobs From the Job Queue (Web Browser). |
View the job log. |
View the job log to see detailed information about the progress of jobs. | |
View the transaction log. |
View the transaction log to see the Change Manager transactions. |
The following procedures describe how to monitor jobs by using the job queue. In addition to viewing the job queue, you can purge completed jobs from the queue and cancel jobs from the queue. Other procedures describe how to view the job log and the transaction log.
Click the Jobs tab to view the job queue.
Click the job ID to view job details and possible error messages.
Some Change Manager operations are interrupted when you cancel them and some are not.
When a cancel is issued for an interruptable job, the operation currently running on the managed hosts is immediately terminated. The job is canceled for any managed hosts waiting to run the job. The following operations can be interrupted:
Audit
Build Manifests
Export
Get Software Status
Import
When a cancel is issued for an uninterruptable job, the operation currently running on the managed hosts completes. The job is canceled for any managed hosts waiting to run the job. The following operations cannot be interrupted:
Fall Back
Reboot
Reinstall
Set Up for Install
Update
Click the Jobs tab to go to the Jobs section.
Click the checkbox next to the job entries of pending jobs or running jobs to cancel.
Click Cancel Job.
The Cancel Jobs page shows the list of the selected jobs.
Click Yes, Cancel the Job to cancel the selected jobs and return to the job queue.
An alert appears above the table of job entries, indicating the success or failure of the cancel action.
Click No, Do Not Cancel Job to return to the job queue.
The selected jobs are not canceled.
Click the Jobs tab to go to the Jobs section.
Select the entry of the running job to reschedule.
Click Cancel Job, then click Yes, Cancel the Job on the Cancel Jobs page.
Click the Hosts tab to go to the Hosts section.
Drill down to the host group where the host groups or managed hosts exist.
Select the host groups or managed hosts on which to schedule the job.
Choose the action from the Host Actions drop-down menu.
Supply any input information or output information, as well as the date and time to run the job.
Click Submit to schedule the job.
An alert appears above the table of host groups and managed hosts, indicating the success or failure of the action initiation.
Click Cancel to return to the host group page.
The job is not initiated.
Click the Jobs tab to go to the Jobs section.
Click the checkbox next to the job entries of completed jobs to purge from the job queue.
Completed jobs have status of Canceled, Complete, or Failed.
Click Purge Completed Jobs.
The Cancel Jobs page shows the list of completed jobs to purge from the job queue.
Click Purge to purge the selected jobs and return to the job queue.
An alert appears above the table of job entries, indicating the success or failure of the purge action.
Click Cancel to return to the job queue.
The selected jobs are not purged from the job queue.
The following table identifies the procedures you need to monitor jobs by using the command-line interface. See the changemgr(1MCM) man page.
Task |
Description |
For Instructions |
---|---|---|
View the job queue. |
View the job queue to monitor current and recent pending jobs, running jobs, and completed jobs. | |
Cancel jobs. |
Cancel running jobs and pending jobs that appear in the job queue. | |
Purge completed jobs from the job queue. |
Purge completed jobs from the job queue. Running jobs and pending jobs are not affected. |
See How to Purge Completed Jobs From the Job Queue (Command Line). |
The following procedures describe how to monitor jobs by using the job queue. In addition to viewing the job queue, you can purge completed jobs from the queue and cancel jobs from the queue.
Determine whether to view the status of particular jobs or all jobs.
To specify one or more jobs, use the associated job ID. Otherwise, information is provided for all running jobs.
View the status of jobs.
$ changemgr jobs [ -u username ] [ -p file ] [ -l ] [ -o format ] [ id ... ] |
Specify the user name to authenticate. If this option is not specified, the user is the current UNIX user.
file consists of a single line, which contains the password. If file is -, then the user can supply the password as standard input.
If the -p option is not supplied, then the changemgr command prompts the user for his password.
Present more detailed information about the jobs.
format is a blank-separated list or comma-separated list of property names. If you separate the property names with spaces, make sure that you surround the list of property names with quotes. The specified property values are displayed in a name-value format. If format is specified as all, then all properties are displayed. The output is suitable for programmatic parsing.
Specifies particular job IDs. The job ID number is automatically assigned when the operation is initiated.
Pat wants to see the status of all jobs: those started from the browser interface and those started from the command-line interface.
$ changemgr jobs |
Pat wants to see the job details for all jobs.
$ changemgr jobs -l |
Pat wants to see the status of job IC_1234.
$ changemgr jobs IC_1234 |
Pat wants to see all the properties of job IC_1234.
$ changemgr jobs -o all IC_1234 |
Some Change Manager operations are interrupted when you cancel them and some are not.
When a cancel is issued for an interruptable job, the operation currently running on the managed hosts is immediately terminated. The job is canceled for any managed hosts waiting to run the job. The following operations can be interrupted:
changemgr audit
changemgr export
changemgr import
changemgr info
changemgr manifest
When a cancel is issued for an uninterruptable job, the operation currently running on the managed hosts completes. The job is canceled for any managed hosts waiting to run the job. The following operations cannot be interrupted:
changemgr fallback
changemgr halt
changemgr reboot
changemgr reinstall
changemgr setup
changemgr update
Determine which jobs to cancel.
You can cancel pending jobs and running jobs.
To specify one or more jobs, use the associated job ID.
Cancel selected jobs.
$ changemgr kill [ -u username ] [ -p file ] id ... |
For descriptions of the options, see How to View the Status of Jobs (Command Line).
Pat wants to cancel jobs IC_12345 and IC_12346.
$ changemgr kill IC_12345 IC_12346 |
Determine which completed jobs to purge from the job queue.
You can purge only completed jobs.
To specify one or more jobs, use the associated job ID.
Purge completed jobs from the job queue.
$ changemgr ack [ -u username ] [ -p file ] id ... |
For descriptions of the options, see How to View the Status of Jobs (Command Line).
Pat wants to purge the completed jobs, IC_12347 and IC_12348, from the job queue.
$ changemgr ack IC_12347 IC_12348 |