Operating System - HP-UX
1833582 Members
3889 Online
110061 Solutions
New Discussion

LAN interfaces and their installed slots

 
SOLVED
Go to solution
Murat SULUHAN
Honored Contributor

LAN interfaces and their installed slots

Hi

I have 2 RP8420 server with shared disk array and vPartition configuration. The servers have lots of network adapters. We installed 2 LAN switch for high availability. I want to distrubute server's network cards into the both lan switch.

As you know 8420 server has 16 PCI-X I/O slot. I have 12 ethernet devices per server. Some ethernet devices are combo devices with FC interface and some of them has double ethernet interface.

I want to match LAN devices and their physical slots. My question is how can I learn physical slot number for each lan device.

Best Regards
Murat
Murat Suluhan
10 REPLIES 10
RAC_1
Honored Contributor

Re: LAN interfaces and their installed slots

Look at the hardware address.
There is no substitute to HARDWORK
Peter Godron
Honored Contributor

Re: LAN interfaces and their installed slots

Murat,
use the stm command to get an overview of the system.
For all the info on lan cards please use the script from:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=744837
Murat SULUHAN
Honored Contributor

Re: LAN interfaces and their installed slots

Hi RAC

I still need help.

hardware address for vpar1 lan devices

lan 18 1/0/4/1/0/6/0 igelan CLAIMED INTERFACE HP A9784-60002 PCI/PCI-X 1000Base-T FC/GigE Combo Adapter
lan 11 1/0/6/1/0/6/0 igelan CLAIMED INTERFACE HP A9784-60002 PCI/PCI-X 1000Base-T FC/GigE Combo Adapter
lan 12 1/0/8/1/0 iether CLAIMED INTERFACE HP A7012-60001 PCI/PCI-X 1000Base-T Dual-port Adapter
lan 13 1/0/8/1/1 iether CLAIMED INTERFACE HP A7012-60001 PCI/PCI-X 1000Base-T Dual-port Adapter
lan 14 1/0/10/1/0 iether CLAIMED INTERFACE HP A7012-60001 PCI/PCI-X 1000Base-T Dual-port Adapter
lan 15 1/0/10/1/1 iether CLAIMED INTERFACE HP A7012-60001 PCI/PCI-X 1000Base-T Dual-port Adapter
lan 16 1/0/12/1/0/6/0 igelan CLAIMED INTERFACE HP A9784-60002 PCI/PCI-X 1000Base-T FC/GigE Combo Adapter
lan 17 1/0/14/1/0/6/0 igelan CLAIMED INTERFACE HP A9784-60002 PCI/PCI-X 1000Base-T FC/GigE Combo Adapter


hardware address for vpar2 lan devices

lan 2 0/0/6/1/0/6/0 igelan CLAIMED INTERFACE HP A9784-60002 PCI/PCI-X 1000Base-T FC/GigE Combo Adapter
lan 3 0/0/8/1/0 iether CLAIMED INTERFACE HP A7012-60001 PCI/PCI-X 1000Base-T Dual-port Adapter
lan 4 0/0/8/1/1 iether CLAIMED INTERFACE HP A7012-60001 PCI/PCI-X 1000Base-T Dual-port Adapter
lan 5 0/0/10/1/0 iether CLAIMED INTERFACE HP A7012-60001 PCI/PCI-X 1000Base-T Dual-port Adapter
lan 6 0/0/10/1/1 iether CLAIMED INTERFACE HP A7012-60001 PCI/PCI-X 1000Base-T Dual-port Adapter
lan 7 0/0/12/1/0 iether CLAIMED INTERFACE HP A7012-60001 PCI/PCI-X 1000Base-T Dual-port Adapter
lan 8 0/0/12/1/1 iether CLAIMED INTERFACE HP A7012-60001 PCI/PCI-X 1000Base-T Dual-port Adapter
lan 9 0/0/14/1/0/6/0 igelan CLAIMED INTERFACE HP A9784-60002 PCI/PCI-X 1000Base-T FC/GigE Combo Adapter

So how can I extract the i/o slot numbers?

Best Regards
Murat SULUHAN
Murat Suluhan
Roberto Volsa
Frequent Advisor

Re: LAN interfaces and their installed slots

Hi Murat,
look at hardware address: it specify the slot (LBA) the lan belongs.

lan 2 0/0/6/1/0/6/0 igelan CLAIMED INTERFACE HP A9784-60002 PCI/PCI-X 1000Base-T FC/GigE Combo Adapter
lan 3 0/0/8/1/0 iether CLAIMED INTERFACE HP A7012-60001 PCI/PCI-X 1000Base-T Dual-port Adapter
lan 4 0/0/8/1/1 iether CLAIMED INTERFACE HP A7012-60001 PCI/PCI-X 1000Base-T Dual-port Adapter
lan 5 0/0/10/1/0 iether CLAIMED INTERFACE HP A7012-60001 PCI/PCI-X 1000Base-T Dual-port Adapter
lan 6 0/0/10/1/1 iether CLAIMED INTERFACE HP A7012-60001 PCI/PCI-X 1000Base-T Dual-port Adapter
lan 7 0/0/12/1/0 iether CLAIMED INTERFACE HP A7012-60001 PCI/PCI-X 1000Base-T Dual-port Adapter
lan 8 0/0/12/1/1 iether CLAIMED INTERFACE HP A7012-60001 PCI/PCI-X 1000Base-T Dual-port Adapter

In this output the 3rd number is the LBA, thus you can vire the combo slots and single lan slot.

Best regards,
Roberto
melvyn burnard
Honored Contributor

Re: LAN interfaces and their installed slots

from the ioscan output look at th ehardware path:

