Sponsored Content
Full Discussion: CUPs automation
Top Forums UNIX for Dummies Questions & Answers CUPs automation Post 302875413 by jdmorecraft on Tuesday 19th of November 2013 12:06:48 PM
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.
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
cancel(1)																 cancel(1)

NAME
cancel - cancel print request SYNOPSIS
cancel [ request-ID...] [destination...] cancel -u user... [destination...] The cancel utility cancels print requests. There are two forms of the cancel command. The first form of cancel has two optional arguments: print requests (request-ID) and destinations (destination). Specifying request-ID with destination cancels request-ID on destination. Specifying only the destination cancels the current print request on destination. If desti- nation is not specified, cancel cancels the requested print request on all destinations. The second form of cancel cancels a user's print requests on specific destinations. Users can only cancel print requests associated with their username. By default, users can only cancel print requests on the host from which the print request was submitted. If a super-user has set user-equivalence=true in /etc/printers.conf on the print server, users can cancel print requests associated with their username on any host. Super-users can cancel print requests on the host from which the print request was submitted. Superusers can also cancel print requests from the print server. The print client commands locate destination information using the printers database in the name service switch. See nsswitch.conf(4), printers(4), and printers.conf(4) for details. The following options are supported: -u user The name of the user for which print requests are to be cancelled. Specify user as a username. The following operands are supported: destination The destination on which the print requests are to be canceled. destination is the name of a printer or class of printers (see lpadmin(1M)). If destination is not specified, cancel cancels the requested print request on all destinations. Specify destination using atomic or POSIX-style (server:destination), names. See for information regarding using POSIX-style des- tination names with cancel. See standards(5) for information regarding POSIX. request-ID The print request to be canceled. Specify request-ID using LP-style request IDs (destination-number). user The name of the user for which the print requests are to be cancelled. Specify user as a username. The following exit values are returned: 0 Successful completion. non-zero An error occurred. /var/spool/print/* LP print queue. $HOME/.printers User-configurable printer database. /etc/printers.conf System printer configuration database. printers.conf.byname NIS version of /etc/printers.conf. printers.org_dir NIS+ version of /etc/printers.conf. See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWpcu | +-----------------------------+-----------------------------+ lp(1), lpq(1B), lpr(1B), lprm(1B), lpstat(1), lpadmin( 1M), nsswitch.conf(4), printers(4), printers.conf(4), attributes(5), standards(5) POSIX-style destination names (server:destination) are treated as print requests if destination has the same format as an LP-style request- ID. See standards(5). Some print servers send cancelation notification to job owners when their print jobs have been cancelled. This notification usually comes in the form of an email message. Cancelation notices cannot be disabled on a Solaris server. 23 Feb 2005 cancel(1)
All times are GMT -4. The time now is 06:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy