Sun Management Center Change Manager 1.0.1 Administration Guide

- Previous: How to View the Status of Jobs (Command Line)
- Next: How to Purge Completed Jobs From the Job Queue (Command Line)

## How to Cancel Jobs (Command Line)

Some Change Manager operations are interrupted when you cancel them, while some jobs 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`

1. Determine which jobs to cancel.

   You can cancel pending jobs and running jobs.

   To specify one or more jobs, use the associated job ID.

2. 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).

### Example—Canceling a Job

Pat wants to cancel jobs `IC_12345` and `IC_12346`.

    $ changemgr kill IC_12345 IC_12346

- Previous: How to View the Status of Jobs (Command Line)
- Next: How to Purge Completed Jobs From the Job Queue (Command Line)

- © 2010, Oracle Corporation and/or its affiliates