Free space of specific drive?

(imported topic written by Fcruson)

Just need free space of
D:
drive for a report.
Free and Total space
returns both
C: and D:
in the same field and is hard to seperate to report on just
D:.
Looking for relevance code to just return the one drive not system drive also.

FrankC

(imported comment written by jgstew)

From my “Hard Drive Audit - Universal” Analysis, found here:
http://bigfix.me/analysis/details/2994572

There is a property called “Spaces of Drives”, with the following relevance:

(name of it & " - Size: " & ((total space of it /(102410241024)) as string & " GB") & “, Used:(” & (((total space of it - free space of it)100/(total space of it)) as string) & "%25) " & (((total space of it - free space of it) /(102410241024)) as string & " GB") & “, Free:(” & (((free space of it)100/(total space of it)) as string) & "%25) "& ((free space of it /(102410241024)) as string & " GB")) of drives whose(exists name of it AND exists free space of it AND exists type of it AND exists total space of it AND type of it = “DRIVE_FIXED” AND total space of it != 0 AND total space of it > 102410241024)

You could get only the D: drive using this same relevance by adding:

it whose(it starts with “D:”) of

(imported comment written by liuhoting)

In general, you can use the inspector search to help you with this type of problem:

http://support.bigfix.com/cgi-bin/inspectorsearch/inspector_search.cgi

If you search for “space” you’ll see inspectors for free space of , , and a bunch more for total and used space.

(imported comment written by Fcruson)

Working with our TAM we came up with this, we are good to go!

following text of last “) " of (name of it & " - Size: " & ((total space of it /(102410241024)) as string & " GB”) & “, Used:(” & (((total space of it - free space of it)100/(total space of it)) as string) & "%25) " & (((total space of it - free space of it) /(102410241024)) as string & " GB") & “, Free:(” & (((free space of it)100/(total space of it)) as string) & "%25) "& ((free space of it /(102410241024)) as string & " GB")) of drives whose(exists name of it AND exists free space of it AND exists type of it AND exists total space of it AND type of it = “DRIVE_FIXED” AND total space of it != 0 AND total space of it > 102410241024 and name of it as lowercase contains “d:”)