- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to use the API get_mib_info() or anything ...
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
Discussions
Discussions
Forums
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
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
тАО11-09-2010 03:17 AM
тАО11-09-2010 03:17 AM
How to use the API get_mib_info() or anything in sys/mib.h
I wanted to use get_mib_info() API to get TCP connection details. So I wanted to know it's interface, data it returns etc. [Same for open_mib() etc. ]
Does anyone know how to use these functions?
HP-UX 11.31
If you find this or any post resolves your issue, please be sure to mark it as an accepted solution, If you are satisfied with anyoneтАЩs response please remember to give them a KUDOS and show your appreciation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2010 04:14 AM
тАО11-09-2010 04:14 AM
Re: How to use the API get_mib_info() or anything in sys/mib.h
#include
#include
main()
{
int i;
struct nmparms parms;
unsigned int len;
int buf[256];;
i=open_mib("/dev/ip",O_RDWR,0,0);
parms.objid= ID_icmpInEchos;
parms.buffer=&buf;
parms.len=&len;
len=sizeof(buf);
get_mib_info(i,&parms);
printf("icmp in echo %ld \n",buf[0]);
close_mib(i);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2010 07:08 PM
тАО11-09-2010 07:08 PM
Re: How to use the API get_mib_info() or anything in sys/mib.h
So that I can know all the possible options and data available?
Is there a more supported approach to get these networking data from the HP UX OS?
If you find this or any post resolves your issue, please be sure to mark it as an accepted solution, If you are satisfied with anyoneтАЩs response please remember to give them a KUDOS and show your appreciation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2010 10:19 PM
тАО11-09-2010 10:19 PM
Re: How to use the API get_mib_info() or anything in sys/mib.h
No it is a private unsupported API - outside of internal use-
>>So that I can know all the possible options and data available?
mib.h is the only doc, but the content is quite clear.
>>Is there a more supported approach to get these networking data from the HP UX OS?
-> popen("netstat -s")?
-> snmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2010 12:27 AM
тАО11-10-2010 12:27 AM
Re: How to use the API get_mib_info() or anything in sys/mib.h
If you find this or any post resolves your issue, please be sure to mark it as an accepted solution, If you are satisfied with anyoneтАЩs response please remember to give them a KUDOS and show your appreciation