Operating System - HP-UX
1827807 Members
2671 Online
109969 Solutions
New Discussion

Re: How to check speed & duplexity of my network interface.

 
SOLVED
Go to solution
Rana_2
Frequent Advisor

How to check speed & duplexity of my network interface.

I have HPUX 11 & 4 interfaces

lo0 4136 127.0.0.0
lan1 1500 192.168.12.32 lan0* 1500 none
lan2* 1500 none
lan3 1500 192.168.12.0
lan3:1 1500 192.168.12.0 lan4 1500 192.168.15.0

How can i check speed & duplexity not using lanadmin ??????

Thanks,
Rana
10 REPLIES 10
Bharat Katkar
Honored Contributor

Re: How to check speed & duplexity of my network interface.

Rana

Use SAM ..

# sam
select "Networking and Communications"
select "Network Interface Cards"
select your NIC using SpaceBar
Go To "Actions" tab using TAB
Select Modify

This will list all the parameters for your NIC.. if they are Okay you just select "Cancel" and come out or go ahead and modify as per your requirement.

Hope that helps.
Regards,


You need to know a lot to actually know how little you know
Rana_2
Frequent Advisor

Re: How to check speed & duplexity of my network interface.

Thanks for your replay ,
But i still need this to be done using command line.
Thayanidhi
Honored Contributor

Re: How to check speed & duplexity of my network interface.

Hi,

Try using lanadmin. See man pages for lanadmin.

TT
Attitude (not aptitude) determines altitude.
Bharat Katkar
Honored Contributor

Re: How to check speed & duplexity of my network interface.

Rana then lanadmin is the best solution....
You need to know a lot to actually know how little you know
Muthukumar_5
Honored Contributor

Re: How to check speed & duplexity of my network interface.

We can use vsar tool for this. It can be use to track the speed,data transfer and duplexity.

It is more helpful to track the network packet transmission. We have to build it.
http://www.netsys.com/sunmgr/1996-04/msg00178.html

LAN Driver Link Link IN OUT IN OUT Total Total
Name Library Speed MTU packet packet Mb/sec Mb/sec Error Dscrd
lan0 intl100 100Mb 1500 27 53 0.01 0.03 0 0
lan1 igelan 100Mb 1500 0 0 0.00 0.00 0 0
lan2 btlan 10Mb 1500 0 0 0.00 0.00 0 0
ALL 27 53 0.01 0.03


Other than, lanadmin is the only admin tool which used command line.


Easy to suggest when don't know about the problem!
Geoff Wild
Honored Contributor
Solution

Re: How to check speed & duplexity of my network interface.

lanscan and lanadmin

Run lanscan first, to see ppa number, then:

For ppa 5:

lanadmin -x 5
Speed = 1000 Full-Duplex.
Autonegotiation = On.


Here's a little script to use as a test:

for i in `/usr/sbin/lanscan | awk '/ETHER/ {print $3}'`; do
x=`/usr/sbin/lanadmin -x $i 2>&1 | awk -F= '{print $2}' | sed -e 's/^ *//' -e 's/ *$//'`
echo $x
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.
Bernie Vande Griend
Respected Contributor

Re: How to check speed & duplexity of my network interface.

What is the reason that lanadmin is not an option? Maybe that will help us help you better? lanadmin -x 1 Where 1 is PPA number is the only way to do this from the command line with built in HP commands.
Ye who thinks he has a lot to say, probably shouldn't.
Rana_2
Frequent Advisor

Re: How to check speed & duplexity of my network interface.

Thanks all, My problem with using lanadmin I was not able to get ppa since Geoff Wild help me in this issue, I will follow his scripts.

Thanks Again,
Rana
Muthukumar_5
Honored Contributor

Re: How to check speed & duplexity of my network interface.

We can college all PPA numbers using lanscan -p command.

Collect the PPA number with lanscan -p and give that to lanadmin -s number.

# speed
set -x

set -A ppa `lanscan -p`
set -A name `lanscan -i | awk '{ print $1 }'`
i=0
cnt=${#ppa[*]}
while [[ $i -lt $cnt ]]; do
speed=$(lanadmin -s ${ppa[$i]})
limit=$(echo $speed | cut -d '=' -f 2)
echo "${name[$i]} speed = $((limit/1000000))Mbits/second"
let i=i+1
done

Above script will give your the speed.

More discussion is at,
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=634321
Easy to suggest when don't know about the problem!
Sivasingam Santhakumar
Frequent Advisor

Re: How to check speed & duplexity of my network interface.

Rana,

I saw somewhere you can use ndd which is widely used on SUN Soloris boxes. I don't have a HP-UX handy to check. But I have used it SUN servers.
Try man pages for ndd.

Good Luck