1832574 Members
4488 Online
110043 Solutions
New Discussion

Re: LAN cabling

 
SOLVED
Go to solution
Jayraj
Frequent Advisor

LAN cabling

Hi,

I have 3 ports available on my server. lan 0 is configured as Production.lan1 and lan2 are free, however one of these ports has been cabled. But how to know which port is cabled. Is there any command to check whether the port is cabled or not..

7 REPLIES 7
Suraj K Sankari
Honored Contributor
Solution

Re: LAN cabling

Hi,

check with linkloop command. for more information see man linkloop

linkloop â i
Link connectivity to LAN station: 0x00108318AFED

# linkloop â i 2 0x00108318AFED


Suraj



Suraj
Michal Kapalka (mikap)
Honored Contributor

Re: LAN cabling

Hi,

you could use also lanadmin :

#============================================
must be up :

Administration Status (value) = up(1)
Operation Status (value) = up(1)
#============================================

Enter command: display

LAN INTERFACE STATUS DISPLAY
Fri, May 15,2009 08:30:57

PPA Number = 0
Description = lan0 HP PCI 10/100Base-TX Core [NO LINK,,AUTO,TT=1500]
Type (value) = ethernet-csmacd(6)
MTU Size = 1500
Speed = 10000000
Station Address = 0x14c2441a4a
Administration Status (value) = up(1)
Operation Status (value) = down(2)
Last Change = 0
Inbound Octets = 0
Inbound Unicast Packets = 0
Inbound Non-Unicast Packets = 0
Inbound Discards = 0
Inbound Errors = 0
Inbound Unknown Protocols = 0
Outbound Octets = 0
Outbound Unicast Packets = 0
Outbound Non-Unicast Packets = 0
Outbound Discards = 0
Outbound Errors = 0
Outbound Queue Length = 0
Specific = 655367

Press to continue


Ethernet-like Statistics Group

Index = 1
Alignment Errors = 0
FCS Errors = 0
Single Collision Frames = 0
Multiple Collision Frames = 0
Deferred Transmissions = 0
Late Collisions = 0
Excessive Collisions = 0
Internal MAC Transmit Errors = 0
Carrier Sense Errors = 0
Frames Too Long = 0
Internal MAC Receive Errors = 0


LAN Interface test mode. LAN Interface PPA Number = 0

clear = Clear statistics registers
display = Display LAN Interface status and statistics registers
end = End LAN Interface Administration, return to Test Selection
menu = Display this menu
ppa = PPA Number of the LAN Interface
quit = Terminate the Administration, return to shell
reset = Reset LAN Interface to execute its selftest
specific = Go to Driver specific menu

Enter command: ppa
Enter PPA Number. Currently 0: 1

LAN Interface test mode. LAN Interface PPA Number = 1

clear = Clear statistics registers
display = Display LAN Interface status and statistics registers
end = End LAN Interface Administration, return to Test Selection
menu = Display this menu
ppa = PPA Number of the LAN Interface
quit = Terminate the Administration, return to shell
reset = Reset LAN Interface to execute its selftest
specific = Go to Driver specific menu

Enter command: display

LAN INTERFACE STATUS DISPLAY
Fri, May 15,2009 08:31:12

PPA Number = 1
Description = lan1 HP PCI 1000Base-SX Release B.11.23.0505.04
Type (value) = ethernet-csmacd(6)
MTU Size = 1500
Speed = 1000000000
Station Address = 0x306ef5a899
Administration Status (value) = up(1)
Operation Status (value) = up(1)
Last Change = 100
Inbound Octets = 1385178559
Inbound Unicast Packets = 890808768
Inbound Non-Unicast Packets = 3628821
Inbound Discards = 0
Inbound Errors = 0
Inbound Unknown Protocols = 140
Outbound Octets = 993859941
Outbound Unicast Packets = 429107354
Outbound Non-Unicast Packets = 71925
Outbound Discards = 0
Outbound Errors = 0
Outbound Queue Length = 0
Specific = 655367

Press to continue


Ethernet-like Statistics Group

Index = 2
Alignment Errors = 0
FCS Errors = 0
Single Collision Frames = 0
Multiple Collision Frames = 0
Deferred Transmissions = 0
Late Collisions = 0
Excessive Collisions = 0
Internal MAC Transmit Errors = 0
Carrier Sense Errors = 0
Frames Too Long = 0
Internal MAC Receive Errors = 0


LAN Interface test mode. LAN Interface PPA Number = 1
R.K. #
Honored Contributor

Re: LAN cabling

Hello Swaraj,

To check the physical connectivity you can use linkloop command.
Eg.
# linkloop -i 2 0x00108318AFED
Link connectivity to LAN station: 0x00108318AFED
--- OK ----

Note: Here, lan instance of one server is 2 and the MAC addr of the required server is 0x00108318AFED.

Regds,
R.K.
Don't fix what ain't broke
Ganesan R
Honored Contributor

Re: LAN cabling

Hi,

If you only need to know the cable connectivity for lan1, find out it's mac address then use linkloop like below.

#lanscan |grep lan1
0/3/0/0 0x00403E0470B5 1 UP lan1 snap1 6 ETHER Yes 119

#linkloop -i 1 0x00403E0470B5
Link connectivity to LAN station: 0x00403E0470B5
-- OK

Cable is connected you will get the above output. If there is no cable you will get the below output.

Link connectivity to LAN station: 0x00306E5EAA46
error: expected primitive 0x30, got DL_ERROR_ACK
dl_error_primitive = 0x2d
dl_errno = 0x04
dl_unix_errno = 57
error - did not receive data part of message


You can also check the physical cable connectivity between lan1 and lan2(or with any card on any server). For that you need to use the same linkloop command with destination mac address. For examaple to check the connectivity between lan1 and lan2,

#linkloop -i 1
Best wishes,

Ganesh.
Steven E. Protter
Exalted Contributor

Re: LAN cabling

Shalom,

The card itself is normally stamped, unless its a very old network card.

lanscan will show you linked ports and can be run after cable connection so you are sure which has been cabled.

Many older versions of HP-UX will not tolerate two NIC cards/ports on the same system configured on the same network.

IP Address/Network Mask
192.168.0.10/255.255.255.0
192.158.0.11/255.255.255.0
Will not work

192.168.0.10/255.255.255.0
192.158.1.11/255.255.255.0
WILL work

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
Jayraj
Frequent Advisor

Re: LAN cabling

Hi,

Thank you all, I got it..:-)
Jayraj
Frequent Advisor

Re: LAN cabling

.