1834817 Members
2698 Online
110070 Solutions
New Discussion

connect speed on NIC?

 
SOLVED
Go to solution
Jeff Stenger
Occasional Contributor

connect speed on NIC?

Hi All, how can i determine network connection speed (10 or 100 or 1000mpbs) and duplex mode (half or full) on my 11.x HP-UX server?
Thanks
3 REPLIES 3
Torsten.
Acclaimed Contributor
Solution

Re: connect speed on NIC?

run "lanscan" to get the instance numbers of the NICs, then run

lanadmin -x instance

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Geoff Wild
Honored Contributor

Re: connect speed on NIC?

Or use this script:

# cat /usr/local/bin/lancards
#!/usr/bin/sh
# script to check speed and settings of lan cards
PATH=/usr/sbin:/usr/bin
ppas=`lanscan | awk '$3~/^[0-9]$/{print $3}' | xargs`
for i in $ppas
do
printf "Card at PPA %s - " $i
ipa=`ifconfig lan${i} 2>/dev/null | awk '{ip=$2}END{if(ip==""){printf("Not assigned")}else{printf("%s ",ip)}}'`
printf "IP Address: %15s- " "$ipa"
lanadmin -x $i 2>/dev/null | awk '{$1="";printf("%s",$0)}'
echo ""
done


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Jeff Stenger
Occasional Contributor

Re: connect speed on NIC?

thanks for help