Skip to main content
Question

How to create Advanced Search/ Report for computers with a full HD?

  • July 29, 2022
  • 3 replies
  • 22 views

Forum|alt.badge.img+1

Does anyone have tips for creating some sort of on going report or saved advanced search for computers where their Hard Drive is nearing capacity? Ideally I would like to limit this to a specific computer lab we have on campus. Just wondering if this is possible.

3 replies

jamf-42
Forum|alt.badge.img+17
  • Esteemed Contributor
  • 744 replies
  • July 29, 2022

I have a smart group with this, linked to a policy that pops up a message top say 'less than 20GB free' adjust accordingly... same will work for an advance search..

 

Criteria - Boot Drive Available MB - less than - 20000

 


FutureFacinLuke
Forum|alt.badge.img+8
  • Valued Contributor
  • 119 replies
  • July 29, 2022

I'm guessing that big Home folders are causing problems for other users, I ran into this and built a Smart Group where is a Member of the Labs Macs and Boot Drive Percentage Full > 95% for triggering an automated clean up, deleted all Home folders apart from the logged in user.

You could do it with a search

And Boot Drive Available for targeting macOS upgrades


Forum|alt.badge.img+6
  • Contributor
  • 17 replies
  • August 16, 2022

Unfortunately Boot Drive is not quite reliable indicator anymore.

I would suggest create Extension Attribute (input type - script, data type - integer) and use something like this to check the percentage of Data volume used (you can put there any other volume if you want):

#!/bin/sh
free=`df -m /System/Volumes/Data/ | awk '{getline; print $5}'| sed 's/%//'`
echo "<result>"${free}"</result>"

You can create a smart group and scope it then.