Solaris Fibre Channel Commands

To see info on all fc ports:
fcinfo hba-port -l

To see port status:
luxadm -e port

Show link errors:
luxadm -e rdls /dev/cfg/c3
Examine and individual path:
luxadm disp /dev/rdsk/c2t500601603022431Ed0s2
Run an inquiry on a disk:
luxadm inq /dev/rdsk/c2t500601603022431Ed0s2
Display info on scsi devices:
cfgadm -al

Sun Multipather examples

Shows the fc ports:
mpathadm list initiator-port

Check for support:
mpathadm list mpath-support

In much more detail, this command show’s what types of drives are supported by libmpscsi_vhci.so
mpathadm show mpath-support libmpscsi_vhci.so

mpathadm show initiator-port iqn.1986-03.com.sun:01:00144faac76a.47d3e777,4000002a00ff

To see how many “logical units” are visible:
mpathadm show lu /dev/rdsk/c4t60060160D33A1500566B929242EEDC11d0s2
o see the details ( the paths that make up ) a logical unit
mpathadm show lu /dev/rdsk/c4t60060160D33A1500566B929242EEDC11d0s2
Here’s each command again with sample output:
root@shadow:/> fcinfo hba-port -l
HBA Port WWN: 10000000c9612601
OS Device Name: /dev/cfg/c2
Manufacturer: Emulex
Model: LP10000-S
Firmware Version: 1.92a1
FCode/BIOS Version: 1.50a9
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb
Current Speed: 2Gb
Node WWN: 20000000c9612601
Link Error Statistics:
Link Failure Count: 0
Loss of Sync Count: 5
Loss of Signal Count: 0
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 16
Invalid CRC Count: 0
HBA Port WWN: 10000000c950c991
OS Device Name: /dev/cfg/c3
Manufacturer: Emulex
Model: LP10000-S
Firmware Version: 1.92a1
FCode/BIOS Version: 1.50a9
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb
Current Speed: 2Gb
Node WWN: 20000000c950c991
Link Error Statistics:
Link Failure Count: 0
Loss of Sync Count: 5
Loss of Signal Count: 0
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 29842
Invalid CRC Count: 0

HBA Port WWN: 2100001b3217ecc7
OS Device Name: /dev/cfg/c1
Manufacturer: QLogic Corp.
Model: QLE2462
Firmware Version: 4.0.23
FCode/BIOS Version: QLE2462 Host Adapter Driver(SPARC): 1.24 11/15/06
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb 4Gb
Current Speed: 2Gb
Node WWN: 2000001b3217ecc7
HBA Port WWN: 2101001b3237ecc7
OS Device Name: /dev/cfg/c2
Manufacturer: QLogic Corp.
Model: QLE2462
Firmware Version: 4.0.23
FCode/BIOS Version: QLE2462 Host Adapter Driver(SPARC): 1.24 11/15/06
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb 4Gb
Current Speed: 2Gb
Node WWN: 2001001b3237ecc7

See Remote info too..perhaps
fcinfo remote-port -l -p remote_wwn
This didn’t work, i think because it’s clarion and not sun storage
• luxadm

root@shadow:/> luxadm -e port
/devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,emlxs@1/fp@0,0:devctl CONNECTED
/devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,emlxs@2/fp@0,0:devctl CONNECTED

Show link Errors
root@shadow:/> luxadm -e rdls /dev/cfg/c3

Link Error Status information for loop:
al_pa lnk fail sync loss signal loss sequence err invalid word CRC
610413 0 1 0 0 87 0
610813 0 1 0 0 255 0
610f13 0 5 0 0 29842 0
NOTE: These LESB counts are not cleared by a reset, only power cycles.
These counts must be compared to previously read counts.

Found Fibre Channel device(s):
Node WWN:50060160b022431e Device Type:Disk device
Logical Path:/dev/rdsk/c2t500601603022431Ed0s2
Logical Path:/dev/rdsk/c2t500601693022431Ed0s2
Logical Path:/dev/rdsk/c3t500601613022431Ed0s2
Logical Path:/dev/rdsk/c3t500601683022431Ed0s2

