Prevent Macs from sleeping / WOL for mac?
10/26/2017 919 views
I'm new to IT Ninja, and a novice IT guy.
We're in a big company, and there are a few Macs. We want to install patches to these macs through Kace. Things seem to work just fine, except... when the macs are asleep. I'm not sure why that is, don't have the same problem on Windows.
I think this is probably a familiar issue any many of you need to support Macs in your companies. Is there a way to tell K1000 (or run a BASH script) to wake the mac up for patches? Alternatively, I can have the macs' sleep mode disabled but I rather not do that. What do you suggest?
Answer Chosen by the Author
Please log in to answer
We use the pmset command to schedule a wake up event. This command can be sent via an online shell script to set the machine to wake every day at 3:00am:
pmset repeat wakeorpoweron MTWRFSU 03:00:00
You can also send a Wake-On-Lan packet to Apple hardware, although it only wakes machines that are asleep, not powered down. The advantage of the scheduled event is that it will power on systems or wake them (hence the wakeorpoweron option).
Answered 10/27/2017 by: chucksteel