From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,6fcb0122cd696c58,start X-Google-Attributes: gidfa528,public X-Google-Thread: 1164f8,6fcb0122cd696c58,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2003-08-07 15:35:02 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: shyatt@bigbangwidth.com (Steve Hyatt) Newsgroups: comp.unix.tru64,comp.sys.dec Subject: How To Determine Interface Traffic Statistics Date: 7 Aug 2003 15:35:00 -0700 Organization: http://groups.google.com/ Message-ID: NNTP-Posting-Host: 209.115.177.234 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1060295702 29341 127.0.0.1 (7 Aug 2003 22:35:02 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 7 Aug 2003 22:35:02 GMT Xref: archiver1.google.com comp.unix.tru64:10542 comp.sys.dec:16610 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