Operating System - HP-UX
1829550 Members
2066 Online
109992 Solutions
New Discussion

how can I check which lan card is working??

 
Salm
Frequent Advisor

how can I check which lan card is working??

Hi Every one .

I just bought HP K class server model 580. it shows 4 lan cards installed . ioscan shows only one card is claimed . rest all "unknow hardware".

My question is > how would I check which card is claimed and where is physicaly located ?? how can i configure rest all ??

I downloaded Putty ssh and try to access my K class server It is also not working.nothing comes on blacl putty terminal .

7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: how can I check which lan card is working??

Shalom,

You can use cstm/mstm or xstm to test them and find their location.

You should check the docs on http://dos.hp.com not every where the NIC fits is a valid install point.

Shutdown pull cards to figure out which one works right.

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
Tim Nelson
Honored Contributor

Re: how can I check which lan card is working??

lanscan
netstat -in
lanadmin

lanadmin will tell you if there is a link
reference your lanscan and netstat to the card with an active link and you will probably find your issue.

ie. cable plugged into wrong card, or wrong lanX configured for where cable is plugged into.

Torsten.
Acclaimed Contributor

Re: how can I check which lan card is working??

HI,

post an "ioscan -fn" and "ioscan -fnClan".

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: how can I check which lan card is working??

How did you run ioscan? from the console I'm assuming.

Did you configure networking? if yes - how?

Did you install HP-UX from scratch? If not - why not - as it should have told you when you went to configure networking which card has a link beat.

Why not look at the back of the system - do the lan cards have lights? If yes - the card that is active should have link and activity.

Here's a script for you:

# 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.
mavrick
Regular Advisor

Re: how can I check which lan card is working??

Hi Salm,
The lan can be tested by the commands as

ioscan -fnC lan
netstat -in
lanscan
lanadmin

Hope this way you can reach your lan to configure..
Thanks
Babu A
Frequent Advisor

Re: how can I check which lan card is working??

Just run the following commands.

To check which card is working.
# netstat -ni

To find out which is claimed.
# ioscan -funC lan

To configure.
use either ifconfig or sam

Hope this will help you.

Babu
Bill Hassell
Honored Contributor

Re: how can I check which lan card is working??

4 LAN cards or 3 cards and the built-in Core I/O board which also has the serial console? If there are truly 3 LAN cards, then the working LAN card is the core I/O. ioscan will show you that it is associated with the core board. The UNKNOWN cards do not have any driver installed. SAM can pick the right driver and install it for you.

As far as Putty on your PC, the most common error is using a 'normal' serial cable. You must use a printer cable, also known as a crossover cable.


Bill Hassell, sysadmin