bjdepinfo

Displays job dependencies.

Synopsis

bjdepinfo [-r level] [-l] [-p] job_ID | "job_ID[index]"
bjdepinfo -c [-r level] job_ID | "job_ID[index]"
bjdepinfo [-h] [-V]

Description

The command bjdepinfo allows you to display all or seleted job dependencies. You can get a list of other jobs that a job depends on (parent jobs) and jobs that depend on your job (child jobs).

Note:

The parent-child relationship does not indicate that one or more jobs are spawned by other jobs. A job dependency is when the start of a job depends on the status of other jobs.

Options

job_ID | "job_ID[index]"

Required. Job ID of the job or job array on which to operate.

If you specify only a job ID for a job array, information about all jobs in the array displays.

Displays all jobs that this job depends on.

-r level

When combined with -p, prints the parent jobs that cause the current job to pend recursively.

When combined with -c, prints the child jobs that depend on the current job recursively.

When combined with -l, prints detailed parent job dependency information recursively. When combined with -l and -p, prints detailed information about the parent jobs that cause the current job to pend recursively.

In each case, you can specify the level using a positive integer. Level indicates the number of degrees of separation from the original job.

For example, specify level 1 to see any jobs that directly depend on this job or that this job depends on. Specify level 2 if you also want to see all dependencies on the jobs that have a dependency on the originally specified job.

If the job has been partially cleaned, an asterisk (*) displays before the status and the job name is unavailable (-).

-l

For the job you specify, prints detailed parent job dependency information including the condition of the job and whether or not a job’s dependency requirements have been satisfied.

-p

Prints the parent jobs that cause the current job to pend.

-c

Prints any child jobs of the job you specify (as well as any dependencies they have).

-h

Prints command usage to stderr and exits.

-V

Prints LSF release version to stderr and exits.

Output

JOBID

The job ID of the job with a parent or child dependency.

PARENT

The job ID of the job that has other jobs depending on it.

CHILD

The job ID of the job that depends on other jobs.

PARENT_STATUS

The status of the parent job listed. If the job has been partially cleaned, an asterisk (*) displays before the status and the job name is unavailable (-).

CHILD_STATUS

The status of the child job listed.

PARENT_NAME

The name of the parent job listed. If the job has been partially cleaned, the job name is unavailable (-) and an asterisk (*) displays before the status.

CHILD_NAME

The name of the child job listed.

LEVEL

The degrees of separation of job dependencies. 1 means a job is directly dependent; other numbers indicate the levels of indirect dependency.