- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to check interface status on HPUX by using the...
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
12-03-2008 12:22 AM
12-03-2008 12:22 AM
how to check interface status on HPUX by using the C program.
I am using the ioctl call with 'SIOCGIFCONF' to check the status of interface whether up/down.
Could you tell me how to use that in C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2008 02:06 AM
12-03-2008 02:06 AM
Re: how to check interface status on HPUX by using the C program.
struct ifreq *ibuf;
fd = socket(AF_INET, SOCK_DGRAM, 0)
ioctl(fd, SIOCGIFNUM, &numif)
ibuf = (struct ifreq *) malloc (numif * sizeof(struct ifreq));
bzero ( ibuf, numif * sizeof( struct ifreq ));
ifconf.ifc_len = numif * sizeof(struct ifreq);
ifconf.ifc_buf = (caddr_t)ibuf;
ioctl (fd, SIOCGIFCONF, &ifconf)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2008 02:07 AM
12-03-2008 02:07 AM
Re: how to check interface status on HPUX by using the C program.
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1293065
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2008 04:03 AM
12-03-2008 04:03 AM
Re: how to check interface status on HPUX by using the C program.
this question is to consult interface config
the other looks to be to configure vips
so for me it is better to make different questions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2008 05:00 PM
12-03-2008 05:00 PM