?
Solved

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

Posted on 2016-10-21
5
Medium Priority
?
111 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 2000 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 2000 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

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.
This article explains the fundamentals of industrial networking which ultimately is the backbone network which is providing communications for process devices like robots and other not so interesting stuff.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Suggested Courses

770 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