From 07a48092b80af21bc4c62632ff580c835609c440 Mon Sep 17 00:00:00 2001 From: Michael <30936296+mtan93@users.noreply.github.com> Date: Wed, 24 Aug 2022 17:55:33 +0100 Subject: [PATCH] Update mosyle-attributes.sh --- Helpers/mosyle-attributes.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Helpers/mosyle-attributes.sh b/Helpers/mosyle-attributes.sh index e6560b0..845993d 100644 --- a/Helpers/mosyle-attributes.sh +++ b/Helpers/mosyle-attributes.sh @@ -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