Time machines have been logged in by users.
Is there a way in Kace where I can run a report on a group of machines that tells how long a machine has been logged into by users on an Apple machine?
2 Comments
[ + ] Show comments
-
just the current user's session? A list of all users and cumulative time? You can create a custom inventory rule for the first scenario, don't know about the second. - JasonEgg 6 years ago
-
OK. Thank you. I would like to get a cumulative time of all logged in users on each machine. I won't need a list of all users. - fleminsa 6 years ago
Answers (1)
Please log in to answer
Posted by:
JasonEgg
6 years ago
I haven't figured out an easy way to do this, but this Custom Inventory Rule will give you the login info (but not duration) for currently logged in users:
ShellCommandTextReturn(last | grep 'still logged in')
To get a nice logged-in duration report you would have to edit the above command to give you only the login timestamp, then use SQL to convert that CIR field to a date and calculate the login duration. I suspect there's an easier way but wasn't able to find anything with cursory googling.