Is it possible to report on the servers that have SAN disk attached and list the drive letters associated to that SAN disk …
For example I have a file server who’s G drive attached to the SAN. I can tell its SAN disk as under properties, hardware shows IBM2145 SCSI Disk Device
to get SAN drive information. Since we use Qlogic HBAs, then relevance of the task to install SANsurfer only targets machines containing HBAs.
Here is part of an example of targeting a Qlogic 2460 HBA:
(exists values “MatchingDeviceId” whose (it as string contains “_0137”) of keys whose (value “ProviderName” of it = “QLogic”) of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class{4D36E97B-E325-11CE-BFC1-08002BE10318}” of registry)
Note that the GUID will may vary by provider. At least for Qlogic, there is a published table on their website correlating ID string in the registry to HBA model. In this example, “0137” = QLA2460.
Once SANsurfer is installed, you can do a CLI with the tool to determine if there are active connections. Dump the CLI query output to a file, then use an analysis to compile the results.
It can also be used to dump detailed HBA, WWPN, link/path status, links with high error counts, etc. to a log file. Then use an analysis to parse the log to extract whatever info you are looking to find.