Roger the Shrubber;619413 Wrote:
> Hi,
>
> I have set up a dedicated server with XP. I would like it to hibernate
> whenever nobody is at home. However, this is a rather complex but
> repeated weekly schedule (e.g. most days only morning/evening,
> sometimes over lunch, sometimes an afternoon, full days in weekend).
> I want to tackle it like this now:
> - use the idle timer function of the plugin, but not the EOD
> - set all wakeup times as scheduled (dummy) tasks in XP
> - with a scheduled task set to run 5 minutes after startup, block the
> plugin
> - with a scheduled task set at the end of every time, unblock the
> plugin, thus allowing the idle timer to do its work.
>
> For this, I need the CLI to block/unblock the idle timer. It is
> mentioned a few times throughout the thread, but not in the
> documentation, and I can not quite figure out how it should work. Any
> hints are therefore very welcome...
> Or maybe I should take a very different approach?
>
> Thanks!
No, no, your approach is perfectly valid. The SCPowerTool_latest.exe
(or zip) from http://code.google.com/p/srvrpowerctrl/downloads/list
contains the SCCLITool.exe utility. Use this for sending CLI commands
to SrvrPowerCtrl.
Use the windows scheduler to run:
..to block:
Code:
--------------------
scclitool.exe srvrpowerctrl setblock stay_awake viacli
--------------------
..and to unblock:
Code:
--------------------
scclitool.exe srvrpowerctrl clearblock whatever viacli
--------------------
The 'stay_awake' and 'whatever' parameters don't particularly
matter..but you have to have *something* in that placeholder in the
call.
You can test to see if the blocking and unblocking works by navigating
to the SBS webUI Extras->Server Power Control web page. If
SrvrPowerCtrl is blocked, you should see a 'Clear Block' entry near the
bottom of the list.
Two other approaches you could try:
If the CLI approach is problematic for whatever reason, you can also
block SrvrPowerCtrl by creating a block-file. On windows XP, this
would be:
C:\Windows\temp\spc-block
On Vista or Windows 7, this would be:
C:\ProgramData\TEMP\spc-block
To create the block file from the windows scheduler, have it run a
batch file like this:
set-block.bat:
Code:
--------------------
@echo off
rem WinXP
echo "Hey!" >%windir%\temp\spc-block
rem WinVista or Win7
rem echo "Hey!" >%ProgramData%\TEMP\spc-block
--------------------
To clear the block file:
clear-block.bat:
Code:
--------------------
@echo off
rem WinXP
del %windir%\temp\spc-block
rem WinVista or Win7
rem del %ProgramData%\TEMP\spc-block
--------------------
To get the system to wake up according to your desired schedule, you
could create a series of alarms for a player. Use the attached
'silent.mp3' as the only entry in the alarm's playlist. This will
create a silent alarm. I've tagged silent.mp3 with the genre
'zzz_Silent' so you can find it after you've added it to your music
library. SrvrPowerCtrl, of course, does the heavy lifting of
programming SCPowerTool.exe to wake the system for the alarm.
+-------------------------------------------------------------------+
|Filename: slient.zip |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=11549|
+-------------------------------------------------------------------+
--
gharris999
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=48521
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins