Friday, April 26, 2013

How to find the HOST WWN in BROCADE switch?

fcsw2:admin> nodefind 50:01:43:80:02:a3:00:16
Remote:
Type Pid    COS     PortName                NodeName
N    101501;2,3;50:01:43:80:02:a3:00:16;50:01:43:80:02:a3:00:17;
FC4s: FCP
NodeSymb: [41] "QMH2462 FW:v4.04.09 DVR:v8.02.01-k1-vmw43"
Fabric Port Name: 20:16:00:05:1e:04:0c:df
Permanent Port Name: 20:11:00:24:81:76:9a:62
Device type: NPIV Initiator


Port Index: 21 //same as 15 hex above


Share Area: No
Device Shared in Other AD: No
Redirect: No
Aliases: mat_esxs3 mat_esxs3


fcsw2:admin> fabricshow
Switch ID   Worldwide Name    Enet IP Addr    FC IP Addr      Name
-------------------------------------------------------------------------
4: fffc04 10:00:00:05:1e:34:7d:9b 16.53.144.100 0.0.0.0  >"fcsw2"
16:fffc10 10:00:00:05:1e:04:0c:df 16.53.146.146 0.0.0.0        "shishapangma" 


 FCID is 101501: Domain = 0x10(16), Area = 0x15(21), so we're looking for switch ID 0xfffc10, port 21.

7 comments:

  1. just wanted to know how to get the switch and port # of a wwn , which was earlier logged and now because of some reasons disconnected. So based on the wwn , i should know to which switch and port the wwn was logged earlier. Nodefind does work for this , as wwn is not logged in

    ReplyDelete
  2. just wanted to know how to get the switch and port # of a wwn , which was earlier logged and now because of some reasons disconnected. So based on the wwn , i should know to which switch and port the wwn was logged earlier. Nodefind does work for this , as wwn is not logged in

    ReplyDelete
    Replies
    1. No Srinivas ,We will not be able to find the details if the WWN is not logged into switch.The other way to identify is -

      Check where the other active host HBA is connected - You would be able to identify the switch name based on that .

      Eg : if the active HBA connected to switch bombay01 ,the other switch name should be bombay02 -

      Based on the naming convention following on your organization,it would be an easy catch

      The port number also would be same .This would work 98 %.





      Delete
  3. Hey philip
    thank you very much for your analysis. As you expressed . I have idea on the process you explained.
    But some one has told me that , we can get this information from the logs .
    when a WWN logged in it will get registered , and the port does the negotiations , is it .
    At the same way , when if the wwn is disconnected , it would also make a record in the some where in the logs that , a particular wwn is disconnected from a particular port/switch . this is what my assumption is .
    please correct me if I am wrong

    ReplyDelete
  4. Replies
    1. Hello Srinivas,

      Sorry for the delay.As per my understandings switch will not keep any info if the HBA is not logged in .We cant fully rely on the logs as it may not have the history all the time.The best way is to take a backup and keep.

      Delete
  5. When I type portshow 2 I get multiple wwn number. My question is very silly. How many devices can be connected to one port.

    I hope only one device per port, so i would see only two wwwn numbers. One switch and the other device.

    ReplyDelete