Solved

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

Posted on 2016-10-21
5
92 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 27

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 27

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 27

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Create a Windows 10 custom Image with custom task bar and custom start menu using XML for deployment.
A small collection of useful tips and tricks for Windows 10 users that I decided to write as a result of recent questions that were asked and answered at Experts Exchange. Two short video tutorials included. Enjoy..
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

688 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