Operating System - HP-UX
1753878 Members
7322 Online
108809 Solutions
New Discussion юеВ

how to check the speed of network card

 
SOLVED
Go to solution
praveen..
Super Advisor

how to check the speed of network card

how to check the speed of network card?

please help

# lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/0/8/1/0/4/0 0x00306AF3D7AA 0 UP lan0 snap0 1 ETHER Yes 119
1/0/1/1/0/4/0 0x00306A497FFE 1 UP lan1 snap1 2 ETHER Yes 119
1/0/10/1/0 0x00306AF4680E 2 UP lan2 snap2 3 ETHER Yes 119
root@server:[/root]
# ifconfig lan0
lan0: flags=1843
inet 120.108.8.4 netmask ffffff80 broadcast 120.108.8.107
root@server:[/root]
# ifconfig lan1
ifconfig: no such interface
root@server:[/root]
# ifconfig lan2
ifconfig: no such interface
root@server:[/root]
11 REPLIES 11
Darrel Louis
Honored Contributor
Solution

Re: how to check the speed of network card

Hi,

lanadmin -x 0 --> this is for lan0
lanadmin -x 1 --> this is for lan1
lanadmin -x 2 --> this is for lan2

Darrel
Robert-Jan Goossens_1
Honored Contributor

Re: how to check the speed of network card

Hi,

# lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/0/0/0 0x001083FF5AE3 0 UP lan0 snap0 1 ETHER Yes 119
0/6/0/0 0x001083F68FA4 1 UP lan1 snap1 2 ETHER Yes 119
# lanadmin -x 1
Current Speed = 10 Half-Duplex Auto-Negotiation-ON
# lanadmin -x 0
Current Speed = 100 Full-Duplex Auto-Negotiation-OFF

# lanspeed
Card at PPA 0 - IP Address: 145.4.3.48 - Speed = 100 Full-Duplex Auto-NegoF
Card at PPA 1 - IP Address: Not assigned- Speed = 10 Half-Duplex Auto-NegotN

attached is a the lanspeed script.

Hope this helps,
Robert-Jan
Michael Steele_2
Honored Contributor

Re: how to check the speed of network card

lanscan -x 0 (ppa number, could be diff. from 0 )

lanscan -X 0 ( sets parms. Note the cap. and lower cases )
Support Fatherhood - Stop Family Law
Luk Vandenbussche
Honored Contributor

Re: how to check the speed of network card

Hi,

lanadmin -x PPA

in your case

lanadmin -x 0
Steven E. Protter
Exalted Contributor

Re: how to check the speed of network card

Shalom,

lanadmin will show you connection speed and duplex. You will not get that speed on a file transfer due to overhead for the OS and network infrastructure.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Arunvijai_4
Honored Contributor

Re: how to check the speed of network card

Hi,

You can also see this information from sam -> Networking section.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Geoff Wild
Honored Contributor

Re: how to check the speed of network card

I know I'm jumping in late - but here's a good little script I wrote:

# 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.
praveen..
Super Advisor

Re: how to check the speed of network card

hi,
what does it means:

# ifconfig lan1
ifconfig: no such interface
root@server:[/root]
# lanadmin -x 1
Speed = 1000 Full-Duplex.
Autonegotiation = On.

root@server:[/root]
# ifconfig lan2
ifconfig: no such interface
root@server:[/root]
# lanadmin -x 2
The link is down. The speed and other link state information
are undefined. The configuration specified for this card is:
Speed = 1000 or 100 or 10 Mbps.
Autonegotiation = On.

root@server:[/root]
#


does it means that lan1 is physically connected to switch but no ip defined to lan1.
and lan2 is not physically connected to switch.

am i right?

praveen..
Super Advisor

Re: how to check the speed of network card

lanadmin -x 0 --> this is for lan0
lanadmin -x 1 --> this is for lan1
lanadmin -x 2 --> this is for lan2