{"id":59,"date":"2008-09-27T00:56:56","date_gmt":"2008-09-26T20:56:56","guid":{"rendered":"http:\/\/www.unixpin.com\/wordpress\/?p=59"},"modified":"2008-12-04T19:03:14","modified_gmt":"2008-12-04T15:03:14","slug":"wwn-in-unix","status":"publish","type":"post","link":"https:\/\/www.unixpin.com\/?p=59","title":{"rendered":"\u041a\u0430\u043a \u0443\u0437\u043d\u0430\u0442\u044c wwn \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u043e\u0432 \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0445 fc \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432"},"content":{"rendered":"<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0434\u043b\u044f Solaris, HP-UX, Linux, Tru64<br \/>\n<!--more--><\/p>\n<table border=\"1\">\n<tbody>\n<tr valign=\"top\">\n<td><strong>OS<\/strong><\/td>\n<td><strong>Command<\/strong><\/td>\n<\/tr>\n<tr valign=\"top\" bgcolor=\"#e6e6fa\">\n<td>Linux<\/td>\n<td>\u0414\u043b\u044f \u044f\u0434\u0440\u0430 2.6 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"http:\/\/man-wiki.net\/index.php\/8:lsscsi\" target=\"_blank\">\u043a\u043e\u043c\u0430\u043d\u0434\u0443 lsscsi<\/a>.<\/p>\n<p>WWN \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u043e\u0432 Qlogic:<br \/>\n<code># cat \/proc\/scsi\/qla*\/* | grep adapter-port<br \/>\nscsi-qla0-adapter-port=210000e08b822690;<br \/>\nscsi-qla1-adapter-port=210100e08ba22690;<br \/>\n<\/code><br \/>\nWWN \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0445 \u043a FC \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0443:<br \/>\n<code># cat \/proc\/scsi\/qla*\/* | grep target<br \/>\nscsi-qla0-target-0=5005076300426c01;<br \/>\nscsi-qla0-target-1=5005076300426c02;<br \/>\n<\/code><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td>Solaris<\/td>\n<td>\u0412 Solaris 10 \u0435\u0441\u0442\u044c \u0443\u0442\u0438\u043b\u0438\u0442\u0430 <a href=\"http:\/\/docs.sun.com\/app\/docs\/doc\/819-2240\/fcinfo-1m?a=view\" target=\"_blank\">fcinfo<\/a><\/p>\n<p>WWN \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u043e\u0432:<br \/>\n<code>prtpicl -v -c scsi-fcp |grep wwn<\/code><br \/>\n\u0438\u043b\u0438<br \/>\n<code>luxadm -e port | awk '\/^\\\/devices\/ { print \"luxadm -e dump_map \"$1 }' | sh<\/code><\/p>\n<p>WWN \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0445 \u043a FC \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430\u043c:<br \/>\n<code>luxadm probe -p<br \/>\ncfgadm -al -o show_FCP_dev<\/code><\/td>\n<\/tr>\n<tr valign=\"top\" bgcolor=\"#e6e6fa\">\n<td>HP-UX<\/td>\n<td>WWN \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u043e\u0432:<br \/>\n<code># ioscan \u2013funC fc<br \/>\nClass I H\/W Path Driver S\/W State H\/W Type Description<br \/>\n=================================================================<br \/>\nfc 0 0\/1\/2\/0 td CLAIMED INTERFACE HP Tachyon XL2 Fibre Channel Mass Storage Adapter<span style=\"color: #ff0000;\"> \/dev\/td0<\/span><br \/>\n<\/code><br \/>\n<code># \/opt\/fcms\/bin\/fcmsutil <span style=\"color: #ff0000;\">\/dev\/td0<\/span> | grep 'World Wide Name'<br \/>\nN_Port Node World Wide Name = 0x50060b000025bc67<br \/>\nN_Port Port World Wide Name = 0x50060b000025bc66<br \/>\n<\/code><br \/>\n\u0438\u043b\u0438 \u0432 \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u043e\u043a\u0443:<br \/>\n<code><br \/>\nioscan \u2013funC fc |grep ^fc| awk '{print \"\/opt\/fcms\/bin\/fcmsutil \" $NF}' | sh<br \/>\n<\/code><\/p>\n<p>WWN \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0445 \u043a FC \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430\u043c:<br \/>\n<code># fcmsutil \/dev\/td0 get remote all | grep 'World Wide Name'<br \/>\nTarget Port World Wide Name = 0x500104f0004b19ed<br \/>\nTarget Node World Wide Name = 0x500104f0004b19ec<br \/>\n<\/code><\/p>\n<p>\u0421\u0432\u044f\u0437\u044c \u043c\u0435\u0436\u0434\u0443 \u0432\u044b\u0432\u043e\u0434\u043e\u043c \u043a\u043e\u043c\u0430\u043d\u0434 ioscan \u0438 fcmutil<br \/>\n<code># ioscan -fnkC tape<br \/>\ntape 8 0\/2\/1\/0.98.14.255.1.3.0 tsmtape CLAIMED DEVICE STK T9840B<br \/>\n\/dev\/rmt\/tsmmt8<br \/>\n# fcmsutil \/dev\/td0 get remote all |more<br \/>\nTarget N_Port_id is = 0x620e13<\/code><\/p>\n<p>0x62<span style=\"color: #ff0000;\">0e<\/span>13 -&gt; <span style=\"color: #ff0000;\">0e<\/span> (Hex) -&gt; <span style=\"color: #ff0000;\">14<\/span> (dec) -&gt; 0\/2\/1\/0.98.<span style=\"color: #ff0000;\">14<\/span>.255.1.3.0 -&gt; \/dev\/rmt\/tsmmt8<\/td>\n<\/tr>\n<tr valign=\"top\">\n<td>Tru64<\/td>\n<td>WWN \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u043e\u0432:<br \/>\n<code>\/sbin\/hwmgr get attribute -category  fibrechannel_adapter<br \/>\n<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u0421\u043c\u043e\u0442\u0440\u0438 \u0442\u0430\u043a\u0436\u0435 \u0441\u0442\u0430\u0442\u044c\u0438<br \/>\n<a href=\"https:\/\/www.unixpin.com\/2008\/07\/07\/sun-hba-wwn\/\">\u041a\u0430\u043a \u0432\u044b\u044f\u0441\u043d\u0438\u0442\u044c wwn \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u043e\u0432 \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0445 fc-\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0432 Solaris?<\/a> \u0438 <a href=\"https:\/\/www.unixpin.com\/2008\/07\/02\/add-device-intohpux\/\">\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435-\u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0432 HP-UX<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0434\u043b\u044f Solaris, HP-UX, Linux, Tru64<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,3,24,25,4,93,372],"tags":[74,68,427,424,114,49,170,76,422,34,200,423,106,73,426,90,425,35,1021,1016,421,75],"class_list":["post-59","post","type-post","status-publish","format-standard","hentry","category-hp","category-sun","category-hpux","category-linux","category-solaris","category-unix-tru64","category-372","tag-cfgadm","tag-fc","tag-fcinfo","tag-fcmutil","tag-fi","tag-fiber-channel","tag-hardware","tag-hba","tag-host-bus-adapter","tag-hp-ux","tag-io","tag-ioscan","tag-jni","tag-luxadm","tag-qlogic","tag-san","tag-scsi","tag-tru64","tag-linux","tag-solaris","tag-world-wide-number","tag-wwn"],"_links":{"self":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts\/59","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=59"}],"version-history":[{"count":3,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts\/59\/revisions"}],"predecessor-version":[{"id":287,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts\/59\/revisions\/287"}],"wp:attachment":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=59"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=59"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=59"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}