Hello all forum members:
Almost exactly one year ago I wrote a script that became a sticky. ( "SCRIPT for Proper Manual or Automated Shutdown
" posted at http://www.serverelements.com/phpBB2/viewtopic.php?t=810
It's time for a sequel.
I have created a new script which runs on WinXP and can Turn ON
your NASLite system -- if your motherboard (and although I have not tested this, it should work with an appropriate PCI Ethernet card) supports WOL (Wake-On-LAN). I combined it with the script from a year ago (NASLite shutdown
) -- which still works for version 2.04 as well as it did when I wrote it for NASLite+ v1.5. I call this ability SysRC
(System Remote Control
). It can also wakeup a WinXP system (with minor limitations), and I plan a future extension that will also shutdown a WinXP system.
The script can be run interactively and provides a GUI for the user, but it also runs in batch mode triggerable from Windows TaskScheduler
. It took quite a bit of debugging time ... but now what happens at my place is ... once-a-day, TaskScheduler wakes up my second NASLite which is configured to perform a Mirror of my first NASLite server, then after some sufficient (pre-determined) time TaskScheduler shuts down the Mirror system. All unattended !
(The actual Mirror performed daily by NASLite rsync takes only a few minutes for the daily file changes on the main server.)
The script runs to 832 lines (half of which is documentation or blank lines for clarity). A very compact third-party auxiliary EXE program is needed to send a "Magic Packet" for the WOL function, and a simple TXT file containing a system list is also needed. I will hold off posting this new script (and associated files) for a few days until I get clarity about where/how to make this script available to everyone in a most convenient manner. ( I do not have experience uploading stuff like this ... when I did the original script a year ago it was short enough for simply posting within the associated thread. Any suggestions are appreciated ... and I'll hold off for some of our members' collective wisdom how to handle this the best way ... assuming other members are interested in this feature. Eventually it might even become another sticky
What say you ? Is there interest in this feature ?