Hardware Reporting

mtory
New Contributor

Random question, but is it possible or are there any scripts out there that could report on Hardware issues?

 

* Display issues/cracked screens (number of nits)

* Overheating

* Fan Issues

etc

3 REPLIES 3

AJPinto
Honored Contributor III

Something like Jamf Protect may be able to grab event logs for thermal events, and fan failures. There is not really a way for the OS to be aware the display is cracked. It may be possible to know what the brightness is set to, but not what the display's brightness actually is if it's failing. I don't think you could write a script that would grab any of this usably, it would need to be picked up live with event logs and redirected to SIEM for reporting which is not something Jamf Pro can do but Jamf Protect can do this.

 

What is the problem you are trying to solve?

mtory
New Contributor

No issue, just trying to be proactive with devices to see what issues I might be able to report on for those still in warranty.

agungsujiwo
Contributor

I use the Computer management > Extension attribute , to get battery status.
you can explore generating Service Recommended or normal battery reports,
here is the script I use :

#!/bin/sh
#Determine model
model=`system_profiler SPHardwareDataType | grep "Model Name:" | cut -d ' ' -f 9`

if [[ "$model" =~ "Book" ]]; then

#Determine battery condition
result=`system_profiler SPPowerDataType | grep "Condition" | cut -d ':' -f 2 | sed -e 's/^[[:space:]]*//'`
echo "<result>$result</result>"
else
echo "<result>Not A MacBook</result>"
fi