Skip to main content

Hello All,

I was asked to generate a report for all mac devices with three columns printing total physical size of the disk, total  used space by user and OS/system and available free space can be used by user in future.

Now the problem is that if I use diskutil list, diskutil info / and df -h for all commands I am getting different values for each and every requirement, please help to find the most appropriate command for each.

 

I think diskutil list can provide me the most perfect physical size of the disk, and df -h is good for end user's available space and total space consumed by user and OS/system. Please correct me if I am wrong here.

Do the built in values not suffice? 


Do the built in values not suffice? 


I was thinking the same thing, I thought Jamf already collected this info.


Do the built in values not suffice? 


It prints in MB not in GB, again there will be an excel work.

BTW Boot drive Available means free space for user?

Boot drive percentage full in percentage again mathematical calculation to get the exact value in GB

Drive capacity gain in MB


It prints in MB not in GB, again there will be an excel work.

BTW Boot drive Available means free space for user?

Boot drive percentage full in percentage again mathematical calculation to get the exact value in GB

Drive capacity gain in MB


converting MB to GB in excel is very simple.. freespace is drive total capacity - used = freespace

percent full is just the calculation of the above data