The string value defined by LOC= is searched on with wildcards placed at both ends of the string, so LOC=Room1 would find any printer with ``Room1'' in its location, such as ``Building X, Room1, Bay6''. The string value can also have wildcards (*) embedded in it, for example LOC="Building X*Bay6". Multiple LOC values are OR'd in the search.
The following are valid command lines containing search strings:
dslpsearch -q -o PCL,ESCP,LOC=room2,COLOR
dslpsearch -q -p -o "PS, LOC='Building 1, Room1', DUPLEX"
The following searches for any print queues that match the search options in
the specified directory context:
dslpsearch -C context-dn -q -o search-options
The following searches for any physical printers that match the search options
in the current directory context:
dslpsearch -P -o search-options
The following searches for any physical printers that match the search options
in the specified directory context:
dslpsearch -C context-dn -P -o search-options