« They seemed to have heard me | Main | Acrobat 9 Pro for the Mac is out »

Stupid lpadmin tricks with Apple Remote Desktop

Lately at work, I'd been working on getting people off of LPD and PAP onto IPP. IPP provides pap-like functionality, only over TCP/IP, which makes my network traffic simpler. Simpler is good, makes troubleshooting easier.

The potential annoying part was the process I was looking at:

  1. Delete "old" printer via lpadmin -x

  2. Add IPP printer via lpadmin
Admittedly, a two-step process is not hard but I still had to get the existing printer names from CUPS on each machine, blah blah.

Then, rather accidently, on my test machine, (read: John's MacBook Pro), I added a printer via lpadmin with the same name as the existing one, but IPP instead of LPD. Took a look at printers.conf, and realized that I'd just changed the queue type. So now, I had a one step process: Add new printer with same name as existing printer as IPP. So, I set up the command templates in ARD:

lpadmin -p "printername" -v "printer ipp uri" -D "description which is human friendly and used as the 'name' by Mac OS X" -E -P "path to ppd" -o printer-is-shared=false

For some reason, when I add a printer in Mac OS X 10.5 via lpadmin, it likes to set it up as a shared printer, regardless of Printer Sharing state. To prevent that, I use the -o printer-is-shared=false switch.

I realize this is not some earthshattering discovery, but, it gets it into the great Google Tech Support Database, and maybe helps someone save time.

Remember folks, a good sysadmin is a relentlessly lazy sysadmin.


Technorati Tags:
, , ,


Categories:     Mac Matters, Network Notes
Posted by John C. Welch at 12:47 | Permalink



Comments

Warning for Notes users: The commenting system uses HTML.
I know this will be scary for some of you, especially Notes fans. However, open standards, rah-rah.
If you want to use less-than or greater-than signs, or other similar charachters that HTML reserves,
you'll simply have to learn to do it the HTML way. Luckily, HTML is kind of popular, no matter what
your re-educators have told you, and you can easily find help on the intertubes.
digital.forest Where Internet solutions grow

There, a PayPal Button.

 
Use this code for your Macworld tickets!
Family
The Artwork of Melissa Findley
Diane Francis @ the National Post Eric Francis @ the Calgary Sun

Apple Amazon Links
Apple Mac OS X Server 10.5 [Unlimited]

Apple Mac OS X Server 10.5 [10-Client]

Apple Mac OS X 10.5 Leopard

Apple Mac OS X 10.5 Leopard [5-User Family Pack]

Amazon Book Links
Legacy of Ashes: The History of the CIA

The Donnas: Bitchin'

Wizards at War (The Young Wizards, Book 8)

The Demon's Sermon on the Martial Arts

The Collected Stories of Arthur C. Clarke

JavaScript and Ajax for the Web, Sixth Edition

Awakening Warrior: Revolution in the Ethics of Warfare

FOB Links

Mac Web Writers

Techie Links

Review Victims