Chinaunix

标题: 在线等,如何在主机中看HBA卡的WWN号 [打印本页]

作者: kevin998    时间: 2006-01-19 21:25
标题: 在线等,如何在主机中看HBA卡的WWN号
在线等
作者: javalee21    时间: 2006-01-20 00:27
luxadm -e dump_map {enclosure[,dev]... | pathname...}
作者: nimysun    时间: 2006-01-20 05:23
标题: 夜半灌水一桶
Upon startup, the Platform Information and Control Library daemon, loads and\r\ninitializes plug-in modules. To get information from the PICL tree, you can\r\nuse the prtpicl command interface.\r\n\r\nIn the output following, I have noted the port & node WWN with this\r\nsymbol: <======\r\n\r\nTo determine the WWN of a Sun[TM] Qlogic HBA, run the following \r\ncommand(sample output included):\r\n\r\n#prtpicl -v -c scsi-fcp\r\n SUNW,qlc (scsi-fcp, 3e00000272)\r\n eviceID      0x1 \r\n :UnitAddress   1 \r\n :vendor-id     0x1077 \r\n :device-id     0x2312 \r\n :revision-id   0x2 \r\n :subsystem-id  0x10a \r\n :subsystem-vendor-id   0x1077 \r\n :min-grant     0x40 \r\n :max-latency   0 \r\n :interrupts    00  00  00  01 \r\n :class-code    0xc0400 \r\n :devsel-speed  0x1 \r\n :fast-back-to-back\r\n :66mhz-capable\r\n :fcode-rom-offset      0 \r\n :version       ISP2312 FC-AL Host Adapter Driver: 1.13.08 04/10/02 \r\n :device_type   scsi-fcp \r\n :#address-cells        0x2 \r\n :#size-cells   0 \r\n :manufacturer  QLGC \r\n :compatible   (3e0000027dTBL) \r\n  | pci1077,2312.1077.10a.2 |\r\n  | pci1077,2312.1077.10a |\r\n  | pci1077,10a |\r\n  | pci1077,2312.2 |\r\n  | pci1077,2312 |\r\n  | pciclass,0c0400 |\r\n  | pciclass,0c04 |\r\n :reg  \r\n00  02  08  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00\r\n00  01  02 \r\n08  10  00  00  00  00  00  00  00  00  00  00  00  00  00  00  01  00  02\r\n02  08  14 \r\n00  00  00  00  00  00  00  00  00  00  00  00  00  00  10  00 \r\n :node-wwn      20  00  00  e0  8b  0a  57  77   <====================\r\n :port-wwn      21  00  00  e0  8b  0a  57  77   <====================\r\n :assigned-addresses   \r\n81  02  08  10  00  00  00  00  00  00  20  00  00  00  00  00  00  00  01\r\n00  82  02 \r\n08  14  00  00  00  00  00  20  00  00  00  00  00  00  00  00  10  00 \r\n :devfs-path    /pci@1f,0/pci@1/SUNW,qlc \r\n :binding-name  SUNW,qlc \r\n :instance      -1 \r\n\r\nor try this script, it report only the wwn and the device path :\r\n\r\necho\r\nprintf \"See below the results :\\n\"\r\necho\r\nprtpicl -v -c scsi-fcp | grep port-wwn > /tmp/port-wwn\r\nprtpicl -v -c scsi-fcp | grep devfs-path > /tmp/devfs-path\r\npaste -d \"\\t\" /tmp/devfs-path /tmp/port-wwn\r\n\r\nTo determine the WWN of a Sun JNI HBA, run the following command:\r\n\r\n# prtpicl -v -c scsi\r\n SUNW,jfca (scsi, 8e0000023c)\r\n eviceID      0x2 \r\n :UnitAddress   2 \r\n :vendor-id     0x1242 \r\n :device-id     0x1560 \r\n :revision-id   0xb2 \r\n :subsystem-id  0x656b \r\n :subsystem-vendor-id   0x1242 \r\n :min-grant     0x8 \r\n :max-latency   0x8 \r\n :interrupts    00  00  00  01 \r\n :class-code    0xc0400 \r\n :devsel-speed  0x1 \r\n :66mhz-capable\r\n :fcode-rom-offset      0 \r\n :device_type   scsi \r\n :#size-cells   0 \r\n :#address-cells        0x2 \r\n :manufacturer  JNIC \r\n :copyright     Copyright (c) 2000-2003 by JNIC \r\n :fcode_revision        Version 1.0 \r\n :version       Version 1.0 \r\n :reg  \r\n00  00  10  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00 \r\n01  00  10  10  00  00  00  00  00  00  00  00  00  00  00  00  00  00  01  00 \r\n03  00  10  14  00  00  00  00  00  00  00  00  00  00  00  00  00  00  10  00 \r\n01  00  10  1c  00  00  00  00  00  00  00  00  00  00  00  00  00  00  01  00 \r\n02  00  10  30  00  00  00  00  00  00  00  00  00  00  00  00  00  08  00  00 \r\n :pci_slot      0x1000 \r\n :power-consumption    \r\n00  00  00  00  00  00  00  00  03  30  00  00  03  61  50  00  00  00  00  00 \r\n00  00  00  00  00  60  00  00  01  00  00  00  00  00  00  00  00  00  00  00 \r\n :model         FCX2-6562-L \r\n :my_wwn_lo     0x7300e0ca \r\n :my_wwn_hi     0x10000001 \r\n :board_id      0xe0ca \r\n :board_revision        0x8001 \r\n :lport_cfg     0xffffffff \r\n :seq_vers      MIL_32_v4eng9    \r\n :fcode_cksum   0xf16 \r\n :sequencer_cksum       0x598a \r\n :boots_wwn_lo  0xffffffff \r\n :boots_wwn_hi  0xffffffff \r\n :bootp_wwn_lo  0xffffffff \r\n :bootp_wwn_hi  0xffffffff \r\n :assigned-addresses   \r\n81  00  10  10  00  00  00  00  00  00  18  00  00  00  00  00  00  00  01  00 \r\n83  00  10  14  00  00  00  00  00  11  00  00  00  00  00  00  00  00  10  00 \r\n81  00  10  1c  00  00  00  00  00  00  1c  00  00  00  00  00  00  00  01  00 \r\n82  00  10  30  00  00  00  00  00  18  00  00  00  00  00  00  00  08  00  00 \r\n :cache-line-size       16 \r\n :latency-timer         64 \r\n :node-wwn      10  00  00  01  73  00  e0  ca  <===============\r\n :port-wwn      20  00  00  01  73  00  e0  ca  <===============\r\n :devfs-path    /pci@1f,4000/SUNW,jfca@2 \r\n :driver-name   jfca \r\n :binding-name  SUNW,jfca \r\n :bus-addr      2 \r\n :instance      0 \r\n :_class        scsi \r\n :name  SUNW,jfca\r\n\r\nor try this script, it report only the wwn and the device path :\r\n\r\necho\r\nprintf \"See below the results :\\n\"\r\necho\r\nprtpicl -v -c scsi | grep port-wwn > /tmp/port-wwn\r\nprtpicl -v -c scsi | grep devfs-path > /tmp/devfs-path\r\npaste -d \"\\t\" /tmp/devfs-path /tmp/port-wwn\r\n\r\nNOTE: You will not be able to locate a SUN Branded Emulex cards WWN while the system is up and running.\r\n\r\nyou will need to use .properties command at the ok prompt.\r\n\r\nThe prtpicl command does not work with SBus Sun Qlogic cards (x6757, Ivory). To\r\nfind the WWN of these cards, \'prtconf -vp\' can be used instead (reference infodoc 76953:\r\nSun StorEdge[TM] SAN Software: How to Get the WWN of Sun FiberChannel HBAs for LUN Masking.)
作者: qgqceo    时间: 2010-08-30 17:31
luxadm probe\r\n\r\nluxadm -e port\r\n\r\nluxadm -e dump_map  HBA卡路径
作者: o0不知火舞0o    时间: 2010-09-26 12:32
吼吼,偶只是来看看的
作者: t896948499    时间: 2010-10-09 21:36
fcinfo -e port或者luxadm -e port




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2