lan 7 0/0/12/1/0 iether CLAIMED INTERFACE HP A7012-60001 PCI/PCI-X 1000Base-T Dual-port Adapter
lan 8 0/0/12/1/1 iether CLAIMED INTERFACE HP A7012-60001 PCI/PCI-X 1000Base-T Dual-port Adapter
This is a dual port Gbit card, at hardware path 0/0/12
The first 0 says it is in I/O chassis 0.
The 12 says this is LBA 12.
To lookup the slot number, use the following info, referring to the "two and four cell" column:
http://www.docs.hp.com/en/5991-1247/ch02s05.html#aes-npar-326

This tells you that the card is in slot 3
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Murat SULUHAN
Honored Contributor

Re: LAN interfaces and their installed slots

Hi Melvyn

I think I will solve my problem wiht your advices

Thank you so much

Best Regards
Murat
Murat Suluhan
Alzhy
Honored Contributor

Re: LAN interfaces and their installed slots

If you're running 11.11 then:

1.) Do ioscan -kfnC lan or lanscan and note the HW Path:

# ioscan -kfnC lan
Class I H/W Path Driver S/W State H/W Type Description
==========================================================================
lan 0 0/0/0/1/0 igelan CLAIMED INTERFACE HP A7109-60001 PCI 1000Base-T Core
lan 1 0/0/4/1/0/6/0 btlan CLAIMED INTERFACE HP A5838A PCI 100Base-TX/SCSI COMBO
/dev/diag/lan1 /dev/ether1 /dev/lan1
lan 2 0/0/4/1/0/7/0 btlan CLAIMED INTERFACE HP A5838A PCI 100Base-TX/SCSI COMBO
/dev/diag/lan2 /dev/ether2 /dev/lan2
lan 3 0/0/12/1/0 igelan CLAIMED INTERFACE HP A6825-60101 PCI 1000Base-T Adapter
lan 4 0/0/14/1/0 igelan CLAIMED INTERFACE HP A6847-60101 PCI 1000Base-SX Adapter


2.) Do a 'rad -q'
# rad -q
Driver(s)
Slot Path Bus Max Spd Pwr Occu Susp Capable Max Mode
Num Spd Mode
0-0-0-1 0/0/8/1 64 133 66 On Yes No Yes PCI-X PCI
0-0-0-2 0/0/10/1 80 133 66 On Yes No Yes PCI-X PCI
0-0-0-3 0/0/12/1 96 133 66 On Yes No Yes PCI-X PCI
0-0-0-4 0/0/14/1 112 133 66 On Yes No Yes PCI-X PCI
0-0-0-5 0/0/6/1 48 133 66 On Yes No Yes PCI-X PCI
0-0-0-6 0/0/4/1 32 133 33 On Yes No Yes PCI-X PCI
0-0-0-7 0/0/2/1 16 133 66 Off No N/A N/A PCI-X PCI
0-0-0-8 0/0/1/1 8 133 66 Off No N/A N/A PCI-X PCI
0-0-1-1 1/0/8/1 64 133 66 On Yes No Yes PCI-X PCI
0-0-1-2 1/0/10/1 80 133 66 On Yes No Yes PCI-X PCI
0-0-1-3 1/0/12/1 96 133 66 On Yes No Yes PCI-X PCI
0-0-1-4 1/0/14/1 112 133 66 Off No N/A N/A PCI-X PCI
0-0-1-5 1/0/6/1 48 133 66 On Yes No Yes PCI-X PCI
0-0-1-6 1/0/4/1 32 133 33 On Yes No Yes PCI-X PCI
0-0-1-7 1/0/2/1 16 133 66 Off No N/A N/A PCI-X PCI
0-0-1-8 1/0/1/1 8 133 66 Off No N/A N/A PCI-X PCI


As you can see as an illustration, My LAN 3 - HW Path 0/0/12/1/0 is on PCI Slot 0-0-0-3 which is on CoreIO chassis 0 PCI Slot 3.

Hope this helps..

Hakuna Matata.
Alzhy
Honored Contributor

Re: LAN interfaces and their installed slots

Above example is from an exact same same machine - an rp8420.

Or you can use the following script I've written to get your PCI/PCI-X Slot population. It works for any 11.11 environment.


#!/bin/ksh
#
# Reports a server's/nPars PCI Map
#
ioscan -kf >/var/tmp/IOSCAN
IOFILE=/var/tmp/IOSCAN

print "PCI Slot Population Report"
echo "------- ------- --------------------------------------------------"
print "PCI HWPATH Card Description"
echo "------- ------- --------------------------------------------------"

rad -q|awk 'NR>3 {print $1,$2,$7}'|while read slot hwp occ;do
if [ $occ = "Yes" ];then
STR=$(grep " $hwp" $IOFILE|head -1)
set $STR
shift 6
while [ $# -ne 0 ];do
DESCR="$DESCR $1"
shift
done
print $slot $hwp $DESCR
DESCR=""
else
print $slot $hwp EMPTY
fi
done
Hakuna Matata.
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: LAN interfaces and their installed slots

Bear in mind that even if you install the cards in exactly the same slots there3 is no guarantee that, for example, what is lan5 on server A will also be lan5 on server B. Those assignments depend upon the order in which the devices are discovered (detected). For example, if 2 new LAN cards were added to an existing and running machine they might not match the discovery order on server B. They can be changed to match after the fact.
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: LAN interfaces and their installed slots

Bear in mind that even if you install the cards in exactly the same slots there is no guarantee that, for example, what is lan5 on server A will also be lan5 on server B. Those assignments depend upon the order in which the devices are discovered (detected). For example, if 2 new LAN cards were added to an existing and running machine they might not match the discovery order on server B. They can be changed to match after the fact.
If it ain't broke, I can fix that.