Solved

Need a useable Wake On LAN solution that can run on a schedule.

Posted on 2016-10-21
5
54 Views
Last Modified: 2016-10-24
I've previously asked a similar question, but, long story short - I came into this position and the company was already using Aquila Technology's WakeOnLAN -- For some reason this has just stopped working intermittently through-out our environment.  

What I need it to do:  Send wake-up packets to a list of hostnames/MAC addresses at a scheduled time mo-fri at 6:30am, and if possible, send a shutdown command at around 11:00pm.  Lenovo T450s laptops and Thinkcentre M83 is the very heavy majority of workstations, (some desktop, some laptop).  

We're at our "end of year" before budget goes back up, so free or extremely cheap would be preferable.
0
Comment
Question by:Daniel Checksum
  • 3
  • 2
5 Comments
 
LVL 26

Assisted Solution

by:skullnobrains
skullnobrains earned 500 total points
ID: 41854157
what about a do-it-yourself solution : it should be quite easy to implement

assuming you have a file containing the MAC addresses of each host, you can schedule a command like the following in a crontab :

cat /path/to/list/of/macs | xargs -P 100 -n 1 ether-wake

this will loop through all the mac addresses and run ether-wake 100 times in parallel until all hosts have received the WOL packet

you can probably cron this command multiple times with a few minutes interval to make sure each host goes up and possibly ping each host after a while and send an alert if some hosts are still down

this could run in a tiny vm with whatever unix-like os as long as you install ether-wake. a minimal linux box with basically busybox and a kernel should do.

if ether-wake is unavailable you can easily find one-liners that could send the same packet from the shell using netcat or a similar tool
0
 
LVL 1

Author Comment

by:Daniel Checksum
ID: 41854168
We're a 100% Microsoft environment, I can almost guarantee I won't get a linux/unix OS approved.  If I could write the same thing in a Windows batch file, I could schedule a task on a server to run if that's a possibility.
0
 
LVL 26

Accepted Solution

by:
skullnobrains earned 500 total points
ID: 41854210
windows has "wolcmd" so the equivalent should be feasible in a batch or powershell script, and you can setup jobs. i'm not a microsoft guy and i don't even have a windows box at my current location so i can't help you much more right now. for a small number of ips a basic for loop should do.
0
 
LVL 1

Author Closing Comment

by:Daniel Checksum
ID: 41857078
Downloaded wolcmd, found some proper syntax for it, going to give it another go.  I suppose I could just create a shutdown -s batch file that I could schedule as well.  Thanks for your help, skullnobrains.
0
 
LVL 26

Expert Comment

by:skullnobrains
ID: 41857086
for remote shutdown, in a domain you might want to use psshutdown initially from sysinternals but available in technet nowadays
1

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now