Apple Mac OS X Server Network Card User Manual


 
168 Chapter 10 Working with the Print Service
For each job, the command lists:
 Document name
 Document size
 Job ID
 Submitting user
 Submitting host
 Job name
 Job state
 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:jobsArray:_array_index:0:printer =
queue
print:jobsArray:_array_index:0:idsArray:_array_index:0 =
jobid
Control-D
To release the job for printing, change its state to PENDING.
To release the job:
$ sudo serveradmin command
print:command = setJobState
print:status = PENDING
print:jobsArray:_array_index:0:printer =
queue
print:jobsArray:_array_index:0:idsArray:_array_index:0 =
jobid
Control-D
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 printer
setting. See “Listing Queues” on page 167.
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 page 167.