Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiple printers



On Nov 29, 2005, at 8:38 AM, Jerry Goedhart wrote:

Our setup is similar to yours 10.4.2 server with 10.3.9 clients no print server running. We have all brother printers that the clients can use. Six that consist of (HL-1870n, HL-5170dn, HL-2700cn, HL-6050dn). We tried to manage them by assigning them to the groups of users that we had established. We had the same results that you are experiencing. Every time a user would log in all the printers that were assigned to them would populate the client computer. When the user would log out the printers would not be deleted so eventually we would have a large number of duplicate printers in the printer setup. At one time there was as many as 185 printers in the list. It affected log in times as well as printing problems. Log in times went from 12 seconds to over a minute.

When I was building my 10.4-based image I had read about this issue somewhere online. I decided to not even try managed printing. I created a shell script that sets up the appropriate printers for each computer the first time someone logs in after imaging.


The client hostnames are in a "room-##" format (like 133-01), so the script gets the hostname, parses for the room, and sets booleans to true for the printers I've chosen for that room. Then, it's a bunch of these:

if [ $faculty2101 = true ] ; then
echo "FacultyWorkroom2101"
/usr/sbin/lpadmin -p "FacultyWorkroom2101" -E -v "lpd:// 172.18.191.236/" -P /Library/Printers/PPDs/Contents/Resources/ en.lproj/Fiery\ EX2101\ PS -o EFHCFOpt=HCF -o EFPunchOption=P3
fi


Making the lpadmin statements is a pain. Note the various '-o' statement. These are the various options for each printer, like a high-capacity feeder tray. To get the syntax for these statements you have to look at the PPDs themselves, because the option names (like "EFHCFFOpt") are printer-specific.

Once I went through the annoyance of writing the script, this has worked fine.

BTW, if you're just looking for a file to copy, the current printers appear to be set up in /etc/cups/printers.conf. If you set up one computer, distribute that file and restart the others, I think you'll get an identical setup.

Matt


=================================================================================== CONFIDENTIALITY NOTICE: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. If you are not the intended recipient, you may not review, copy or distribute this message. If you have received this email in error, please notify the sender immediately and delete the original message. Neither the sender nor the company for which he or she works accepts any liability for any damage caused by any virus transmitted by this email. =================================================================================== _______________________________________________ Do not post admin requests to the list. They will be ignored. Client-management mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/client-management/email@hidden

This email sent to email@hidden
References: 
 >multiple printers (From: "Terri Barb" <email@hidden>)
 >Re: multiple printers (From: Jerry Goedhart <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.