Update mosyle-attributes.sh

This commit is contained in:
Michael
2022-08-24 17:55:33 +01:00
committed by GitHub
parent 0c6c0224b4
commit 07a48092b8

View File

@@ -3,10 +3,16 @@
PanicLogCount=$(/usr/bin/find /Library/Logs/DiagnosticReports -Btime -7 -name *.panic | grep . -c)
/bin/echo Kernel Panics Logged":""$PanicLogCount"
echo
echo
#TEAMVIEWER
TVID=$(defaults read /Library/Preferences/com.teamviewer.teamviewer.preferences.plist ClientID)
echo "TeamViewer ID: $TVID"
echo
echo
#LAST INFO
REBOOT=$(last | grep -m 1 "reboot" | awk '{ print $3 " " $4 " " $5 " " $6 }')
SHUTDOWN=$(last | grep -m 1 "shutdown" | awk '{ print $3 " " $4 " " $5 " " $6 }')
@@ -15,10 +21,16 @@ echo "Last Login: $LOGIN"
echo "Last Reboot: $REBOOT"
echo "Last Shutdown: $SHUTDOWN"
echo
echo
#Volumes
volmount=$(cd /Volumes && ls)
echo Volumes Mounted":" $volmount
echo
echo
#ZEROTIER
DIR="/Library/Application Support/ZeroTier"
if [ -d "$DIR" ]; then
@@ -42,6 +54,8 @@ else
fi
exit 0
echo
echo
hwType=$(/usr/sbin/system_profiler SPHardwareDataType | grep "Model Identifier" | grep "Book")
@@ -53,3 +67,6 @@ if [ "$hwType" != "" ];
else
echo Battery Health":" "N/A"
fi
echo
echo