[cups.general] list of cups servers and queues
henri
henri at stmargarets.school.nz
Thu Dec 10 14:15:32 PST 2009
> I have a CUPS environment with multiple servers. Can someone tell the
> command I can use to get a list of the server names and their queues. I can see the different servers in the Web interface but need a list of
> servers/queues in a terminal window so the info can be used in another
> application we are working on.
The command listed below is from one of the handy script examples included with PrinterSetup <http://www.lucidsystems.org/printingworks/printersetup>
lpstat -p 2> /dev/null | cut -d' ' -f2 | grep -v -e "@"
The above command will provide a list of print queues configured on the local system. I think this solves part of your problem.
More information about the cups
mailing list