These are chat archives for PaperCutSoftware/PaperCutExamples

29th
Aug 2018
Alec Clews
@alecthegeek
Aug 29 2018 22:32 UTC

Hello Peeps, I just published a new script to our repo that might be useful. It prints out a csv list of all the printers on the system plus the value of specified printer attribute. For instance on my machine if you run the command
./csvListOfPrintersAndPropertyValue.sh advanced-config.fail.action you get this list

"laptop-alec","CamberwellOfficePrinter","PRINT_NEW_NO_REPLAY"
"laptop-alec","Epson","PRINT_NEW_NO_REPLAY"
"laptop-alec","Epson_WF_R8590","PRINT_NEW_NO_REPLAY"
"laptop-alec","fake_printer","PRINT_NEW_WITH_REPLAY"
"laptop-alec","HP_Photossmart_5520","PRINT_NEW_NO_REPLAY"
"laptop-alec","RISO_FW","PRINT_NEW_NO_REPLAY"
"laptop-alec","RISO_GD_9630","PRINT_NEW_NO_REPLAY"
"laptop-alec","Sindoh_N610","PRINT_NEW_NO_REPLAY"
"laptop-alec","SindohM612","PRINT_NEW_NO_REPLAY"
"laptop-alec","Virtual","HOLD"

You can find the script here

https://github.com/PaperCutSoftware/PaperCutExamples/blob/master/PublicWebServicesAPI_AND_servercommandScripts/csvListOfPrintersAndPropertyValue.sh

For a list of printer properties you can use see

https://github.com/PaperCutSoftware/PaperCutExamples/wiki/Get-Set-Advanced-Printer-Properties

Extra points if you port this to MS Powershell