dslpdisable Command

Purpose

Disable print queue requests for a System V print subsystem.

Syntax

dslpdisable [ -r Reason ] PrintQueueName

Description

The dslpenable and dslpdisable commands are used to enable or disable a print queue from processing print requests that have been queued for it. Unlike the enable and disable commands, the directory-enabled commands can control remote print systems, so long as they are directory-enabled. This is because they write directly to the print queue object on the directory server.

Flags

Item Description
-r Reason Assign the reason for disabling the print queue. Strings containing whitespace should be double quoted.

Reason is a string that is displayed by the lpstat command. No default reason is set when one is not specified.

Parameters

Item Description
PrintQueueName

The PrintQueueName parameter is the RDN® of the print queue. This could be a list of print queues. If the print queue name does not exist in the directory context, the command fails.

Exit Status

0
Indicates success.
1
Indicates invalid options.
2
Indicates that the specified print queue is unknown.
3
Indicates that this user does not have modify permissions.
4
Indicates that an invalid RDN was supplied.
5
Indicates that the value is already set.
6
Indicates that the command is unable to contact the directory service
7
Indicates any other error.

Example

To disable print queue "printer1", specifying the reason "routine maintenance", enter the following:
dslpdisable -r "routine maintenance" printer1