- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Calculating network statistics using C
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
02-10-2003 12:19 AM
02-10-2003 12:19 AM
Calculating network statistics using C
I want to get network statistics same as we get through netstat -i command .
Actually i want to write a C funtion which give me all the details of interface connected such as Interface name Ipackets ,Opackets,Collision and errors
Is there any structure in HPUX that gives all this information ??. If it is how to get info from it ??
Could u please help me.
Thanking you in advance .
Warm regards
hemant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 06:51 AM
02-10-2003 06:51 AM
Re: Calculating network statistics using C
If you want more information than this(I.E. Packet sizes and protocals as well as bandwidth), I would recommend that you look at other software that's already working well.
ntop is already developed(not sure about a HP-UX port though), and there are many other packages as well. It's alot of work to re-invent the wheel.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 07:01 AM
02-10-2003 07:01 AM
Re: Calculating network statistics using C
Try this link, here is a lot of network
watching & tracing packages.
hpux.cs.utah.edu/hppd/hpux/Networking/Admin/alpha.html
Regards, S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 07:35 PM
02-10-2003 07:35 PM
Re: Calculating network statistics using C
Thanks for the info .But still not able to find the clue.
Does HPUX has any structure which give info about state of network interfaces such as name Ipacket Opacket collison and errors.if yes how can i use it.
Like using kmem and then use name list ie nlist()(_ifnet) to get all the information of network interface. Just an idea.
Please correct me if i m wrong.
Waiting for ur reply
Thanks and regards
hemant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 07:57 PM
02-10-2003 07:57 PM
Re: Calculating network statistics using C
There are few libraries you might want to check out which gives you the best result.
getnetconfig this returns a structure called netconfig
and other one is getnetent.
go through the man pages of them i am sure getnetconfig() will give you everything you want.
Cheers
Rajeev