We've been providing reports for some of our analysts, and the Last User data is being questioned as it contains reboot, etc. These are mostly Wintel techs.
Is there a way to take the exisitng Extension Attribute and exclude any Last User criteria that isn't really a Last User? Of course I mean if reboot is the Last User, the Extension Attribute should be intelligent enough to show the second-to-Last-User. ;)
#!/bin/sh
lastUser=`/usr/bin/last -1 -t console | awk '{print $1}'`
if [ $lastUser == "wtmp" ]; then
echo "<result>No logins</result>"
else
echo "<result>$lastUser</result>"
fi
The Wintel techs are like "Why it this so difficult to do on a Mac?"
I'm like "Why are Wintel boxes so ugly?"
LOL
Don
