/build/static/layout/Breadcrumb_cap_w.png

Best Practices Question


Time machines have been logged in by users.

05/31/2018 497 views
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

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.
  • 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.

All Answers

0
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.
Answered 06/14/2018 by: JasonEgg
Red Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