HP Distributed Print Service Administration Guide

356 Chapter11
Managing Jobs and Supporting Users
Determining Job States and Job Status
Querying for Specific Job-Status Attributes
Sometimes the previous job state, as reported by the
previous-job-state attribute, can also be helpful as shown in Table
11-4.
You will notice that there are no job-state-reasons for the first two
current-job-state attributes of the first job. The job-state-reasons
attribute only has a value for particular circumstances, such as the job
was submitted but held, or when there is some problem with the job,
such as the job cannot be scheduled.
To query the status of a job and to receive the values for all three of the
job state attributes, enter:
Table 11-4 Normal Job States
current- job-state previous-job-state job-state-reasons
Example 1: Job with a retention period successfully printed.
pdpr -x "retention-period=10" file1.txt
pending preprocessing
processing pending
retained processing completed-with-errors
completed-with-warnings
Example 2: Job submitted with job-hold set to true.
pdpr -x "job-hold=true" file1.txt
held preprocessing job-hold-set
Example 3: Job submitted with a job-print-after time specified.
pdpr -x "job-print-after=15:30:00" file1.txt
held preprocessing job-print-after-specified
Example 4: Job cancelled and given a retention period.
pdrm -r 1:00 10
retained terminating cancelled-by-user
cancelled-by-operator