Previous Topic: listFailedJobs—List Failed JobsNext Topic: modfiyJob—Modify Job


Example

To list the failed jobs of the container "myContainer" the following command should be entered:

cadsmcmd jobContainer action=listFailedJobs name="myContainer" 

CA IT Client Manager r12
ITCM Command Line Version 12.8.0.xxxx
Copyright (c) 2014 CA. All rights reserved.

Trace mode: Off

Connecting to manager "<default manager>" as user "<default user>" ... ok.
Manager: mymanager
Domain: mydomain
Domain type: Domain
Supporting: CO CCNF USD OSIM 

-------------------------------------------------------------------------------
Job list of job container "myContainer" 
-------------------------------------------------------------------------------
Job name...............................: prod 2 1.0:inst
..Task.................................: install
..Overall state........................: ERROR
..Job order number.....................: 2
..Target...............................: KKKKK01A
....Job state..........................: EXECUTION_OK
..Target...............................: KKKKK01B
....Job state..........................: EXECUTION_ERROR
Job name...............................: prod 3 1.0:inst
..Task.................................: configure
..Overall state........................: ERROR
..Job order number.....................: 3
..Target...............................: KKKKK01A
....Job state..........................: EXECUTION_ERROR
..Target...............................: KKKKK01B
....Job state..........................: EXECUTION_ERROR

-------------------------------------------------------------------------------
Number of jobs read: 2
Number of jobs listed: 2
SDCMD<A000000>: OK

To see a target -oriented list, enter:

cadsmcmd jobContainer action=listFailedJobs name=myContainer TV
CA IT Client Manager r12
ITCM Command Line Version 12.8.0.xxxx
Copyright (c) 2014 CA. All rights reserved.

Connecting to manager "wwwww01b" as user "<default user>" ...OK.

-------------------------------------------------------------------------------
Job list of job container "myContainer" (TV)
-------------------------------------------------------------------------------
Target.................................: KKKKK01B
..Job overall state....................: ERROR
..Job name.............................: prod 3 1.0:inst
....Task...............................: install
....Job state..........................: EXECUTION_ERROR

-------------------------------------------------------------------------------
Number of jobs read: 1
Number of jobs listed: 1
SDCMD<A000000>: OK

When the following is invoked

cadsmcmd jobContainer action=listFailedJobs name=“e.g.“ TV alt

then the returned list might look as follows:

CA IT Client Manager r12
ITCM Command Line Version 12.8.0.xxxx
Copyright (c) 2014 CA. All rights reserved

Trace mode: Off

Connecting to manager "<default manager>" as user "<default user>" ...OK.
Manager: mgr_1
Domain: mgr-1
Domain type: Domain
Supporting: CO CCNF USD OSIM

-------------------------------------------------------------------------------
Job list of items for job container "e.g."
-------------------------------------------------------------------------------
Target.................................: KKKKK01
..Job name.............................: prod 1 1.0:inst
..Job identifier.......................: 27B1661D-ED2D-DB01-B402-000F1F7090E6
..Item name............................: prod 1
..Item version.........................: 1.0
..Procedure name.......................: inst
..Task.................................: install
..User parameters......................:
..Job state............................: EXECUTION_ERROR
..Error code...........................: 228001
..Error message........................: 1
..Creation date........................: 2006-08-17
..Creation time........................: 14:37
..Activation date......................: 2006-08-17
..Activation time......................: 14:36
..Completion date......................: 2006-08-17
..Completion time......................: 14:37

To list jobs failed during installation using filters, enter the following command:

cadsmcmd jobContainer action=listFailedJobs name=myContainer filter=”Job task=INSTALL”

The output is as follows:

-------------------------------------------------------------------------------

Job list of job container "myContainer" 
-------------------------------------------------------------------------------
Job name...............................: prod 2 1.0:inst
..Task.................................: install
..Overall state........................: ERROR
..Job order number.....................: 2
..Target...............................: KKKKK01A
....Job state..........................: EXECUTION_OK
..Target...............................: KKKKK01B
....Job state..........................: EXECUTION_ERROR

-------------------------------------------------------------------------------
Number of jobs read: 2
Number of jobs listed: 1
SDCMD<A000000>: OK