SAN DISK Report?

(imported topic written by Gallus2391)

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

Mike.

(imported comment written by r.kelly)

BUMP.

I am looking for the start on some code that will report if an endpoint is attached to a SAN, the drive letter, and how much space is being used.

Thanks.

(imported comment written by SystemAdmin)

On Windows, use either an OEM utility or something like SANsurfer

http://driverdownloads.qlogic.com/QLogicDriverDownloads_UI/Product_detail.aspx?oemid=264

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.