Posted on 08-02-2024 06:17 AM
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.
Posted on 08-02-2024 06:27 AM
Do the built in values not suffice?
Posted on 08-02-2024 06:32 AM
I was thinking the same thing, I thought Jamf already collected this info.
Posted on 08-02-2024 06:33 AM
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
Posted on 08-02-2024 06:36 AM
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