Solved

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

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
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…

791 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