Jump to content
 English      
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
     Forums advanced search
HP.com Home
IT Resource Center Forums > HP-UX > system administration

HP-UX 11i v1 - NIS+ printers.org_dir?

» 

IT Resource Center

» Login
» Register
» My profile
» Search knowledge base
» Forums
» Patch database
» Download drivers, software and firmware
» Warranty check
» Support Case Manager
» Software Update Manager
» Training and Education
» More maintenance and support options
» Online help
» Site map

Member icons
 
 HP moderator  HP moderator
 Expert in this area  Expert in this area
Member status
ITRC Pro ITRC Pro
250 points
ITRC Graduate ITRC Graduate
500 points
ITRC Wizard ITRC Wizard
1000 points
ITRC Royalty ITRC Royalty
2500 points
ITRC Pharaoh ITRC Pharaoh
7500 points
Olympian Olympian
20000 points
1-Star Olympian 1-Star Olympian
40000 points
2-Star Olympian 2-Star Olympian
80000 points
»  How to earn points
»  Support forums FAQs
Question status
Magical answer Magical answer
Message with a response that solved the author's question
Favorites status
Add to my favorites Add to my favorites
Delete from my favorites Delete from my favorites
This thread has been closed Thread closed
 

Content starts here
   Create a new message    Receive e-mail notification if a new reply is posted  Reply to this message
Author Subject: HP-UX 11i v1 - NIS+ printers.org_dir?      Add to my favorites
mvpel Expert in this area
Nov 3, 2009 20:00:38 GMT   

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


Sort Answers By: Date or Points
Dennis Handly This member has accumulated 40000 or more points
Nov 3, 2009 23:57:44 GMT    Unassigned

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).
mvpel Expert in this area
Nov 4, 2009 13:59:28 GMT    N/A: Question Author

So you're just using the NIS map as a reference to build the local machine's printing database, is that correct?
mvpel Expert in this area
Nov 4, 2009 19:32:51 GMT    N/A: Question Author

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.
OldSchool This member has accumulated 7500 or more points
Nov 4, 2009 21:16:09 GMT    Unassigned

"No wonder I'm confused. The Solaris FAQ documentation about the printers.org_dir table is flat out FALSE."

Well...it might apply correctly to Solaris, but I wouldn't know.
mvpel Expert in this area
Nov 4, 2009 21:52:53 GMT    N/A: Question Author

Nope, according to the source code and the behavior of my Sun machines here, it definitely does not apply correctly even to Solaris.

I'll be curious to find out why HP-UX lpstat is checking the nsswitch.conf file, according to tusc, when that's not documented in nsswitch.conf(4).
Dennis Handly This member has accumulated 40000 or more points
Nov 5, 2009 10:27:29 GMT    Unassigned

>So you're just using the NIS map as a reference to build the local machine's printing database, is that correct?

Exactly. It just does "ypcat -k printers" and there is a printer name (key) and data.
 
Create a new message    Receive e-mail notification if a new reply is posted   Reply to this message
 
 
Printable version
Privacy statement Using this site means you accept its terms
© 2009 Hewlett-Packard Development Company, L.P.