Author Topic: World Wide Name (WWN)  (Read 210 times)

kle2

  • Newbie
  • *
  • Posts: 13
World Wide Name (WWN)
« on: August 14, 2017, 05:59:52 am »
I am trying to get the WWN for my HBA card on several Windows 2012 R2 boxes.  Does anyone have a script or a hint for me to write one that can retrieve the WWN? Thanks!

td

  • Tech Support
  • *****
  • Posts: 2185
    • WinBatch
Re: World Wide Name (WWN)
« Reply #1 on: August 14, 2017, 07:55:43 am »
Like most Windows devices, the name is likely stored some place in the Windows registry so that would be the place to start.
"Success is a lousy teacher. It seduces smart people into thinking they can't lose."
  - Bill Gates


td

  • Tech Support
  • *****
  • Posts: 2185
    • WinBatch
Re: World Wide Name (WWN)
« Reply #2 on: August 14, 2017, 11:16:50 am »
You may also be able to use the "MSFC_FCAdapterHBAAttributes" WMI class via WinBatch COM Automation.  There are many WMI example in the Tech Support database that should help you get started.   

Here is a link to a VB script example that should easily adapt to a WinBatch script:

http://wutils.com/wmi/root/wmi/msfc_fcadapterhbaattributes/vbscript-samples.html
"Success is a lousy teacher. It seduces smart people into thinking they can't lose."
  - Bill Gates


kle2

  • Newbie
  • *
  • Posts: 13
Re: World Wide Name (WWN)
« Reply #3 on: August 14, 2017, 11:41:37 am »
Thank you all for your help!  You guys have always given me solutions :)