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
usb-devices(1)							Linux USB Utilities						    usb-devices(1)

NAME
usb-devices - print USB device details SYNOPSIS
usb-devices DESCRIPTION
usb-devices is a (bash) shell script that can be used to display details of USB buses in the system and the devices connected to them. The output of the script is similar to the usb/devices file available either under /proc/bus (if usbfs is mounted), or under /sys/ker- nel/debug (if debugfs is mounted there). The script is primairily intended to be used if the file is not available. In contrast to the usb/devices file, this script only lists active interfaces (those marked with a "*" in the usb/devices file) and their endpoints. Be advised that there can be differences in the way information is sorted, as well as in the format of the output. RETURN VALUE
If sysfs is not mounted, a non-zero exit code is returned. FILES
/sys/bus/usb/devices/usb* The part of the sysfs tree the script walks through to assemble the printed information. /proc/bus/usb/devices Location where the usb/devices file can normally be found for Linux kernels before 2.6.31, if usbfs is mounted. /sys/kernel/debug/usb/devices Location where the usb/devices file can normally be found for Linux kernel 2.6.31 and later, if debugfs is mounted. SEE ALSO
lsusb(8), usbview(8). AUTHORS
Greg Kroah-Hartman <greg@kroah.com> Randy Dunlap <rdunlap@xenotime.net> Frans Pop <elendil@planet.nl> usbutils-001 23 June 2009 usb-devices(1)
All times are GMT -4. The time now is 07:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy