From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075322406557.tru64-unix-managers.marc@archive.invalid> From: "Mahendra Vallabh (Mike)" Date: Sun, 13 Aug 1995 21:38:04 +0000 To: tru64-unix-managers Subject: Remote Procedure Calls (RPC's) X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075322406557 Hi there, Can anyone out there help me with the following code segment? I have a lecturer who is trying to measure ``load'' on several various machines. Here's what he is trying to do: /* rload * * Gives the load on a remote host. cc [ flag ... ] file ... -lrpcsvc * */ #include "/d/pvm3/include/pvm3.h" #include #include #include /* Proto - can't find a system one */ enum clnt_stat rstat(char *host, struct statstime *statp); int main(int ac, char **av) { int nhosts; enum clnt_stat cstat; struct statstime stats; float * load; nhosts = 1; load = (float *)malloc(nhosts*sizeof(float)); cstat = rstat(av[1], &stats); if (cstat != RPC_SUCCESS) { clnt_perrno(cstat); exit (cstat); } load[0]=(float)stats.avenrun[0]; printf ("%f\n", load[0]); free(load); exit(0); } This code compiles fine on a Sun Sparcstation 2 (Solaris 2.4) and our Alpha Box (OSF/1 v3.0). However the program won't run on the Alpha. ie, rload.alpha is the alpha binary rload.sun is the sun binary On the Alpha: rload.alpha sunhost works rload.alpha alphahost results in the following error cstat returns 15 RPC: Program not registered On the Sun: rload.sun sunhost works rload.sun alphahost results in the following error cstat returns 12 RPC: Remote system error So.... are RPC's on an Alpha different from those on a Sun??? Mike