1820390 Members
3466 Online
109623 Solutions
New Discussion юеВ

Port Identification

 
SOLVED
Go to solution
Alan Garner
Frequent Advisor

Port Identification

Hello again...

I just want to make sure I am reading this outpu correct...

If I do a lanscan and the outpu is this...

0/3/1/0/4/0 0x001A4BF53EXX 0 UP lan0 snap0 1 ETHER Yes 119
0/3/1/0/4/1 0x001A4BF53EXX 1 UP lan1 snap1 2 ETHER Yes 119
0/3/1/0/6/0 0x001A4BF53EXX 2 UP lan2 snap2 3 ETHER Yes 119
0/3/1/0/6/1 0x001A4BF53EXX 3 UP lan3 snap3 4 ETHER Yes 119
0/4/2/0 0x001A4B06FAXX 4 UP lan4 snap4 5 ETHER Yes 119
0/6/1/0/4/0 0x001A4BF538XX 6 UP lan6 snap6 6 ETHER Yes 119
0/6/1/0/4/1 0x001A4BF538XX 7 UP lan7 snap7 7 ETHER Yes 119
0/6/1/0/6/0 0x001A4BF538XX 8 UP lan8 snap8 8 ETHER Yes 119
0/6/1/0/6/1 0x001A4BF538XX 9 UP lan9 snap9 9 ETHER Yes 119
0/4/2/1 0x001A4B06FAXX 5 UP lan5 snap5 10 ETHER Yes 119
LinkAgg0 0x000000000000 900 DOWN lan900 snap900 13 ETHER Yes 119
LinkAgg1 0x000000000000 901 DOWN lan901 snap901 14 ETHER Yes 119
LinkAgg2 0x000000000000 902 DOWN lan902 snap902 15 ETHER Yes 119
LinkAgg3 0x000000000000 903 DOWN lan903 snap903 16 ETHER Yes 119
LinkAgg4 0x000000000000 904 DOWN lan904 snap904 17 ETHER Yes 119

I can tell that I hae 3 NICs...1 2-port and 2 4-port. I can also tell which lans are associated with which cards. But I cannot tell which lans are associated with which PORTS on each card.

To do this for my first lan, I assigned an IP to lan0, asked my network team to look on the switch and find which switch port that IP was plugged into, then compared the MAC address that the switch sees in that port to the output from the above command thus telling me which port on the NIC was lan0.

Can I now assume that the lan assigments flow logically down the card so that lan1 will now be the second port on that same card as lan0? Following this assumption, the first 4-port card would have lans 0-3 assigned to it from top to bottom, the second having lans 6-9 flowing from top to bottom, and the 2-port core card having lans 4 & 5 with lan 4 being the top port.

Is there an easier method? I remember in Linux I found a command that would blink the stable LED on the port to indicate which port eth0 mapped to. Is there such a command in HP-UX?

I know I could do retrace the same steps for each lan like I did before but as you can see, we are going to be using APA and I'd rather not waste all that time assigning IPs just to turn around and unplumb them to put them in APA...not to mention that I have 10 servers to replicate this on!

Any help would be appreciated!
8 REPLIES 8
Torsten.
Acclaimed Contributor
Solution

Re: Port Identification

OK you have these ports on a 4-port card:

0/3/1/0/4/0 0x001A4BF53EXX 0 UP lan0 snap0 1 ETHER Yes 119
0/3/1/0/4/1 0x001A4BF53EXX 1 UP lan1 snap1 2 ETHER Yes 119
0/3/1/0/6/0 0x001A4BF53EXX 2 UP lan2 snap2 3 ETHER Yes 119
0/3/1/0/6/1 0x001A4BF53EXX 3 UP lan3 snap3 4 ETHER Yes 119


lowest port (labeled) is also the lowest hw-path.

0/3/1/0/4/0 is port 0 (if 0..3) or A (if A..D)

...

0/3/1/0/6/1 is port 3 or D in this case.

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!   
Torsten.
Acclaimed Contributor

Re: Port Identification

See the picture

http://docs.hp.com/en/AB545-90001/ch01s10.html#babeeabc

This is an AB545A PCI-X 4-Port Gigabit Ethernet Card.

Port A is ...0/4/0
Port B is ...0/4/1
Port C is ...0/6/0
Port D is ...0/6/1

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!   
Alan Garner
Frequent Advisor

Re: Port Identification

So what you are saying is that I was correct in my assumption...?
Torsten.
Acclaimed Contributor

Re: Port Identification

Yes, I think so.

The install manual says (only):

"Optionally, if you want to verify that the iether driver appears for each installed card, enter: ioscan -fknClan

The ioscan output for each port would look something like the following:

Class I H/W Path Driver S/W State H/W Type Description
lan 3 0/5/1/0/4/0 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter

The last two digits of the hardware path (third column) reflect the path of each port."


So it is fixed for sure.

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!   
Alan Garner
Frequent Advisor

Re: Port Identification

Great Thanks. I will leave this open for a day or two and see if anyone else wants to chime in!
Torsten.
Acclaimed Contributor

Re: Port Identification

I recently installed and configured around 30 (!) 4-port NICs in only 1 (!) server, so you can trust my experience

;-)

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!   
Alan Garner
Frequent Advisor

Re: Port Identification

Its not that I didn't believe you Torsten...quite the contrary. I have relied on your experience before in other posts so please do not get me wrong!

I just wanted to give others a chance as well...but alas I will close the thread.

Thanks again for your quick response! Keep an eye our for my next post...Ignite UX...coming later this week!
Torsten.
Acclaimed Contributor

Re: Port Identification

You are welcome!

I don't get you wrong, don't worry.
Have fun!

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!