Operating System - HP-UX
1819933 Members
3413 Online
109607 Solutions
New Discussion юеВ

NIS Client & Automount Issue.

 
Eric D. Lopez
New Member

NIS Client & Automount Issue.

I am trying to get an HP-UX 11.11 client bound to our NIS domain & then automount a tool repository over the network. I get the following errors:

root@dev-hpux:/var/adm/syslog {265}> ypwhich
ypwhich: clnt_create error: RPC: Unknown host

root@dev-hpux:/var/adm/syslog {266}> domainname bmi.com

root@dev-hpux:/var/adm/syslog {268}> ypcat -k ypservers
herodotus
hermes
chez

root@dev-hpux:/sbin {283}> showmount
showmount: dev-hpux.eng.bmi.com: RPC: Program not registered

Then in /var/adm/syslog/syslog have the following error:

automount[2726]: Can't get my address

Users are able to log in thru NIS, but can't get automount started.
7 REPLIES 7
Vincent Stedema
Esteemed Contributor

Re: NIS Client & Automount Issue.

Hi Eric,

Could you perhaps post the contents of your /etc/rc.config.d/nfsconf here? And the output of "rpcinfo".

Regards,

Vincent
Sridhar Bhaskarla
Honored Contributor

Re: NIS Client & Automount Issue.

Eric,

Did the 'nslookup dev-hpux' returns correct address of your servers when you run it locally?.

Also, make sure your IP is resolved on your master NIS server.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Eric D. Lopez
New Member

Re: NIS Client & Automount Issue.

 
Jochen Heuer
Respected Contributor

Re: NIS Client & Automount Issue.

Hello!

Check your /etc/nsswitch.conf and make sure one exists.

If not you can use /etc/nsswitch.nis as a starting point!

But I would recommend to check files first for hostname lookups!

Regards,

Jochen
Well, yeah ... I suppose there's no point in getting greedy, is there?
Jochen Heuer
Respected Contributor

Re: NIS Client & Automount Issue.

An example nsswitch.conf would look like this:

passwd: files nis
group: files nis
hosts: files [NOTFOUND=continue] nis
networks: files [NOTFOUND=continue] nis
protocols: files [NOTFOUND=continue] nis
rpc: files [NOTFOUND=continue] nis
publickey: files [NOTFOUND=continue] nis
netgroup: files [NOTFOUND=continue] nis
automount: files nis
aliases: files nis
services: files nis
Well, yeah ... I suppose there's no point in getting greedy, is there?
Eric D. Lopez
New Member

Re: NIS Client & Automount Issue.

Here is nsswitch.conf

#
# /etc/nsswitch.compat:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# uses NIS (YP) in conjunction with files.
#

passwd: compat
group: compat
hosts: files nis dns
networks: nis files
protocols: nis files
rpc: nis files
publickey: nis files
netgroup: nis files
automount: files nis
aliases: files nis
services: nis files

/etc/auto_master
# Master map for automounter
#
+auto_master
/net -hosts -nosuid,nobrowse,soft
/home auto_home -nobrowse
baji rao
Occasional Contributor

Re: NIS Client & Automount Issue.

Check the nsswitch.conf for

passwd:files dns nis
group:files dns nis
hosts:files dns nis
...
..


and so on.

If this is ok then

ypwhich should return the NIS master server


Knowledge grows with sharing