I'm beginning the investigation of an overhaul of our printing environment here, and I'm having a bit of trouble getting a foothold in our HP systems, so I'm hoping someone can offer some guidance.
I can't find any documentation so far that indicates whether HP-UX accepts the "printers" entry in the nsswitch.conf file like our Sun systems do, or if it queries printers.org_dir - a "tusc" of the lpstat command shows it inquiring with nsswitch.conf, so it seems like it may, but if anyone can point me to something definitive about setting up printers in an NIS+ database, I'd appreciate it.
Thanks!
Note: If you are the author of this question and wish to assign points to any of the answers, please login first.For more information on assigning points ,click
here
Not sure if this is the same as yours but my NIS has a printers map that just has a list of remote printers. There is a script that will add these printers to each system in the lab, through lpadmin(1m).
No wonder I'm confused. The Solaris FAQ documentation about the printers.org_dir table is flat out FALSE.
I got my first clue when I traced an lpstat command through Ethereal to our HP NIS+ server, and saw it asking for a column named "key" rather than "printer_name" as found in the FAQ.
Then I sifted through OpenSolaris source code for the lpset command, which is capable of creating the NIS+ printers.org_dir table if it doesn't exist, and found that the only two columns in the printers.org_dir table are called "key" and "datum."
The "key" appears to be the name of the printer, and the "datum" column is the full colon-delimited line from printers.conf.
Still not quite clear yet whether HP-UX can use printers.org_dir, but at least I'm making some headway.