Sun Management Center Change Manager 1.0 Administration Guide

How to View the Status of Jobs (Command Line)

  1. 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.

  2. View the status of jobs.


    $ changemgr jobs [ -u username ] [ -p file ] [ -l ] [ -o format ] [ id ... ]
    -u username

    Specify the user name to authenticate. If this option is not specified, the user is the current UNIX user.

    -p file

    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.

    -l

    Present more detailed information about the jobs.

    -o format

    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.

    id

    Specifies particular job IDs. The job ID number is automatically assigned when the operation is initiated.

Example-Viewing the Status of All Jobs

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

Example-Viewing the Job Details

Pat wants to see the job details for all jobs.


$ changemgr jobs -l

Example-Viewing the Status of Specified Jobs

Pat wants to see the status of job IC_1234.


$ changemgr jobs IC_1234

Example-Viewing the Properties of a Specific Job

Pat wants to see all the properties of job IC_1234.


$ changemgr jobs -o all IC_1234