HP-UX Reference (11i v1 05/09) - 1 User Commands N-Z (vol 2)
p
pdclean(1) pdclean(1)
(TO BE OBSOLETED)
NAME
pdclean - removes all jobs from the specified object
SYNOPSIS
pdclean -h
pdclean
[-c ObjectClass][
-m "MessageText" ][-x "
AttributeValuePairs
" ]
[
-X AttributesFileName]
{ ServerName ...
|[ServerName
:]PrinterName ...
|[ServerName
:]QueueName ... }
DESCRIPTION
Use this administrative command,
pdclean, to remove all jobs from the specified servers, logical printers,
queues, or physical printers. If you are removing jobs from a server, any
job-retention-period
attribute values are ignored. For all other conditions, the
job-retention-period
is honored. If you
are removing jobs from a logical printer, all jobs that have been submitted to it are removed from the
queue. If you are removing jobs from a queue, all jobs that are contained in that queue are removed from
the queue.
Jobs that are in the middle of printing are aborted, if possible.
HPDPS issues a confirmation message prior to cleaning the object, unless your environment variable
PD_CONFIRM_DELETE
has a value of no.
Options
Use the following options with the
pdclean command:
-c ObjectClass
Specify the object class you want for this command. The ObjectClass can be one of the following:
printer (default)
queue
server
Within the valid classes, server is for a spooler or a supervisor, and printer is for a logical or
physical printer.
This option is equivalent to the command-attribute
class.
-h Display a command-specific help message containing information about command syntax and options.
This option cannot be used with another option or with an attribute.
-m "MessageText"
Specify the message that is to be associated with the ObjectClass specified: printer, queue
,or
server. You can use this message to indicate the reason why the printer,
queue,orserver is
being cleaned or to provide other comments.
This option is equivalent to specifying the command-attribute
message.
List this message by specifying
requested-attributes=message
with the pdls command.
-x "AttributeValuePairs"
A single attribute string, consisting of one or more attribute-value pairs.
-X AttributesFileName
The name of a file containing attribute-value pairs that you want inserted at the current point in the
command line. This option is equivalent to specifying the command-attribute attributes .
Command Attributes
You may specify these attributes in a -x "AttributeValuePairs" string or in an attributes file designated
with the
-X AttributesFileName option.
attributes= AttributesFileName
Cause the designated attributes file to be read.
class=ObjectClass
Specify the ObjectClass that you want for this command. Valid object class names for the pdclean
command are: printer, queue,orserver. Within the valid classes, server is for a spooler or
supervisor, and printer is for a logical or physical printer.
HP-UX 11i Version 1: September 2005 − 1 − Hewlett-Packard Company Section 1−−707