Posted on 01-28-2016 07:29 AM
Strange one, but - is it possible to do a filter or search on Casper to show us all the machines with an SSD and all the ones without?
Just as weve been doing a swap and trying to keep track of ones weve done and the ones that need upgrading?
Thanks
Simon
Solved! Go to Solution.
Posted on 01-28-2016 07:36 AM
Hello
we use an Extension Attribute from this script
I think I found it within some Jamf Nation post a while ago
Hope it helps
Ciao
Carlo
#!/bin/sh
disk0=`diskutil info disk0 | grep "Solid State" | awk '{ print $3 }'`
disk1=`diskutil info disk1 | grep "Solid State" | awk '{ print $3 }'`
if [[ $disk0 == "Yes" ]]; then
echo "<result>disk0 is SSD</result>"
exit 0
elif [[ $disk1 == "Yes" ]]; then
echo "<result>disk1 is SSD</result>"
exit 0
fi
echo "<result>No SSD Drives</result>"
exit 0
Posted on 01-28-2016 07:36 AM
Hello
we use an Extension Attribute from this script
I think I found it within some Jamf Nation post a while ago
Hope it helps
Ciao
Carlo
#!/bin/sh
disk0=`diskutil info disk0 | grep "Solid State" | awk '{ print $3 }'`
disk1=`diskutil info disk1 | grep "Solid State" | awk '{ print $3 }'`
if [[ $disk0 == "Yes" ]]; then
echo "<result>disk0 is SSD</result>"
exit 0
elif [[ $disk1 == "Yes" ]]; then
echo "<result>disk1 is SSD</result>"
exit 0
fi
echo "<result>No SSD Drives</result>"
exit 0
Posted on 01-28-2016 07:53 AM
Perfect! Works!! What did you put in as your criteria? "if not 'No SSD Drives'"
Thanks
Posted on 01-28-2016 08:02 AM
Where "Tipo disco" is the given name to EA
Ciao
Carlo
Posted on 01-28-2016 08:39 AM
Yeah thats what we've got! Cheers! Really helps!