Posted on 03-01-2018 08:39 AM
Hi, I have a smart group which shows users who haven't restarted in 10days (uptime). i was wondering if there was a way to email those users letting them know they should restart.
Thanks in advance,
Atif
Posted on 03-01-2018 09:12 AM
Why not send up an on screen message about high uptime rather than an email that can be ignored or missed? If the Macs are already in a Smart Group, you can have a policy just send up a notification, like with jamfHelper in a script, or with the jamf binary, or some 3rd party tool, etc.
It's not that easy to send emails to clients from the console without doing things like having the Mac send an email to the user of that system in a policy, which involves figuring out the client's email address, from the local account or some other method.
One word of caution on this. Since uptime is something that can change very quickly, and I presume you use an EA to capture the uptime, which only gets updated on inventory collection, I would recommend using a script to first check uptime, live, to be sure it's in the high range you expect it to be, before sending up any kind of message on screen. This would avoid nagging someone about rebooting their Mac, shortly after they just rebooted, which isn't a great user experience.
Posted on 03-01-2018 09:30 AM
Thanks for that mm2270, much appreciated.
So, i have in place a script i got from GitHub which uses Cocoadialog to notify users who havent restarted their machine for 14days. Using CocaDialog they have 3 options. However i was looking to send the users an email informing them they haven't restarted within 10days so please restart. Also letting them know if they dont restart within 14 days they will be prompted to restart.
I was thinking with a on screen notification they can ignore it and move it aside. With an email they will defiantly see it, however once they see its from IT they wont read it properly...
Thanks for your reply!