Specifications

Chapter 10 Working with the Print Service 173
Listing Queues
To list print service queues, use the serveradmin getQueues command.
$ sudo serveradmin command print:command = getQueues
Pausing and Releasing 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
To release a queue:
$ sudo serveradmin command
print:command = setQueueState
print:state = RESUMED
print:namesArray:_array_index:0 =
queue
Control-D
Listing Jobs and Job Information
To list information about print jobs, use the serveradmin getJobs command.
$ sudo serveradmin command
print:command = getJobs
print:maxDisplayJobs =
jobs
print:queueNamesArray:_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 173.
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 173.