免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4972 | 回复: 5

在线等,如何在主机中看HBA卡的WWN号 [复制链接]

论坛徽章:
0
发表于 2006-01-19 21:25 |显示全部楼层
在线等

论坛徽章:
0
发表于 2006-01-20 00:27 |显示全部楼层
luxadm -e dump_map {enclosure[,dev]... | pathname...}

论坛徽章:
7
荣誉会员
日期:2011-11-23 16:44:17水瓶座
日期:2013-08-28 21:20:16丑牛
日期:2013-10-02 21:01:462015年迎新春徽章
日期:2015-03-04 09:54:45操作系统版块每日发帖之星
日期:2016-06-05 06:20:0015-16赛季CBA联赛之吉林
日期:2016-06-20 08:24:0515-16赛季CBA联赛之四川
日期:2016-08-18 15:02:02
发表于 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.)

论坛徽章:
0
发表于 2010-08-30 17:31 |显示全部楼层
luxadm probe\r\n\r\nluxadm -e port\r\n\r\nluxadm -e dump_map  HBA卡路径

论坛徽章:
0
发表于 2010-09-26 12:32 |显示全部楼层
吼吼,偶只是来看看的

论坛徽章:
0
发表于 2010-10-09 21:36 |显示全部楼层
fcinfo -e port或者luxadm -e port
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP