Solved

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

Posted on 2016-10-21
5
62 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

932 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

13 Experts available now in Live!

Get 1:1 Help Now