EXAMINE A PATH
root@shadow:/> luxadm disp /dev/rdsk/c2t500601603022431Ed0s2
DEVICE PROPERTIES for disk: /dev/rdsk/c2t500601603022431Ed0s2
Vendor: DGC
Product ID: RAID 5
Revision: 0219
Serial Num: APM000549042
Unformatted capacity: 102400.000 MBytes
Read Cache: Enabled
Minimum prefetch: 0x0
Maximum prefetch: 0x0
Device Type: Disk device
Path(s):

/dev/rdsk/c2t500601603022431Ed0s2
/devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,emlxs@1/fp@0,0/ssd@w500601603022431e,0:c,raw
LUN path port WWN: 500601603022431e
Host controller port WWN: 10000000c9612601
Path status: O.K.
/dev/rdsk/c2t500601693022431Ed0s2
/devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,emlxs@1/fp@0,0/ssd@w500601693022431e,0:c,raw
LUN path port WWN: 500601693022431e
Host controller port WWN: 10000000c9612601
Path status: Not Ready
/dev/rdsk/c3t500601613022431Ed0s2
/devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,emlxs@2/fp@0,0/ssd@w500601613022431e,0:c,raw
LUN path port WWN: 500601613022431e
Host controller port WWN: 10000000c950c991
Path status: O.K.
/dev/rdsk/c3t500601683022431Ed0s2
/devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,emlxs@2/fp@0,0/ssd@w500601683022431e,0:c,raw
LUN path port WWN: 500601683022431e
Host controller port WWN: 10000000c950c991
Path status: Not Ready

RUN AN INQUIRY DISK
luxadm inq /dev/rdsk/c2t500601603022431Ed0s2
INQUIRY:
Physical Path:
/devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,emlxs@1/fp@0,0/ssd@w500601603022431e,0:c,raw
Vendor: DGC
Product: RAID 5
Revision: 0219
Serial Number APM000549042
Device type: 0x0 (Disk device)
Removable media: no
Medium Changer Element: no
ISO version: 0
ECMA version: 0
ANSI version: 4Reserved
Terminate task: yes
Response data format: 2
Additional length: 0xbc
Cmd received on port: b
Command queueing: no
VENDOR-SPECIFIC PARAMETERS
Byte# Hex Value ASCII
36 33 44 30 30 41 50 4d 30 30 30 35 34 39 30 34 32 3D00APM000549042
ff bf f6 e0 ….
96 00 e4 00 10 02 13 00 13 00 00 00 00 24 00 00 00 …………$…
00 03 03 04 00 04 00 00 00 00 3d 00 02 00 00 00 ……….=…..
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …………….
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …………….
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …………….
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …………….
00 .
• cfgadm

root@wells:/> cfgadm -al
Ap_Id Type Receptacle Occupant Condition
c0 scsi-bus connected configured unknown
c0::dsk/c0t0d0 disk connected configured unknown
c1 scsi-bus connected configured unknown
c1::dsk/c1t0d0 CD-ROM connected configured unknown
c2 fc-fabric connected configured unknown
c2::500601603022431e disk connected configured unknown
c2::500601693022431e disk connected configured unknown
c3 fc-fabric connected configured unknown
c3::500601613022431e disk connected configured unknown
c3::500601683022431e disk connected configured unknown
usb0/1 unknown empty unconfigured ok
usb0/2 unknown empty unconfigured ok
usb1/1.1 unknown empty unconfigured ok
usb1/1.2 unknown empty unconfigured ok
usb1/1.3 unknown empty unconfigured ok
usb1/1.4 unknown empty unconfigured ok
usb1/2 unknown empty unconfigured ok

cfgadm -c unconfigure c2::500601603022431e
• mpathadm

