Listing Queues

You can use the serveradmin getQueues command to list print service queues.

$ sudo serveradmin command print:command = getQueues

Pausing a Queue

You can use the serveradmin setQueueState command to pause or release a queue.

To pause a queue:

$ sudo serveradmin command print:command = setQueueState print:state = PAUSED print:namesArray:_array_index:0 = queue 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.

 

 

To release the queue:

$ sudo serveradmin command

print:command = setQueueState

print:state = RESUMED

print:namesArray:_array_index:0 = queue

Control-D

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

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 printer

 

setting. See “Listing Queues” on page 167.

 

 

Chapter 10 Working with the Print Service

167

Page 167
Image 167
Apple Mac OS X Server manual Listing Queues, Pausing a Queue, Listing Jobs and Job Information, To pause a queue