Operating System - HP-UX
1854971 Members
2796 Online
104108 Solutions
New Discussion

how do you know the available NIC interfaces on the HP box?

 
sokolova
Advisor

how do you know the available NIC interfaces on the HP box?

coomand to know the all available NIC interfaces on the HP box
5 REPLIES 5
Jeeshan
Honored Contributor

Re: how do you know the available NIC interfaces on the HP box?

Hi sokolova
use command "ioscan -fnC lan"

this will show you the available lan interface.
a warrior never quits
Torsten.
Acclaimed Contributor

Re: how do you know the available NIC interfaces on the HP box?

run

# lanscan

and you'll get a result list.

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!   
Kapil Jha
Honored Contributor

Re: how do you know the available NIC interfaces on the HP box?

You can always use ioscan to find out most of the devices attached.
Be it disk,nic card,tape,processor etc....
BR,
Kapil
I am in this small bowl, I wane see the real world......
Geoff Wild
Honored Contributor

Re: how do you know the available NIC interfaces on the HP box?

ioscan and lanscan...

And here's a script I use called lancards:

# /usr/local/bin/lancards
Card at PPA 0 - IP Address: Not assigned- = 100 Half-Duplex. = On.
Card at PPA 2 - IP Address: 156.44.176.16 - = 100 Full-Duplex. = Off.
Card at PPA 3 - IP Address: 0.0.0.0 - = 1000 Full-Duplex. = On.
Card at PPA 4 - IP Address: 0.0.0.0 - Config = 10 Half-Duplex AUTONEG
Card at PPA 1 - IP Address: 156.44.44.181 - Config = 10 Half-Duplex AUTONEG
Card at PPA 5 - IP Address: 156.44.59.38 - = 1000 Full-Duplex. = On.


# 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.
yulianto piyut
Valued Contributor

Re: how do you know the available NIC interfaces on the HP box?

just run command ioscan -nfClan and lanscan. or via sam -> networking and communications


-yut-