CUPs automation


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers CUPs automation
# 1  
Old 11-19-2013
CUPs automation

A little background information:

We are a company that uses Sharp MFP devices for everyone to print on.
We have a lot of MAC BYOD devices.
All printing is done through a product called PaperCut which is ran on a Windows 2008 R2 server.
Sharp charges our company for each print job done in color (including grayscale), so we charge our agents (non employees) to print in color.

We have a process that the agents follow to install our Sharp printers on their MAC devices and the printer install uses a script like:

Code:
#!/bin/sh

#   FCT01_2ND_KITCHEN.command
#	Script to verify all print drivers have been previously installed, install the Papercut Client if needed, and install the printers for the selected office.
#   Created by James M on 10/12/12.


#
#	Clear all previous output on the terminal window.
#
	Clear
	
#
#	Make sure that the Sharp print drivers have been installed on the computer prior to letting the printers install
#
	if [ -e "/Library/Printers/PPDs/Contents/Resources/SHARP MX-5111N.PPD.gz" ]; then
		printf "You have properly installed the Sharp Print Drivers.  Now we need to verify the PaperCut Client Software is installed." \

    else
		clear
		printf "You must have the Sharp Print Drivers installed before installing the printers on your computer.  Please close this windows then return to the TuckerToolBox and install the drivers" \
		sleep 30
		exit
    fi


#
#	Make sure that the PCCLient has been installed on the computer prior to letting the printers install
#
	if [ -d /Applications/PCClient.app ]; then
		printf "You have properly installed the PaperCut Client.  Lets install your printers." /
    else
		clear
		printf "You must have the PaperCut Client installed before installing the printers on your computer.  Please close this windows then return to the intranet and install the PaperCut Client" \
		sleep 30
		exit
    fi


#
#   use LPADMIN to map the printer
#

Clear 


	/usr/sbin/lpadmin -p "FCT01_2ND_KITCHEN_BW" -E -v lpd://10.100.5.2/FCT01_2ND_KITCHEN_BW -P "/Library/Printers/PPDs/Contents/Resources/SHARP MX-M753N.PPD.gz" -D "FCT01_2ND_KITCHEN_MAC_BW"
	/usr/sbin/lpadmin -p "FCT01_2ND_KITCHEN_WHITE" -E -v lpd://10.100.5.2/FCT01_2ND_KITCHEN_WHITE -P "/Library/Printers/PPDs/Contents/Resources/SHARP MX-5111N.PPD.gz" -D "FCT01_2ND_KITCHEN_MAC_COLOR"


Clear

exit


The issue is that most users have it setup to remember last settings on their printers, thus if they print color, then black and white, it still prints in color. The agents are getting charged for what should be black and white. Also all black and white jobs are printing in grayscale not black and white.


We can manually fix this by initiating CUPs and then making changes to CUPs for the correct print queues, but we have hundreds of queues and it could take us MONTHS to change everyone, and if they uninstall and reinstall the printers from the intranet they are back to printing color for free and getting us charged for black and white.

What is the process to add CUPs commands to the printer install or what other way can be tried to fix these issues.



Sorry if this is a n00b question, but I am NOT a Unix user in any way shape or form.
# 2  
Old 11-19-2013
Have you checked the CUPS website? Their command-line documentation is very informative. You should be able to locate the options to perform your task.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

CUPS and Default Router

Hi everyone, new to the forums. So more manufacturers are doing away with the default router setting in their user interface and CUPS will not print with no/incorrect default router setting. Is there any way around this? Currently using OpenServer 6 on CUPS version 1.3.9 Thanks. (6 Replies)
Discussion started by: Paulbas
6 Replies

2. UNIX for Advanced & Expert Users

CUPS has gone away

I cannot access CUPS When I try http://localhost:631/ I receive This site can't be reached localhost refused to connect. I have purged and reinstalled CUPS and rebooted. It did not help. (14 Replies)
Discussion started by: Meow613
14 Replies

3. UNIX for Dummies Questions & Answers

CUPS configuration

Hi, I just set up a CUPS server for my printers and want every computer in my home to use it. To connect to the print server with my Ubuntu 14.04 as a client which possibilities are there, if I don't want to use a client.conf in /etc/cups/ (1 Reply)
Discussion started by: Gajeela
1 Replies

4. Solaris

CUPS problems

I am running cups 2.0.2 on solaris 11, trying to get CUPS to report the page count of what was printed correctly. Right now I have the printer configured as post script both on solaris and on the windows box i am printing from. What happens is that when i print more pages than 2, the page count... (0 Replies)
Discussion started by: matt99199
0 Replies

5. UNIX for Advanced & Expert Users

Troubleshooting printing through Cups

Hello Experts, I have been facing an issue with printing through cups configured on Linux server. All was going on well but all of a sudden the printers started giving an error message, "Unsupported format application/postscript!" and we cant get any prints of any printer. Need your help as... (2 Replies)
Discussion started by: Rockyc3400
2 Replies

6. UNIX for Dummies Questions & Answers

how does cups recognize a new driver?

hi there, i am attempting to recognize a network printer on my red hat box. i know the IP, i have procured the correct driver, however, CUPS (nor the add printer utility) doesn't recognize the driver nor the printer type. i am assuming this has to do with the location of the driver. can anyone... (8 Replies)
Discussion started by: vickenyon
8 Replies

7. HP-UX

Installation of CUPS in HP-UX

Hi, Can anybody provide me the download link for CUPS on HP-UX 11i? and point me where i can get thorough help or howtos, certainly detailed, to get cups and hopefully my printer running? Thanks in advance. (6 Replies)
Discussion started by: meeraramanathan
6 Replies

8. AIX

Installation of CUPS in AIX

Hi, In cups.org, it is said CUPS 1.1.9 adds support for AIX, adds several performance improvements to the scheduler, adds support for the Apache Include directive, adds new HideImplicitMembers and ImplicitAnyClasses directives, stores user-defined options as differences from the system-defined... (3 Replies)
Discussion started by: meeraramanathan
3 Replies

9. UNIX for Advanced & Expert Users

Cups print server

I have just installed cup printing software on solaris 8 and i am able to print successfully from the print server but unable to print from any of the print client in my local network subnet. i have enable browsing so that cups printer server could broadcaste itself to client. but still unable to... (1 Reply)
Discussion started by: hassan2
1 Replies
Login or Register to Ask a Question