Apple oxs Server User Manual


 
94 Chapter 9 Working With Print Service
Listing Jobs and Job Information
You can use the serveradmin getJobs command to list information about print jobs.
$ sudo serveradmin command
print:command = getJobs
print:maxDisplayJobs = jobs
print:queueNamesArray:_array_index:0 = queue
Control-D
For each job, the command lists:
Document name
Number of pages
Document size
Number of sheets
Job ID
Submitting user
Submitting host
Job name
Job state
Printing protocol
Job priority
Holding a Job
You can use the serveradmin setJobState command to hold or release a job.
To hold a job:
$ sudo serveradmin command
print:command = setJobState
print:status = HOLD
print:namesArray:_array_index:0:printer = queue
print:namesArray:_array_index:0:idsArray:_array_index:0 = jobid
Control-D
Parameter Description
jobs
The maximum number of jobs to list.
queue
The name of the queue. To find the name of the queue, use the
getQueues command and look for the value of the print
setting. See “Listing Queues” on page 93.
Parameter Description
queue
The name of the queue. To find the name of the queue, use the
getQueues command and look for the value of the print
setting. See “Listing Queues” on page 93.
jobid
The ID of the job. To find the ID of the job, use the getJobs
command and look for the value of the jobId setting. See “Listing
Jobs and Job Information” on this page.
LL2354.book Page 94 Monday, October 20, 2003 9:47 AM