Operating System - HP-UX
1833476 Members
3154 Online
110052 Solutions
New Discussion

Why my "rpcinfo" is wrong?

 
zhoufeilong
Occasional Advisor

Why my "rpcinfo" is wrong?

#hostname
hp_g40
#rpcinfo -p hp_g40
rpcinfo: hp_g40: n2a: hostname not found
What's the matter?
Zhou
Hell Leader
3 REPLIES 3
Wim Rombauts
Honored Contributor

Re: Why my "rpcinfo" is wrong?

I think you have a name lookup problem. The contents of your /etc/hosts file, NIS database or DNS server could be wrong.

What is the output if you type "nslookup hp_g40" ? This instruction should return you the IP address. If you get an error or the server cannot be found, look at /etc/nsswitch.conf and check how hostnames should be resolved.
Stefan Schulz
Honored Contributor

Re: Why my "rpcinfo" is wrong?

This looks like a hostname resolution problem. Check with nslookup hp_g40 if your hostname is resolved correctly (i doubt it isn't).

Check your /etc/nsswitch.conf in which order your hostname is resolved. There must be something wrong either in your DNS Server or your local /etc/hosts.

Also think this is the source of your showmount-problem.

Hope this helps

Regards Stefan
No Mouse found. System halted. Press Mousebutton to continue.
Santosh Nair_1
Honored Contributor

Re: Why my "rpcinfo" is wrong?

As already mentioned, there is something wrong with the name resolution on your system. I would change /etc/nsswitch.conf so that it uses the local hosts files for name resolution, add the entry for hp_g40 in /etc/hosts, make sure you can do a nslookup hp_g40 and then try the command again.

-Santosh
Life is what's happening while you're busy making other plans