Enabling or Disabling ALL Printers at once with Mac OS or Linux

KB Home   |   Enabling or Disabling ALL Printers at once with Mac OS or Linux

Main.EnableDisableAllPrintersMacLinux History

Hide minor edits - Show changes to output

December 17, 2015, at 07:41 PM by timg - Created article for Support Tip of the Week
Added lines 1-28:
(:title Enabling or Disabling ALL Printers at once with Mac OS or Linux:)

!!Want to enable or disable all of your printers at once on Mac/Linux?

When installing PaperCut on Mac or Linux, you'll need to run the [[https://www.papercut.com/kb/Main/AddingAPrinterOnTheMac|Control Printer Monitoring.command]] (Mac) or [[https://www.papercut.com/products/ng/manual/ch-linux.html#linux-install-print-queue-integration|configure-cups]] program (Linux) in order to enable monitoring of those printers in PaperCut. This system works well since it gives you complete control over which printers are monitored and which are not.

If you're installing PaperCut on a machine which has many (possibly hundreds) of print queues, then it takes a while to select 'E' for 'Enable' for each of the printers. In this case, there's a shortcut. The below commands will add or remove all your print queues to/from PaperCut monitoring. You'll need to open a command prompt (e.g. 'Terminal' on the Mac) to run these commands, and you'll need to have your print queues already set up, and the PaperCut Print Provider installed.

In this case the example Print Provider path is Mac based (and MF based), but the same applies for the Linux environment (and NG):

This will enable all your printers:\\
@@[=cd /Applications/PaperCut\ MF/providers/print/mac/=]@@\\
@@sudo ./configure-cups add-all 2>&1@@

This will disable all your printers:\\
@@[=cd /Applications/PaperCut\ MF/providers/print/mac/=]@@\\
@@sudo ./configure-cups remove-all 2>&1@@

These commands do the equivalent of running the configure-cups utility, and selecting 'E' for 'Enable' for every printer, or 'D' for 'Disable' for every printer in the list.

To always ignore a particular printer, take a look at the '[[https://www.papercut.com/products/ng/manual/ch-printer-mgmt.html#ch-printer-mgmt-add-remove-printer|Adding and Removing/Deleting/Ignoring Printers]]' article.

On Windows, the printers are automatically detected by the Print Provider, so there is no need to add them specifically to PaperCut for monitoring. To ignore printers in windows, refer to the '[[https://www.papercut.com/products/ng/manual/ch-printer-mgmt.html#ch-printer-mgmt-add-remove-printer|Adding and Removing/Deleting/Ignoring Printers]]' article.

''Categories:'' [[Category.Printers|+]], [[Category.Administration|+]], , [[Category.Implementation|+]], [[Category.TipsAndTricks|+]], [[Category.Mac|+]]
[-Keywords: bulk, update, add printers, batch, script -]


Share your findings and experience with other PaperCut users. Feel free to add comments and suggestions about this Knowledge Base article. Please don't use this for support requests.

Article last modified on September 15, 2016, at 08:37 PM
Printable View   |   Article History   |   Edit Article