Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!hsdndev!dartvax!eleazar.dartmouth.edu!dav From: dav@eleazar.dartmouth.edu (William David Haas) Newsgroups: comp.unix.aix Subject: loadave Keywords: rwhod Message-ID: <1991Apr17.131722.25180@dartvax.dartmouth.edu> Date: 17 Apr 91 13:17:22 GMT Sender: news@dartvax.dartmouth.edu (The News Manager) Organization: Dartmouth College, Hanover, NH Lines: 20 I am trying to get lwho (version of rwho) running on the RS/6000s. Lwho has the same function as rwho but instead of broadcasting host information it saves it in a file in a shared file system. This code works on VAXen, Sun 4s, and RTs. The trouble I am having on the 6000 is getting the load average of the machine. The standard way of reading the kernal does not work and niether do the RPC routines: rstat(Host, p_statp); /* high level rpc call */ This fails because the linker cannot find rstat but an nm on the library (-lrpcsvc) says it is there. if (callrpc(Host, RSTATPROG, RSTATVERS_TIME, RSTATPROC_STATS, xdr_void, 0, xdr_statstime, &statp) != 0) { /* mid level rpc call *. } This fails returning an error. It works on a SPARC. Does anyone out there know how to get the load average on a 6000?