EA for storage

Asifahmed
New Contributor III

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.

4 REPLIES 4

jamf-42
Valued Contributor II

Do the built in values not suffice? 

Capture 2024-08-02 at 14.24.18.png

AJPinto
Honored Contributor III

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

Asifahmed
New Contributor III

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

jamf-42
Valued Contributor II

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