Operating System - HP-UX
1847245 Members
2810 Online
110263 Solutions
New Discussion

Re: System Function Call (API) to display LAN Link status

 
SOLVED
Go to solution
William Leung
Occasional Advisor

System Function Call (API) to display LAN Link status

I understand we can get the LAN status in landiag. But is there a system function (e.g. in C) to get the status (admin, HW and/or link) of a LAN interface?

Many many thanks.
3 REPLIES 3
Craig Gilmore
Trusted Contributor
Solution

Re: System Function Call (API) to display LAN Link status

Hi William,

Yes, you can get the lan statistics using the DLPI API interface.

Attached to this message is a program that I wrote, some years ago, to illustrate how to get the information.

Regards,

Craig
William Leung
Occasional Advisor

Re: System Function Call (API) to display LAN Link status

Thanks a lot. It certainly helps a lot.
William Leung
Occasional Advisor

Re: System Function Call (API) to display LAN Link status

Problem can be resolved using DLPI API interface