Previous Topic: listFailedJobs—List Failed Jobs Related to Target ComputersNext Topic: listInst—List Installed Products


Examples

Launching the following command

cadsmcmd targetComputer action=listFailedJobs name=comp1

results in the following output:

-------------------------------------------------------------------------------
List of failed jobs for computer "comp1"
-------------------------------------------------------------------------------

tstkpk02 1.0:instCrash (EXECUTION_ERROR)

Total number of jobs read: 5
Total number of jobs shown 1
SDCMD<A000000>: OK

When launching the command

cadsmcmd targetComputer action=listFailedJobs name=comp1 detailed

then the following list is received:

-------------------------------------------------------------------------------
List of failed jobs for computer "comp1"
(detailed)
-------------------------------------------------------------------------------
Computer job identifier................: 0C42D0D1-3E32-4974-8F47-E7220805BC4A
..Job name.............................: tstkpk02 1.0:instCrash
..Item name............................: tstkpk02
..Item version.........................: 1.0
..Procedure name.......................: instCrash
..Computer installation procedure......: instCrash
..Ordered by...........................: winnt://comp1/administrator
..Created at...........................: 2006-10-19 15:41
..Started at...........................: 2006-10-19 15:41
..Terminated at........................: 2006-10-19 15:41
..State................................: EXECUTION_ERROR
..Error cause..........................: 228001
..Error message........................: Exit code 2 indicates possible error

..Job output...........................: No output available for this job.

Total number of jobs read: 5
Total number of jobs shown 1
SDCMD<A000000>: OK

And when launching the following command

cadsmcmd targetComputer action=listFailedJobs name=comp% alt

then the following list is received:

-------------------------------------------------------------------------------
List of failed jobs "comp%"
-------------------------------------------------------------------------------
Target.................................: comp0
..Job name.............................: tstkpk01 1.0: inst
..Job identifier.......................: 23131B7D-AAE2-4878-A33B-563E473FF37E
..Item name............................: tstkpk01
..Item version.........................: 1.0
..Procedure name.......................: inst
..Task.................................: install
..User parameters......................:
..Job state............................: DELIVERY_ERROR
..Error code...........................: 228432
..Error message........................: Sending message to computer <130.11
.........................................+ 9.101.163> failed.
..Creation date........................: 2006-10-20
..Creation time........................: 17:16
..Activation date......................: 2006-10-20
..Activation time......................: 17:15
..Completion date......................: 2006-10-20
..Completion time......................: 17:16
Target.................................: comp1
..Job name.............................: tstkpk02 1.0:instCrash
..Job identifier.......................: 0C42D0D1-3E32-4974-8F47-E7220805BC4A
..Item name............................: tstkpk02
..Item version.........................: 1.0
..Procedure name.......................: instCrash
..Task.................................: install
..User parameters......................:
..Job state............................: EXECUTION_ERROR
..Error code...........................: 228001
..Error message........................: 2
..Creation date........................: 2006-10-19
..Creation time........................: 15:41
..Activation date......................: 2006-10-19
..Activation time......................: 15:41
..Completion date......................: 2006-10-19
..Completion time......................: 15:41


-------------------------------------------------------------------------------
Total number of items: 2
SDCMD<A000000>: OK

To receive the list of failed jobs for computer "test01" with job state as "Execution_Error" using filters, enter the following command:

cadsmcmd targetcomputer action=listfailedjobs name=test01 filter="Job state=EXECUTION_ERROR"

The output is as follows:

--------------------------------------------------------------------------
List of failed jobs for computer "test01"
--------------------------------------------------------------------------
CA DSM Agent + AM, RC, SD plugin(s) (ENU) Win32 12.0.0.4860:Install (EXECUTION_ERROR)
CA DSM Agent + AM, RC, SD plugin(s) (ENU) Win32 12.0.0.4860:Install (EXECUTION_ERROR)
CA DSM Agent + AM, RC, SD plugin(s) (ENU) Win32 12.0.0.4860:Install (EXECUTION_ERROR)

Total number of jobs read: 16
Total number of jobs shown 3
SDCMD<A000000>: OK