Monday, February 26, 2007

How to get HBA WWNs on Solaris

Recently I want to get the WWNs of the HBAs in our servers to match them with a SAN report generated by a tool in order to know which node in the report represents which server. Basically, there are two methods.

One of them is to run the command below:


# prtpicl -v -c scsi
SUNW,fas (scsi, 1140000032a)
...
:manufacturer JNIC
:fcode_revision Version 3.9
:copyright Copyright (c) 2000-2002 by JNIC
:reg
00 00 00 00 00 40 00 00 00 00 10 00 00 00 00 00 00 40 40 00 00 00 04 00 00 00 00 00 00 40 50 00 00
00 01 00 00 00 00 00 00 00 00 00 00 08 00 00
:emerald_id 0
:sbus_slot 0
:model FCE-1063
:parity-generated
:xilinx_rev 0x2000b
:revision-id 0x4
:device-id 0x1160
:my_wwn_lo 0x69a4966b
:my_wwn_hi 0x100000e0
:lport_cfg 0
:board_id 0x4966b
...

root@boxwood # prtpicl -v -c scsi-fcp
SUNW,qlc (scsi-fcp, 120000003b8)
...
:reg
00 00 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 10 10 00 00 00 00 00 00 00 00 00
00 00 00 00 00 01 00 02 00 10 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10 00
:node-wwn 20 00 00 e0 8b 1a 90 85
:port-wwn 21 00 00 e0 8b 1a 90 85
:assigned-addresses
81 00 10 10 00 00 00 00 00 00 03 00 00 00 00 00 00 00 01 00 82 00 10 14 00 00 00 00 00 10 00 00 00
00 00 00 00 00 20 00 82 00 10 30 00 00 00 00 00 12 00 00 00 00 00 00 00 02 00 00
...
:manufacturer QLGC
...
:reg
00 00 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 08 10 00 00 00 00 00 00 00 00 00
00 00 00 00 00 01 00 02 00 08 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10 00
:node-wwn 20 00 00 e0 8b 1a 55 63
:port-wwn 21 00 00 e0 8b 1a 55 63
:assigned-addresses
81 00 08 10 00 00 00 00 00 00 03 00 00 00 00 00 00 00 01 00 82 00 08 14 00 00 00 00 08 00 00 00 00
00 00 00 00 00 20 00 82 00 08 30 00 00 00 00 08 02 00 00 00 00 00 00 00 02 00 00
:hba0-adapter-hard-loop-ID 0
:hba0-enable-adapter-hard-loop-ID 0
:devfs-path /ssm@0,0/pci@19,700000/SUNW,qlc@1
:driver-name qlc
:binding-name pci1077,2300
:bus-addr 1
:instance 1
:_class scsi-fcp
:name SUNW,qlc

The other method is to use 'prtconf'. Here is an example:

# prtconf -vp > /tmp/prtconf.out
# cd /tmp; vim prtconf.out

Node 0xf00fa738
port-wwn: 210000e0.8b111339
node-wwn: 200000e0.8b111339
compatible: 'pci1077,2200.1077.4082.5' + 'pci1077,2200.1077.4082' + 'pci1077,4082' + 'pci1077,2200' + 'pciclass,010000' + 'pciclass,0100'
interrupts: 00000004
vendor-id: '1077'
device-id: '2200'
revision-id: '5'
subsystem-id: 00004085
subsystem-vendor-id: '1077'
manufacturer: 'QLGC'
reg: 00000002.00030000.00000400.00000002.00030800.00000400
device_type: 'scsi-fcp'
name: 'SUNW,qlc'
version: 'ISP2200 Sbus FC-AL Host Adapter Driver: 1.13.07 09/16/02'


3 comments:

Anonymous said...

This business of your hands!

Anonymous said...

Hi hope somebody can help. The final DVD image I get after converting an AVI with convertxtoDVD flashes with the brightness raising and lowering about 2x per second.

Any ideas??

Thanks
[url=http://www.topvideoconverter.com/drm-converter/]convert drm[/url]

Anonymous said...

I've got an .mpg file, which was made from an .avi by what I don't know, and though it plays okay Virtual Dub, which I was trying to use to brighten up the picture a bit, won't process it because it says an audio frame is incomplete.

An audio frame! I'm pretty sure that's what it said.

How can i fix it or work with Virtual dub so's it can fix it?

regards,

ab :)
[url=http://www.topvideoconverter.com/ipod-video-converter/]convert video to ipod[/url]