Can anyone help with this please?
I have to get the following information from servers (all Server OS’s):
- How much local physical disk is used per server?
- How much SAN disk is used per server? (understand this is difficult to distinguish)
- Ignore everything else – server-server mountpoints & NAS
I’ve considered using these three pieces of relevance to calculate the physical disk space used but can’t work out how to get the math to work on it:
(name of it & " - " & (total space of it / 1000 / 1000 - free space of it / 1000 / 1000) as string & " MB") of drives whose (type of it = "DRIVE_FIXED")
minus
(name of it & " - " & (free space of it / 1000 / 1000) as string & " MB") of drives whose (type of it = "DRIVE_FIXED")
Then I need to somehow exclude the NAS results which can be found if I ignore all rows that contain NETAPP from the query:
if (exists wmi) then (string values of selects "Model from Win32_DiskDrive" of wmi)