[Casper] Best way to check disk space on /Volumes/Data?

Bryan Vines bkvines at wgclawfirm.com
Mon Apr 6 15:02:55 PDT 2009


Hi Folks,

We've gone to using three partitions for our machines: Restore,  
Macintosh HD, and Data.

     Restore contains the Casper Restore partition.
     Macintosh HD contains the OS and applications.
     Data contains the User home folders.

I know I can track free space on Macintosh HD in the JSS, but what's  
the best way to check the space on the Data partition?

I've gotten as far as writing an AppleScript to test the free space on  
the Data partition. I have an arbitrary threshhold of 90% full as my  
warning level. The script will return TRUE if the Data partition is  
90% full or greater, it returns FALSE otherwise.

Where I'm running into a problem is figuring out how to take this  
information and create a Smart Group containing machines whose Data  
partition is 90% full or better.

I've seen some references to installing dummy packages, then creating  
Smart Groups based on whether a particular package is installed.

Is this the way to go, or is there a better way?  And if this is the  
right way, is there a good reference on doing this?

--
Bryan Vines
bkvines at wgclawfirm.com


More information about the Casper mailing list