[Orca-users] got some orca-hp-stat problems, but fixed 'em
Arthur van Rooij
Arthur.vanRooij at wldelft.nl
Fri Aug 13 04:59:11 PDT 2004
Hi,
I ran into some problems running orca-hp-stat (from 038) on an U 9000/785 running HP Ux B.11.11
Two things went wrong:
* The phys_mem utility would not compile.
I've found some code on the Big Brother list site (http://support.bb4.com/archive/200005/msg01349.html)
The source now looks like this:
static char SCCSid[] = "@(#)phys_mem 1.1";
#include <sys/pstat.h>
void main () {
struct pst_static stat_buf;
struct pst_dynamic dyn_buf;
pstat(PSTAT_STATIC,&stat_buf,sizeof(stat_buf),0,0);
pstat(PSTAT_DYNAMIC,&dyn_buf,sizeof(dyn_buf),0,0);
printf("Physical %ld \n",(stat_buf.physical_memory/256)*1000);
return;
}
...and compiles and runs fine now.
* The hpdf utility assumes bdf gives inode percenteges also. No so :-) You have to run bdf -il for that, so hpdf now looks like:
bdf -il | sed -e '/^[^ ][^ ]*$/{
N
s/[ ]*\n[ ]*/ /
}'
Just thought this might be of use to someone...
Cheers,
Arthur.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/orca-users/attachments/20040813/d8baa4ea/attachment.html>
More information about the Orca-users
mailing list