AIX Get fibre channel WWN with open firmware
id : fgh52sri8f
category : computer
blog : unix
created : 09/20/10 - 13:40:25

  • Boot on open firmware and :
0 > ls
000000c885e8: /ibm,serial
000000c89368: /chosen
000000c895c0: /packages
000000c896d8:   /disassembler
000000c8fac8:   /assembler
000000cb9c30:   /dev-tree
000000cba410:   /lpevents
000000cc23a0:   /deblocker
000000cc34d8:   /disk-label
000000cc7f80:   /tape-label
000000cc8288:   /obp-tftp
000000cd6f98:   /ip
000000cdd108:   /prep-boot
000000cdd948:   /fat-files
000000cdfce0:   /iso-13346-files
000000ce9580:   /utilities
000000d027e8:   /net
000000d08200:   /iso-9660-files
000000d095d8:   /boot-mgr
000000d1d6c0:   /chrp-loader
000000d1d8c0:   /pe-loader
000000d1e190:   /elf-loader
000000d219e8:   /nls-support
000000d22780:   /terminal-emulator
000000d22898:   /dynamic-reconfig
000000dad358:   /gui
000000dc8d60:     /iscsi
000000de03d0:   /post
000000ca2320: /cpus
000000ca6980:   /PowerPC,POWER5@0
000000ca7c88:   /PowerPC,POWER5@2
000000ca8890:   /PowerPC,POWER5@4
000000ca94f8: /memory@0
000000caec08: /memory@10000000
000000caee10: /memory@18000000
000000caf018: /memory@20000000
000000caf220: /memory@28000000
000000caf428: /memory@30000000
000000caf630: /memory@38000000
000000caf838: /memory@40000000
000000cafa40: /memory@48000000
000000cafc48: /memory@50000000
000000cafe50: /memory@58000000
000000cb0058: /memory@60000000
000000cb0260: /memory@68000000
000000cb0468: /memory@70000000
000000cb0670: /memory@78000000
000000cb0878: /memory@80000000
000000cb0a80: /memory@88000000
000000cb0c88: /memory@90000000
000000cb0e90: /memory@98000000
000000cb1098: /memory@a0000000
000000cb12a0: /memory@a8000000
000000cb14a8: /memory@b0000000
000000cb16b0: /memory@b8000000
000000cb18b8: /memory@c0000000
000000cb1ac0: /memory@c8000000
000000cb1cc8: /memory@d0000000
000000cb1ed0: /memory@d8000000
000000cb20d8: /memory@e0000000
000000cb22e0: /memory@e8000000
000000cb24e8: /memory@f0000000
000000cb26f0: /memory@f8000000
000000cb28f8: /memory@100000000
000000cb2b00: /memory@108000000
000000cb2d08: /memory@110000000
000000cb2f10: /memory@118000000
000000cb3118: /memory@120000000
000000cb3320: /memory@128000000
000000cb3528: /memory@130000000
000000cb3730: /memory@138000000
000000cb3938: /memory@140000000
000000cb3b40: /memory@148000000
000000cb3d48: /memory@150000000
000000cb3f50: /memory@158000000
000000cb4158: /memory@160000000
000000cb4360: /memory@168000000
000000cb4568: /memory@170000000
000000cb4770: /memory@178000000
000000cb6778: /options
000000cb74a8: /aliases
000000d22dd0: /openprom
000000d23088: /event-sources
000000d24c40:   /epow-events
000000d24dc8: /interrupt-controller@3fe0f000000
000000d26680: /interrupt-controller@3fe80409400
000000d28480: /interrupt-controller@3fe8000a400
000000d2a280: /rtas
000000d30b08: /vdevice
000000d33aa8:   /vty@30000000
000000d34eb0:   /IBM,sp@4000
000000d35f60:   /rtc@4001
000000d36868:   /nvram@4002
000000d36f70: /pci@80000002000000b
000000d3f228:   /pci@2
000000d62650:     /fibre-channel@1
000000d728e0:       /fp
000000d73380:       /disk
000000d75448:       /tape
000000d76640:     /fibre-channel@1,1
000000d868d0:       /fp
000000d87370:       /disk
000000d89438:       /tape
000000d4aeb0: /pci@80000002000000c
000000d57b18:   /pci@2,6
000000d8a6e8:     /ethernet@1
000000d9a308:     /ethernet@1,1
 ok


  • Get your device with dev :
0 > dev /pci@80000002000000b/pci@2/fibre-channel@1  ok


  • And get properties :
0 > .properties
ibm,loc-code            U7879.001.DQDVPYX-P1-C3-T1
vendor-id               000010df
device-id               0000fd00
revision-id             00000001
class-code              000c0400
interrupts              00000001
min-grant               000000ff
max-latency             00000000
subsystem-vendor-id     000010df
subsystem-id            0000fd02
devsel-speed            00000001
66mhz-capable
133mhz-capable
266mhz-capable
name                    fibre-channel
compatible              pci10df,fd02.1
                        pci10df,fd00
reg                     00c00800 00000000 00000000  00000000 00000000
                        03c00810 00000000 00000000  00000000 00001000
                        03c00818 00000000 00000000  00000000 00000100
                        02c00830 00000000 00000000  00000000 00020000
fcode-rom-offset        0000c000
fcode-version           312e3530 783100
manufacturer            456d756c 657800
device_type             fcp
model                   LP11000
#address-cells          00000004
#size-cells             00000000
clock-frequency         02625a00
alternate-reg           01c00820 00000000 00000000 00000000 00000100
node_wwn                20000000 c95fa670
port_wwn                10000000 c95fa670
ibm,fw-revision-level   00000100
assigned-addresses      83c00810 00000000 f8081000  00000000 00001000
                        83c00818 00000000 f8083000  00000000 00000100
                        81c00820 00000000 000ff800  00000000 00000100
                        82c00830 00000000 f8040000  00000000 00040000
ibm,phandle             2201000b
ibm,my-drc-index        2201000b