From 03177d4e9de1fb1fd668c94180e37a12a46f37ba Mon Sep 17 00:00:00 2001 From: Theile Date: Fri, 21 Oct 2022 10:39:22 +0200 Subject: [PATCH] Get Installomator.log from client --- MDM/Collect Installomator.log.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 MDM/Collect Installomator.log.sh diff --git a/MDM/Collect Installomator.log.sh b/MDM/Collect Installomator.log.sh new file mode 100644 index 0000000..c0af18d --- /dev/null +++ b/MDM/Collect Installomator.log.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +# A small script to grab Installomator log from a client Mac. +# Can be sent to the client so the result can be seen in MDM +# Only uncomment the line below for the things you want to see. + +logFile="/var/log/Installomator.log" + +# Show latest 100 lines of the log +tail -100 "${logFile}" + +# Show latest 500 lines but filter to REQ|ERROR|WARN lines +# Great overview of the log +#tail -500 "${logFile}" | grep --binary-files=text -E ": (REQ|ERROR|WARN)" + +# Show only one label +# Great to see everything for a label that might fail or not working as expected +label="valuesfromarguments" +#cat "${logFile}" | grep --binary-files=text ": ${label}"