How are you calculating usage statistics for public machines?

New Contributor

Hello everyone,

I'm hoping someone can point me in the right direction. The school I work at has various iMacs and Computer labs, and I am in the process of tracking how often these machines are actually used. I.e. a user actually logged in and doing stuff. I have a solution for my iMacs where users login using their AD network accounts. I just run and grep the output of "ac -d" and it gives me login session times in decimal format.

However my laptop cart machines use a automatic login, and the "ac -d" terminal command will not work since the same user is constantly logged in.

I feel like I can't be the first person to run into this problem. Hoping to find a easier and more reliable solution than writing a complicated script.

Any help would be greatly appreciated.