Operating System - HP-UX
1823384 Members
2529 Online
109654 Solutions
New Discussion юеВ

Re: How to register RPC programs?

 
Ben Li
Advisor

How to register RPC programs?

When I reboot the NIS+ server machine (Solaris), it display a message like following:
: RPC programs not registered, ...

That host is the one which have trouble to login NIS+ users (as I posted days before).
How to make the RPC programs registered?

Thanks in advance.
4 REPLIES 4
Kofi ARTHIABAH
Honored Contributor

Re: How to register RPC programs?

RPC programs are registered by virtue of being listed in the /etc/rpc file (its the equivalent of /etc/services file for inet services)

you can verify that rpc services are properly set up on your machine with

# rpcinfo -p hostname

it should report all the programs that are registered... if a program that should be registered is not, eg. nisplus, then you might want to look at your set up of nisplus.

Good luck
nothing wrong with me that a few lines of code cannot fix!
Ben Li
Advisor

Re: How to register RPC programs?

When I run the rpcinfo -p command, it comes like below. I don't know how to see this.

program vers proto port service
100000 4 tcp 111 rpcbind
100000 3 tcp 111 rpcbind
100000 2 tcp 111 rpcbind
100000 4 udp 111 rpcbind
100000 3 udp 111 rpcbind
100000 2 udp 111 rpcbind
100024 1 udp 856 status
100024 1 tcp 857 status
100021 1 tcp 862 nlockmgr
100021 1 udp 863 nlockmgr
100021 3 tcp 864 nlockmgr
100021 3 udp 865 nlockmgr
100021 4 tcp 866 nlockmgr
100021 4 udp 867 nlockmgr
100020 1 udp 4045 llockmgr
100020 1 tcp 4045 llockmgr
100021 2 tcp 868 nlockmgr
100068 2 udp 49176
100068 3 udp 49176
100068 4 udp 49176
100068 5 udp 49176
100083 1 tcp 49153
536870913 1 udp 696
536870913 1 tcp 697
1342177279 4 tcp 49451
1342177279 1 tcp 49451
1342177279 3 tcp 49451
1342177279 2 tcp 49451
#
Kofi ARTHIABAH
Honored Contributor

Re: How to register RPC programs?

You will note that on the list you do not have rpc.nisd listed as a registered program which means that it is not running.

On the solaris box, check the /etc/rc2.d/S71rpc file to see if all the conditions required for NIS+ are met. I seem to remember you are required to have a file called /etc/.UNCONFIGURED

then run:

/etc/rc2.d/S71rpc stop ; /etc/rc2.d/S71rpc start

it should then start rpc.nisd (check with ps command) and rpcinfo -p should also display it.

Good luck
nothing wrong with me that a few lines of code cannot fix!
R.Mahendran_1
Occasional Advisor

Re: How to register RPC programs?

Dear Kofi,

Please check your NFS deamons

In HP-UX

#ps -ef|grep nfsd

if it does't show any nfs deamons

configure it through the following

1.Edit /etc/rc.config.d/nfsconf & make

NFS_CLIENT=1
NFS_SERVER=1
2./sbin/init.d/nfs.server start
/sbin/init.d/nfs.client start