HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How can i get the status of each interface
Operating System - HP-UX
1825756
Members
2297
Online
109687
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
Forums
Discussions
Discussions
Discussions
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
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
04-04-2007 01:59 PM
04-04-2007 01:59 PM
How can i get the status of each interface
Hi,
I made a network interface bonding with APA(Auto Port Aggregation),for example :lan0 lan1 -->lan900,now i want to get the status(active,backup,down) of lan0 and lan1 by programing,can anybody give me some suggestions? or show me some "apa" functions .
thank you!
Ringle
I made a network interface bonding with APA(Auto Port Aggregation),for example :lan0 lan1 -->lan900,now i want to get the status(active,backup,down) of lan0 and lan1 by programing,can anybody give me some suggestions? or show me some "apa" functions .
thank you!
Ringle
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2007 09:16 PM
04-04-2007 09:16 PM
Re: How can i get the status of each interface
Hello,
lanscan can give your some informations:
# lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
10/12/6 0x080009B19B60 12 UP lan0 snap0 11 ETHER Yes 119
LinkAgg0 0x0010830497D5 900 UP lan900 snap900 14 ETHER Yes 119
LinkAgg1 0x0060B0770028 901 UP lan901 snap901 15 ETHER Yes 119
LinkAgg2 0x000000000000 902 DOWN lan902 snap902 16 ETHER Yes 119
LinkAgg3 0x000000000000 903 DOWN lan903 snap903 17 ETHER Yes 119
LinkAgg4 0x000000000000 904 DOWN lan904 snap904 18 ETHER Yes 119
you can also us lanadmin with your PPA:
# lanadmin -g 900
# lanadmin -x -i 905
you can search for:
apa "support guide"
http://docs.hp.com for more informations.
Regards,
Cedrick Gaillard
lanscan can give your some informations:
# lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
10/12/6 0x080009B19B60 12 UP lan0 snap0 11 ETHER Yes 119
LinkAgg0 0x0010830497D5 900 UP lan900 snap900 14 ETHER Yes 119
LinkAgg1 0x0060B0770028 901 UP lan901 snap901 15 ETHER Yes 119
LinkAgg2 0x000000000000 902 DOWN lan902 snap902 16 ETHER Yes 119
LinkAgg3 0x000000000000 903 DOWN lan903 snap903 17 ETHER Yes 119
LinkAgg4 0x000000000000 904 DOWN lan904 snap904 18 ETHER Yes 119
you can also us lanadmin with your PPA:
# lanadmin -g 900
# lanadmin -x -i 905
you can search for:
apa "support guide"
http://docs.hp.com for more informations.
Regards,
Cedrick Gaillard
Best regards, Cedrick Gaillard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2007 12:31 PM
04-05-2007 12:31 PM
Re: How can i get the status of each interface
Thank you very for your reply. But what i needed is by programing.because our programs need the status of interfaces,so it must call some apa function to do this ,now which function is ,I really don't know .Can anybody tell me ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2007 08:27 AM
04-06-2007 08:27 AM
Re: How can i get the status of each interface
what problem with programming?
---<-----
#! /bin/ksh
for PPA in $(lanscan |egrep -v "^Hardware|^Path" |awk '{print $3}')
do
printf " lan$PPA: "
lanadmin -x $PPA 2>/dev/null | \
while read line
do
printf "$line "
done
printf "\n"
done
---<-----
this script is not complete, i wrote it very quickly for colleagues that don't know other unix than solaris...
Regards,
Cedrick Gaillard
---<-----
#! /bin/ksh
for PPA in $(lanscan |egrep -v "^Hardware|^Path" |awk '{print $3}')
do
printf " lan$PPA: "
lanadmin -x $PPA 2>/dev/null | \
while read line
do
printf "$line "
done
printf "\n"
done
---<-----
this script is not complete, i wrote it very quickly for colleagues that don't know other unix than solaris...
Regards,
Cedrick Gaillard
Best regards, Cedrick Gaillard
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.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP