1847172 Members
5710 Online
110263 Solutions
New Discussion

LAN CARD SPEED

 
Anit Jha
Occasional Advisor

LAN CARD SPEED

Hi All,

Tell me how to check LAN card speed in hp-ux 11i.

 

P.S. This thread has been moved from HP-UX Technical Documentation to HP-UX > networking. -HP Forum Moderator

8 REPLIES 8
Marvin Strong
Honored Contributor

Re: LAN CARD SPEED

lanadmin -x (PPA from lanscan)

lanadmin -x 1

Mark Grant
Honored Contributor

Re: LAN CARD SPEED

Actually, it's "lanadmin -x (ppa number)"

"lanadmin -X" is used to set parameters.
Never preceed any demonstration with anything more predictive than "watch this"
Jannik
Honored Contributor

Re: LAN CARD SPEED

to see the lan number:
netstat -in
# netstat -in
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lan0 1500 131.116.105.64 131.116.105.76 50314494 0 49704695 0 0

to get the crd # :
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 0x00306E09E042 0 UP lan0 snap0 1 ETHER Yes 119

to get the speed:
lanadmin -sx 0
jaton
Rick Garland
Honored Contributor

Re: LAN CARD SPEED

lanadmin will also provide a TUI menu that will walk you through selecting the card and viewing the stats, speed included
DCE
Honored Contributor

Re: LAN CARD SPEED

You can also use SAM - It will display all the information you need

Basheer_2
Trusted Contributor

Re: LAN CARD SPEED

Hi Anit

lanadmin -x 0
(0 - is Zero for lan0, 1 for lan1 etc..)
lanadmin -s 0 ( s for speed)
Speed = 100000000
Raj D.
Honored Contributor

Re: LAN CARD SPEED

Hi Anit ,

1. Find out the Lans PPA no.
# lanscan

2. lanadmin -s PPAno.
i.e
# lanadmin -s 0 [ where 0 is PPA no. ]

Output will be like this :
# lanadmin -s 0
Speed = 10000000

( 10000000= 10MB )
-------------------------------------------

Or
# lanadmin -x 0

Current Config = 10 Full-Duplex AUTONEG
-------------------------------------------

Cheers,
Raj.


" If u think u can , If u think u cannot , - You are always Right . "
Yogeeraj_1
Honored Contributor

Re: LAN CARD SPEED

hi Anit!

this is the script that i usually use:

# more speed-lan.sh
#!/usr/bin/sh
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
#

hope this helps!
regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)