- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- C Program to Check Network Interfaces
Operating System - HP-UX
1752788
Members
6358
Online
108789
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
Discussions
Discussions
Forums
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
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
тАО03-09-2006 01:41 AM
тАО03-09-2006 01:41 AM
C Program to Check Network Interfaces
I am writing a C program to get some various system information counters on HP-UX 11.11 and 11.23. I have gotten most of what I need from the pstat family of functions, but the one thing that I am unable to figure out is the ethernet card information. I want to be able to see the same type of information that is output in with a netstat -ai (collisions, in/out packets, and errors). I've searched the forums and from what I've seen, it sounds like HP is not documenting how to do this directly. Is this still the case? I've tusc'd a netstat -ai command and it looks /dev/dlpi is being opened and some STREAMs-based stuff is going on, ie putmsg() and getmsg(), along with a couple of ioctl()'s.
Is it possible to get this information directly rather than exec()'ing netstat?
Is it possible to get this information directly rather than exec()'ing netstat?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2006 02:42 AM
тАО03-09-2006 02:42 AM
Re: C Program to Check Network Interfaces
Hi
never tried it but
http://hpux.connect.org.uk/
Search on network and see if you can find an example you can use
Steve Steel
never tried it but
http://hpux.connect.org.uk/
Search on network and see if you can find an example you can use
Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2006 03:31 AM
тАО03-09-2006 03:31 AM
Re: C Program to Check Network Interfaces
Can you tell if netstat is using /usr/conf/h/io.h? Seems to be quite a few clues in there if it applies.
mark
mark
the future will be a lot like now, only later
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2006 03:40 AM
тАО03-09-2006 03:40 AM
Re: C Program to Check Network Interfaces
Netstat dont show collision. USe lanadmin or landiag for this.
You can use snmp for acomplish this task.
See http://www.net-snmp.org for more information.
Using a mib browser is possible find wich attributes you need.
Schimidt
You can use snmp for acomplish this task.
See http://www.net-snmp.org for more information.
Using a mib browser is possible find wich attributes you need.
Schimidt
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP