Skip to main content
Jamf Nation, hosted by Jamf, is the largest Apple IT management community in the world. Dialog with your fellow IT professionals, gain insight about Apple device deployments, share best practices and bounce ideas off each other. Join the conversation.

See all Mac user login times in Casper/Jamf Pro

Hi,

Is there a way to see a broad list of user logins reported to Casper for all devices?
I know I can go to a single device and see logins, but what if I want to see how many logins were in a lab, or across the site, between 10am and 11am this morning.

Is it possible?

Thanks

Like Comment
SOLVED Posted: 12/7/17 at 9:47 AM by lrabotteau

Hello ,

You can maybe write and upload a script to your JSS with login trigger like that .

!/bin/bash

Hostname=$2
User=$3
Date=$(date)
ComputerName=$2
EthernetInterface=$(networksetup -listallhardwareports | grep 'Thunderbolt Ethernet' -A1 | grep -o en.)
MacAddress=$(ifconfig "${EthernetInterface}" | grep 'ether' | awk '{ print $2 }')
IpAddress=$(ifconfig | grep "inet " | grep -v 127.0.0.1 | awk '{print $2}')
echo $MacAddress 'Login' $User $Date $Hostname $IpAddress >> /Users/Shared/$ComputerName
exit 0

But you have to specify maybe the same folder for overwrite on the same txt file.
I've never test on a shared drive

Like