HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Re: How To Determine Interface Traffic Statistics
Operating System - Tru64 Unix
1828216
Members
2384
Online
109975
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2003 01:43 PM
08-11-2003 01:43 PM
How To Determine Interface Traffic Statistics
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);
I am currently runnint Tru64 V5.1a patch kit 4.
Hints (or code snippets) greatly appreciated.
Steve
shyatt@bigbangwidth.com
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);
I am currently runnint Tru64 V5.1a patch kit 4.
Hints (or code snippets) greatly appreciated.
Steve
shyatt@bigbangwidth.com
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2003 04:58 AM
08-12-2003 04:58 AM
Re: How To Determine Interface Traffic Statistics
Hi Steve,
what about netstat -I"interface name" -s
Michael
what about netstat -I"interface name" -s
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2003 05:40 AM
08-22-2003 05:40 AM
Re: How To Determine Interface Traffic Statistics
Attached you will find a snipped of code reading the counters. But this method is not Tru64 dependant! Other derivats also uses the SIOCRDCTRS method.
Help() { FirstReadManual(urgently); Go_to_it;; }
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2003 05:44 AM
08-22-2003 05:44 AM
Re: How To Determine Interface Traffic Statistics
BTW. there are other methods like reading /dev/kmem or /proc
Help() { FirstReadManual(urgently); Go_to_it;; }
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP