Skip to main content
Question

EA for storage

  • August 2, 2024
  • 4 replies
  • 30 views

Asifahmed
Forum|alt.badge.img+9

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

jamf-42
Forum|alt.badge.img+17
  • Esteemed Contributor
  • August 2, 2024

Do the built in values not suffice? 


AJPinto
Forum|alt.badge.img+26
  • Legendary Contributor
  • August 2, 2024

Do the built in values not suffice? 


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


Asifahmed
Forum|alt.badge.img+9
  • Author
  • Contributor
  • August 2, 2024

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


jamf-42
Forum|alt.badge.img+17
  • Esteemed Contributor
  • August 2, 2024

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