From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,bede3605b9f4dc2a,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1995-02-06 08:38:17 PST Path: nntp.gmd.de!dearn! esoc!linuxed1!peernews.demon.co.uk!btnet!bt!pipex!howland.reston.ans.net! swrinde!sgiblab!chronos.synopsys.com!news.synopsys.com!holland From: holland@synopsys.com (Rich Holland) Newsgroups: comp.unix.osf.osf1 Subject: Xmeter 1.1x working? Date: 6 Feb 1995 16:38:17 GMT Organization: Synopsys Inc., Mountain View, CA 94043-4033 Message-ID: <3h5j9p$198@hermes.synopsys.com> NNTP-Posting-Host: mingus.synopsys.com I've got xmeter working across multiple platforms but I'm stumped by OSF/1. I can 'rup osf1host' and get valid output, but xmeter reports the host down. It doesn't use standard rstat calls, however; here's an exerpt of what the author sent me: ] Re the problem of querying osf hosts, I would guess the problem is in ] xmeter's equivalent of the rstat call. I don't actually use rstat, ] because I needed finer control of timeouts than you can get with rstat. ] If you look in the function getmeter() in xmeter.c you'll see my ] equivalent of rstat, a simplified version looks like: ] ] c = clntudp_create(...); ] clnt_call(c, ...); ] ] It's possible I'm doing something that doesn't work with osf's implementation ] of rstat. For example, the clntudp_create call takes a rpc program and ] and version number (RSTATPROG and RSTATVERS_TIME in my code). You might ] verify that your osf rstat daemon is compatible. You can use rpcinfo to check ] this, e.g. ] ] rpcinfo -p ] program vers proto port ] ... ] 100001 2 udp 1472 rstatd ] 100001 3 udp 1472 rstatd ] 100001 4 udp 1472 rstatd ] ] This shows that osfhost is using rpc program number 100001, and supports ] versions 2, 3 and 4 of the rstat protocol. Then compare these numbers to ] RSTATPROG and RSTATVERS_TIME. On suns these are defined in ] /usr/include/rpcsvc/rstat.h, on my system they are: ] ] #define RSTATPROG ((u_long)100001) ] #define RSTATVERS_TIME ((u_long)3) My rpcinfo on my osf hosts reports the same values, so I know that's not the problem. Has anyone ported xmeter to support OSF/1 v3.x hosts? I'd appreciate any pointers or patches. Thanks! -- Rich Holland UNIX System Administrator, Porting Center holland@synopsys.com Synopsys, Inc. char*p="char*p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}