![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/9/5f/95f4ad5f-b41c-4737-881a-dfb88a5da594/95f4ad5f-b41c-4737-881a-dfb88a5da594-bg5e.png)
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