This command shows the two fc ports
root@shadow:/> mpathadm list initiator-port
Initiator Port: iqn.1986-03.com.sun:01:00144faac76a.47d3e777,4000002a00ff
Initiator Port: 10000000c950c991
Initiator Port: 10000000c9612601

This command lists the multi-path support
root@shadow:/> mpathadm list mpath-support
mpath-support: libmpscsi_vhci.so

In much more detail, this command show’s what types of drives are supported by this libmpscsi_vhci.so
root@shadow:/> mpathadm show mpath-support libmpscsi_vhci.so
mpath-support: libmpscsi_vhci.so
Vendor: Sun Microsystems
Driver Name: scsi_vhci
Default Load Balance: round-robin
Supported Load Balance Types:
round-robin
logical-block
Allows To Activate Target Port Group Access: yes
Allows Path Override: no
Supported Auto Failback Config: 1
Auto Failback: on
Failback Polling Rate (current/max): 0/0
Supported Auto Probing Config: 0
Auto Probing: NA
Probing Polling Rate (current/max): NA/NA
Supported Devices:
Vendor: SUN
Product: T300
Revision:
Supported Load Balance Types:
round-robin

Vendor: SUN
Product: T4
Revision:
Supported Load Balance Types:
round-robin

Vendor: ENGENIO
Product: INF-01-00
Revision:
Supported Load Balance Types:
round-robin

Vendor: LSI
Product: INF-01-00
Revision:
Supported Load Balance Types:
round-robin

Vendor: SUN
Product: Universal Xport
Revision:
Supported Load Balance Types:
round-robin

root@shadow:/> mpathadm show initiator-port iqn.1986-03.com.sun:01:00144faac76a.47d3e777,4000002a00ff
Initiator Port: iqn.1986-03.com.sun:01:00144faac76a.47d3e777,4000002a00ff
Transport Type: iSCSI
OS Device File: /devices/iscsi
root@shadow:/> mpathadm show initiator-port 10000000c9612601
Initiator Port: 10000000c9612601
Transport Type: Fibre Channel
OS Device File: /devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,emlxs@1/fp@0,0

To see how many “logical units” are visible.
root@shadow:/> mpathadm list lu
/dev/rdsk/c4t60060160D33A1500566B929242EEDC11d0s2
Total Path Count: 4
Operational Path Count: 4

To see the details ( the paths that make up ) a logical unit
root@shadow:/> mpathadm show lu /dev/rdsk/c4t60060160D33A1500566B929242EEDC11d0s2
Logical Unit: /dev/rdsk/c4t60060160D33A1500566B929242EEDC11d0s2
mpath-support: libmpscsi_vhci.so
Vendor: DGC
Product: RAID 5
Revision: 0219
Name Type: unknown type
Name: 60060160d33a1500566b929242eedc11
Asymmetric: yes
Current Load Balance: round-robin
Logical Unit Group ID: NA
Auto Failback: on
Auto Probing: NA

Paths:
Initiator Port Name: 10000000c9612601
Target Port Name: 500601603022431e
Override Path: NA
Path State: OK
Disabled: no

Initiator Port Name: 10000000c9612601
Target Port Name: 500601693022431e
Override Path: NA
Path State: OK
Disabled: no

Initiator Port Name: 10000000c950c991
Target Port Name: 500601683022431e
Override Path: NA
Path State: OK
Disabled: no

Initiator Port Name: 10000000c950c991
Target Port Name: 500601613022431e
Override Path: NA
Path State: OK
Disabled: no

Target Port Groups:
ID: 1
Explicit Failover: yes
Access State: active
Target Ports:
Name: 500601603022431e
Relative ID: 0

Name: 500601613022431e
Relative ID: 0

ID: 2
Explicit Failover: yes
Access State: standby
Target Ports:
Name: 500601693022431e
Relative ID: 0

Name: 500601683022431e
Relative ID: 0

Leave a Reply

Your email address will not be published. Required fields are marked *

Categories

Best Buy Co, Inc.
Best Buy Co, Inc.
Best Buy Co, Inc.