HP-UX Reference (11i v1 05/09) - 1 User Commands N-Z (vol 2)
p
pdls(1) pdls(1)
(TO BE OBSOLETED)
All of these will return jobs owned by "Jones".
• To list jobs owned by all users with a name close to "Jones" (approximate match), enter the command:
pdls -U -f "job-owner˜=jones" SPOOL1:
• To list all jobs which have requested more than one copy and that have been assigned to the
lj4pp
physical printer, enter the command:
pdls -U -f "copy-count>1 && printer-assigned==lj4pp" "*:"
To Determine the Server Associated with a Printer
• To query for the name of the spooler containing logical printer
LogPrt1, enter one of the following
commands:
pdls -c printer -r associated-server LogPrt1
pdls -x "class=printer requested-attributes=associated-server"
LogPrt1
HPDPS returns information similar to the following:
LogPrt1: associated-server=SPOOL1
To Determine the Attributes Specified in an IVO
• To query for the attributes specified in the initial value document spl7ivd
contained in SPOOL7,
enter one of the following commands:
pdls -c initial-value-document -r all SPOOL7:spl7ivd
pdls -x "class=initial-value-document requested-attributes=all"
SPOOL17:spl17ivd
HPDPS returns information similar to the following:
spl7ivd: initial-value-document-identifier = spl7ivd
spl7ivd: associated-server = SPOOL7
spl7ivd: object-class = initial-value-document
spl7ivd: copy-count = 2
spl7ivd: document-format = line-data
spl7ivd: descriptor = "IVD for SPOOL7"
List Job Attributes
• To list all the attributes of jobs 10 and 12, enter the command:
pdls -r all 10 12
• To list just the job attributes of jobs 10 and 12, enter the command:
pdls -j 10 12
A Combined Example
In the following examples, which show printers as the command arguments, assume that the logical printer
named DepartPrt is your default logical printer as defined in your PDPRINTER environment variable
and that it sends input to the queue associated with the physical printers LaserJet5 and 3825X.
List Status of All Jobs
• To list the status of all jobs you have submitted to the logical printer DepartPrt, enter the command:
pdls -f "printer-name-requested==DepartPrt" SPOOL1:
The following is displayed:
Current Intervening Printer Printer
Job ID Name State Jobs Requested Assigned
--- -------------- ---------- --------- ----------- --------- --------
4 SplX: 1099222204 Mthly-report processing 0 DepartPrt 3825X
5 SplX: 1114222205 Test-report processing 0 DepartPrt LaserJet3
6 SplX: 1224222206 Trip-report pending 2 DepartPrt
1 SplX: 0988222201 Dept-memo12 retained DepartPrt
HP-UX 11i Version 1: September 2005 − 8 − Hewlett-Packard Company Section 1−−729