Previous Topic: listFailedJobs—List Failed JobsNext Topic: listJobs—List Jobs


Example
C:\>cadsmcmd local mydomain swlibrary action=listfailedjobs item=tstprod version=1.5 procedure=inst

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 

-------------------------------------------------------------------------------
List of jobs "tstprod 1.5:inst" 
-------------------------------------------------------------------------------
Job name........: tstprod 1.5:inst
..Job identifier........: 19438
..Job state........: ERROR
..Job order number........: 0
..Job task........: 1 - install
..Creation date........: 2005-02-14
..Creation time........: 11:13
..Delivery date........: 2005-02-14
..Delivery time........: 11:13
..Activation date........: 2005-02-14
..Activation time........: 11:13
..Targetsystem........: ZZZZ01B
....Computer job identifier........: 19470
....State........: EXECUTION_ERROR

....Error message........: Exit code 2 indicates possible error
....Error cause........: 228001
....Completion date........: 2005-02-14
....Completion time........: 11:14
Job name........: tstprod 1.5:inst
..Job identifier........: 19446
..Job state........: ERROR
..Job order number........: 2
..Job task........: 1 - install
..Creation date........: 2005-03-17
..Creation time........: 12:23
..Delivery date........: 2005-03-17
..Delivery time........: 12:23
..Activation date........: 2005-03-17
..Activation time........: 12:23
..Targetsystem........: ZZZZ01A
....Computer job identifier........: 19485
....State........: EXECUTION_ERROR
....Error message........: Exit code 2 indicates possible error
....Error cause........: 228001
....Completion date........: 2005-03-17
....Completion time........: 12:25


SDCMD<A000000>: OK

To list the failed jobs with Job order number as 0, enter the following command:

cadsmcmd swlibrary action=listfailedjobs item=tstprod version=1.5 procedure=inst filter=”Job order number=0”

The list returned is as follows:

-------------------------------------------------------------------------------
List of jobs "tstprod 1.5:inst" 
-------------------------------------------------------------------------------
Job name........: tstprod 1.5:inst
..Job identifier........: 19438
..Job state........: ERROR
..Job order number........: 0
..Job task........: 1 - install
..Creation date........: 2005-02-14
..Creation time........: 11:13
..Delivery date........: 2005-02-14
..Delivery time........: 11:13
..Activation date........: 2005-02-14
..Activation time........: 11:13
..Targetsystem........: ZZZZ01B
....Computer job identifier........: 19470
....State........: EXECUTION_ERROR
....Error message........: Exit code 2 indicates possible error
....Error cause........: 228001
....Completion date........: 2005-02-14
....Completion time........: 11:14

SDCMD<A000000>: OK