I further investigated the issue and here are my observations.
It is possible to start an RPC server in tomstrbt environment. I had a RPC 
server and a client written using high level RPC calls viz.
callrpc() and registerrpc() and it works fine.
What I did was:-
1. /etc/services file had entries for portmapper
2. /etc/rpc file was copied from an already configured LINUX system
3. /etc/protocols seemed alrite
I started portmap and then my server and the client was able to connect and 
get its request serviced.

But, there is still an issue I haven't been able to get over.
When I create a server using high level RPC calls viz. svc_udp_create, 
svc_tcp_create, svc_register, the server is able to register properly with 
portmap. Running rpcinfo -p shows this program as registered and running on 
certain ports.
The problem is when i try to connect to this server using a client which 
uses low level rpc calls such as clnt_create and clnt_call, clnt_create 
gives an error
RPC:Unknown protocol
Irrespective of the fact whether i specify protocol as 'udp' or 'tcp' in 
clnt_create, the call does not go through.
On the other hand, the client I had written earlier with high level rpc 
calls (callrpc) still works with this RPC server.

So essentially i am missing out on some other configuration file which is 
required at the time of connect by the client.
I would be on the lookout for the same, if you guys have any suggestions or 
solutions, it would be of great help.
Thanks
Suchit


----Original Message Follows----
From: Tom Oehser <[EMAIL PROTECTED]>
To: Tony Nugent <[EMAIL PROTECTED]>
CC: SUCHIT REIKHY <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
Subject: Re: [tomsrtbt] Starting portmap server?
Date: Wed, 23 Aug 2000 02:04:58 +0000 (/etc/localtime)
MIME-Version: 1.0
Received: from [64.13.4.47] by hotmail.com (3.2) with ESMTP id 
MHotMailBB6C7C5900C5D820F3CA400D042F07330; Tue Aug 22 19:05:13 2000
Received: from localhost (tom@localhost)by toms.net (8.9.1a/8.8.8) with 
ESMTP id WAA01875;Tue, 22 Aug 2000 22:04:58 -0400
>From [EMAIL PROTECTED] Tue Aug 22 19:07:16 2000
In-Reply-To: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>


 > It looks like it won't work in a tomsrtbt environment.

There is nothing about tomsrtbt that should make any difference to portmap
services, for example, I think people have successfully run a libc5
rpc.portmap, rpc.nfsd, and rpc.mountd to provide nfs services.  There are
a lot of ways to debug this- you could use tcpdump, or sniffit, or strace,
or start rpc.portmap with -d, or check if there is an issue with
/etc/services or /etc/inetd.conf (and the lack of inetd!), or use the
rpcinfo program.  Since (1) no specifics have been given about WHAT rpc
service is having a problem, and (2) no specific output or narrative from
any of the above approaches has been mentioned, I would have to
characterize the effort to get it working as being in the early
exploratory stage, sort of dilettante beginnings of sort of looking into
whether it will just sort of work without digging.  Certainly premature
for a statement like the above, unless that is tounge-in-cheek...

-Tom


________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

Reply via email to