rpc(4) Kernel Interfaces Manual rpc(4)NAME
rpc - Remote procedure call file
DESCRIPTION
The rpc file is an ASCII file that contains the following information:
rpc name
numerical rpc ID
aliases
Each rpc name is separated from the next by a new line. Items are separated by any number of blanks or tab characters or both. A number
sign (#) indicates the beginning of a comment; characters up to the end of the line are not interpreted by routines that search the file.
The rpc database can be distributed in a network by a naming service, such as Network Information Service (NIS) or BIND. See the Network
Administration for setup information.
FILES
/etc/rpc
RELATED INFORMATION getrpcent(3)
Network Administration
delim off
rpc(4)
Check Out this Related Man Page
getrpcent(3) Library Functions Manual getrpcent(3)NAME
getrpcent, getrpcbynumber, getrpcbyname, setrpcent, endrpcent - Get rpc entry
LIBRARY
Standard C Library (libc.so, libc.a)
SYNOPSIS
#include </rpc/netdb.h>
struct rpcent *getrpcent(void);
struct rpcent *getrpcbynumber(
int number);
struct rpcent *getrpcbyname(
char *name);
void setrpcent(
int stayopen);
void endrpcent(void);
DESCRIPTION
The getrpcent, getrpcbynumber and getrpcbyname functions return pointers to an object with the following structure containing the broken-
out fields of a line in the rpc database: struct rpcent { /* see getrpcent(3) */
char *r_name;
char **r_aliases; /* alias list */
int r_number; /* rpc program number */ }; struct group *getrpcent(), *getrpcbynumber(), *getrpcbyname();
The members of this structure are:
r_name The name of the rpc.
r_aliases A zero-terminated list of alternate names for the rpc.
r_number The rpc program number for the rpc.
If the stayopen flag on the setrpcent subroutine is null, the rpc database is opened. Otherwise the setrpcent has the effect of rewinding
the rpc database. The endrpcent may be called to close the rpc file when processing is complete.
The getrpcent subroutine simply reads the next line while getrpcbynumber and getrpcbyname search until a matching gid or name is found (or
until EOF is encountered). The getrpcent subroutine keeps a pointer in the database, allowing successive calls to be used to search the
entire file.
A call to setrpcent must be made before a while loop using getrpcent in order to perform initialization and an endrpcent must be used after
the loop. Both getrpcbynumber and getrpcbyname make calls to setrpcent and endrpcent.
NOTES
The getrpcent(), getrpcbynumber(), and getrpcbyname() functions return pointers to thread-specific data. Subsequent calls to these func-
tions from the same thread overwrite this data.
If NIS (formerly YP) is running, getrpcent does not return the entries in any particular order. See the Network Administration for NIS set-
up information.
The rpc information is stored locally in /etc/rpc or is distributed by NIS, or both. To determine which file or files to search, and in
which order, the system uses the switches in the /etc/svc.conf file.
RETURN VALUES
A null pointer (0) is returned on EOF or error.
FILES
/etc/rpc
RELATED INFORMATION rpc(4), svc.conf(4)
delim off
getrpcent(3)
I'm in real trouble :(
One of our Ultra 10's went down and our Unix guys aren't around for another week or so (eek!) and we need to get it up and running again ASAP so after hooking up a keyboard and monitor I switched it on and it went through system check.
It then started to display the... (4 Replies)
Hey, i'm trying to use httptunnel and it won't let me configure it. here's what the cmnd line gives me:
pbg4% ./configure
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets... (4 Replies)
Hi all,
I'm trying to launch admintool via an export DISPLAY.
i get the message: Received communication service error 4: Remote procedure call timed out: program = 100087, version = 10
Just to say, i don't use nis/nisplus on my server...
What to do?
Thanx
Jason (17 Replies)
I'm trying to share some directories with NFS among Debian machines. In order to do so, I installed nfs-common and nfs-kernel-server on the server machine. It seemed that starting portmap daemon lasted a long time and I get the following messages in /var/log/messages:
Jan 30 18:18:03 masternode... (26 Replies)
Hi all,
Was hoping someone could shed some light on my problem,
rpc bind is in maintenance mode on Solaris 10 and won't fire up.
contents of the error log are:
rpcbind failed with 1.
bash-3.00#
Because rpc-bind isn't working, it's stopping nfs and autofs from working too
... (6 Replies)
Hello everyone,
I am writing a rpc program, I have put the server program on a directory in another computer and i run the client program from my computer. I want that when i call a function in the server program it will have to execute a shell script and the retruning of the shell script be... (6 Replies)
HI all!
this is my problem:
my boss got a Model 43P 7248-100 PowerPC server with the AIX 4.2 os, but some days ago it crashed and now it doesn't want to boot up again, it stops after the initial diagnostic phase with the "PowerPC" screen!
I must recover some important data from the hard disk, so... (6 Replies)
Hi All
Does anyone know how to install Windows on a PowerPC4+ system?
Is there any Virtual Machine that works on AIX or Linux OS with PPC hardware ?
Thank You (5 Replies)
Hey,
Task seems to be quite easy, but I'm still a bit green in shell scripting. I hope you can help me a bit. I have to run some simulation at the distance by remote terminal.
Normally when I'm working on the server directly I just type:
mpirun -np 8 compressibleInterFoam -parallel > log.txt... (7 Replies)
Do you guys know of a way to limit the amount of time will be spent attempting to create a ONC RPC client?
I am currently using the function clnt_create() to create my clients. However, if the remote RPC IP address is not reachable (on different network and unplugged) the GETPORT for portmapper... (7 Replies)
Hello I am having an issue with a server SUN FIRE T2000 (Solaris 10).
First of all the server didn't boot normaly so I did a full restoration of the file systems.
Now the server boot, most of the services are available (not all the services), but I keep on seeing
RPC: Rpcbind failure -... (4 Replies)
Hello,
I have task to make a program that multiplies polynomials as client(input/output indexes)-server(multiplying) using RPC. However when I try to compile it with gcc it gives the next info:
for client:
Udefined first
symbol referenced
Clnt_create client.o
for server:
Udefined first... (5 Replies)
Hi,
I am seeing the following errors in my environment, not sure why is it happening, any ideas? Thanks.
kernel: RPC: bad TCP reclen 0x73746174 (non-terminal ) Dec 17 02:14:48 kernel: RPC: bad TCP reclen 0x63480000 (large) Dec 17 02:14:48
kernel: RPC: bad TCP reclen 0x633f0000 (large) Dec... (5 Replies)
Hello,
I have a CentOS 6.1 server exporting a filesystem with read/write to world. I have an AIX Client mouting this filesystem from an NIS map. One of our applications is giving an error and after a little research, we found that we need the AIX Client to mount this filesystem with NFS V2 for... (6 Replies)
Hi All,
On wanting to re-install AIX 6.1 on to an RS 6000 Power 9111 285 station, I've tried to get in to SMS and also to boot from the DVD drive, but now the Firmware is locked and asking for the password. I originally set the password about 6 years ago and have forgotten it because I've never... (14 Replies)