HP Distributed Print Service User's Guide

Chapter 3 47
Command Reference
Command Syntax
The first -r flag from Table 3-4 can accept multiple values for the
"AttributesList" and for another value (e.g. brief) shown for the flag.
You use a comma-delineated listing with the -r flag to achieve an
additive AttributesList, meaning all values are used.
Using both the -r flag with multiple values and the command-
attribute requested-attributes in the same command may result
in a loss of additivity. Multiple -r values are additive, but the use of
the command-attribute replaces values specified by the -r flag unless
its value is specifically requested to be additive, as shown in the last
example in the next section.
Examples Using Command Flags
The following examples show a few ways to use the -r flag, the -x flag,
or both in the same pdls command.
This example shows two ways to request the names of the logical
printers and queues supported in a spooler.
pdls -c server -x "requested-attributes= \
logical-printers-supported queues-supported" \
SPOOL2
pdls -c server -r logical-printers-supported,\
queues-supported SPOOL2
The first example uses the command attribute requested-
attributes while the second example uses the -r flag which
replaces "-x requested-attributes=".
In this example, the attribute values for both logical-printers-
supported and queues-supported are requested with separate -r
flags. As a result, the first value is overridden by the second.
pdls -c server -r logical-printers-supported \
-r queues-supported SPOOL2
The end result is that the only value returned is the value for
queues-supported.
In this example, the attribute values for both logical-printers-
supported and queues-supported are requested but are
overridden by the command-attribute requested-attributes
being entered with the -x flag.
pdls -c server \
-r logical-printers-supported,queues-supported \
-x "requested-attributes=physical-printers-ready" \
SPOOL2