From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,6fcb0122cd696c58 X-Google-Attributes: gid1164f8,public X-Google-Thread: fa528,6fcb0122cd696c58 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-08-12 06:09:24 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!newsmi-eu.news.garr.it!newsrm.news.garr.it!NewsITBone-GARR!news.uniroma2.it!not-for-mail From: "marco" Newsgroups: comp.unix.tru64,comp.sys.dec Subject: Re: How To Determine Interface Traffic Statistics Date: Tue, 12 Aug 2003 15:09:53 +0200 Organization: Universita' di Roma -- Tor Vergata Message-ID: References: NNTP-Posting-Host: gnopc1.roma2.infn.it X-Trace: gno-4.fis.uniroma2.it 1060693762 1524547 141.108.21.179 (12 Aug 2003 13:09:22 GMT) X-Complaints-To: usenet@news.uniroma2.it NNTP-Posting-Date: 12 Aug 2003 13:09:22 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Xref: archiver1.google.com comp.unix.tru64:10647 comp.sys.dec:16727 On Tru64 you can use the command: # collect -sn to gather statistics about all cofigured network interfaces "Steve Hyatt" wrote in message news:af378fa4.0308071435.7f07614c@posting.google.com... > Hi. > > I have a piece of software which periodically (every second or so) is > responsible for determining the total amount of network traffic (in > bytes) which are sent and received through all interfaces on a > machine. > > I have routines which determine this data on various different systems > (Linux, IRIX, Solaris, Win32) but am unable to determine how to do > this on Tru64 (the way this is done is different across all > platforms). > > My question is how can I determine this information? I am looking for > something like the following which could be called periodically to > retrieve total traffic and therefore the traffic delta's could be > easily computed: > > int getTotalBytesSent (const char* interfaceName); > > Hints (or code snippets) greatly appreciated. > > Steve > shyatt@bigbangwidth.com