1748041 Members
4900 Online
108757 Solutions
New Discussion юеВ

Re: Fibre Channel HPUX

 
Stefano Ferri
Frequent Advisor

Fibre Channel HPUX

Hi,

I would to know how I can to get the mac address of my fibre channel cards, Can you help me?

How can I recognize if a disk is internal or external?

Thanks a lot for the further answer.

Stefano
7 REPLIES 7
freddy_21
Respected Contributor

Re: Fibre Channel HPUX

Hello Stefano,

For Fibre Channel Cards, not have mac address like lan card. for wwn ( world Wine Name) you can used this command:

#ioscan -fnC fc or iscan -fcd

if you find fc device like /dev/fcd0 or /dev/td0, run this command

#fcmsutil /dev/td0 or fcmsutil /dev/fcd0.


about how to check internal/external disk run this command.

#dd if=/dev/dsk/cxtydz of=/dev/null bs=2k
you will see the blinking led for the disk.

for interupt using "control c"


other way, you must check hardware path from your card. hardware path depend on your server.


thanks
freddy


Stefano Ferri
Frequent Advisor

Re: Fibre Channel HPUX

Thanks Freddy,

I 've tryed to run fcmsutil on my fd card but the mac address do not appears.

I already known the dd command, but I must to known the internal/external disk only with the system commands...

Thanks,

Stefano
Victor BERRIDGE
Honored Contributor

Re: Fibre Channel HPUX

Hi Stefano,
The first question would be what box/OS are you talking about?

>How can I recognize if a disk is internal or external?

usually you know the HW path to the controllers... and HP tells you what they are.
Else if you dont know you start by looking at what you have external (FC) then the others must be internal:
e.g.
$ ioscan -funC fc
Class I H/W Path Driver S/W State H/W Type Description
=================================================================
fc 0 0/4/0/0 td CLAIMED INTERFACE HP Tachyon XL2 Fibre Channel Mass Storage Adapter
/dev/td0
fc 1 0/7/0/0 td CLAIMED INTERFACE HP Tachyon XL2 Fibre Channel Mass Storage Adapter
/dev/td1
$ ioscan -funC disk|more
Class I H/W Path Driver S/W State H/W Type Description
==========================================================================
disk 0 0/0/1/0.3.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c0t3d0 /dev/rdsk/c0t3d0
disk 1 0/0/1/1.2.0 sdisk CLAIMED DEVICE HP 36.4GMAN3367MC
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 2 0/0/2/0.2.0 sdisk CLAIMED DEVICE HP 36.4GMAN3367MC
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0
disk 60 0/4/0/0.1.9.0.0.0.0 sdisk CLAIMED DEVICE HITACHI OPEN-V
/dev/dsk/c15t0d0 /dev/rdsk/c15t0d0
disk 61 0/4/0/0.1.9.0.0.0.1 sdisk CLAIMED DEVICE HITACHI OPEN-V
/dev/dsk/c15t0d1 /dev/rdsk/c15t0d1
disk 63 0/4/0/0.1.9.0.0.0.2 sdisk CLAIMED DEVICE HITACHI OPEN-V
/dev/dsk/c15t0d2 /dev/rdsk/c15t0d2
disk 65 0/4/0/0.1.9.0.0.0.3 sdisk CLAIMED DEVICE HITACHI OPEN-V
/dev/dsk/c15t0d3 /dev/rdsk/c15t0d3
disk 67 0/4/0/0.1.9.0.0.0.4 sdisk CLAIMED DEVICE HITACHI OPEN-V
/dev/dsk/c15t0d4 /dev/rdsk/c15t0d4

...


All the best

Victor
Victor BERRIDGE
Honored Contributor

Re: Fibre Channel HPUX

Too fast again...
So on HW 0/4 and 0/7 you have FC, so on 0/0/1 & 2, they are internal...


All the best
Victor
freddy_21
Respected Contributor

Re: Fibre Channel HPUX

As i know, FC card not have mac address. so will not found mac address at FC card.

for recognize internal and external disk, you need know about hardware path from your external scsi or fibre.

you can use victor's way to know external/internal disk. if you know hardware path from fc card or external scsi card, it means all disk at that hardware path are external disks.


thanks
freddy
IT_2007
Honored Contributor

Re: Fibre Channel HPUX

Here is the way to find out WWN address for fibre cards.

ioscan -fnCfc

see what you get output like /dev/fcd0 or /dev/td0 etc...

then run fcmsutil /dev/fcd0 which will show you like:


Vendor ID is = 0x001077
Device ID is = 0x002312
PCI Sub-system Vendor ID is = 0x00103c
PCI Sub-system ID is = 0x0012c7
PCI Mode = PCI-X 133 MHz
ISP Code version = 3.2.26
ISP Chip version = 3
Topology = PTTOPT_FABRIC
Link Speed = 2Gb
Local N_Port_id is = 0x010600
Previous N_Port_id is = None
N_Port Node World Wide Name = 0x50060b0000266225
N_Port Port World Wide Name = 0x50060b0000266224
Switch Port World Wide Name = 0x2006006069519e90
Switch Node World Wide Name = 0x1000006069519e90
Driver state = ONLINE
Hardware Path is = 0/0/10/1/0/4/0
Maximum Frame Size = 2048
Driver-Firmware Dump Available = NO
Driver-Firmware Dump Timestamp = N/A
Driver Version = @(#) libfcd.a HP Fibre Channel ISP 23xx Driver B.11.11.03 /ux/kern/kisu/FCD/src/common/wsio/fcd_init.c:Mar 31 2004,12:14:54


see the line for N_Port Port in the output:

N_Port Port World Wide Name = 0x50060b0000266224
sathish kannan
Valued Contributor

Re: Fibre Channel HPUX

Hello Stefano,

First of all on Fibre channel disk controller world we do not use Port address as MAC address but we call it as world wide number (WWN).

Use ioscan -fnkCfc and get the fibrechannel address.

#ioscan -fnkCfc

Use #fcmsutil /dev/fcdX to get the WWN number.

If you need to identify the disk, use

#ioscan -fnkCdisk
and identify the disk description.
Also you can use
#diskinfo -v /dev/rdsk/cXtXdX

to identify the disk type.

Regards
Sathish
Don't Think too much