Answered by:
Suspend when there is no (web) activity

Question
-
I have written a small script that suspend the WHS when there are no active sessions from my Windows Vista and MacBook computer ('net session' cmd).
But when there is webactivity (remote access shared folders) the 'net sessions' cmd displays 'no active connections' and unfortunately the WHS goes down.
Are there commands available to check webactivity?Friday, July 4, 2008 11:37 AM
Answers
-
NET SESSION lists only incoming direct computer-to-computer connections on your local network. It doesn't know about connections through IIS.
Because web activity is stateless, i.e. every request must be complete in itself, there is no way to determine if the user who requested a page 30 seconds ago is still "connected". (In a sense, that user isn't connected, by definition. You're only connected to a web server for the length of time required to service your request.) So there's really no way to determine if there's current web activity which should keep a server from going into a low power state.Friday, July 4, 2008 1:36 PMModerator
All replies
-
EOvermeer wrote: I have written a small script that suspend the WHS when there are no active sessions from my Windows Vista and MacBook computer ('net session' cmd). It is unadvisable to suspend WHS. It will periodically check itself for various issues (check disk, data migration, etc.) I would suggest you disable your script.
EOvermeer wrote: But when there is webactivity (remote access shared folders) the 'net sessions' cmd displays 'no active connections' and unfortunately the WHS goes down.
Are there commands available to check webactivity?Friday, July 4, 2008 1:00 PMModerator -
NET SESSION lists only incoming direct computer-to-computer connections on your local network. It doesn't know about connections through IIS.
Because web activity is stateless, i.e. every request must be complete in itself, there is no way to determine if the user who requested a page 30 seconds ago is still "connected". (In a sense, that user isn't connected, by definition. You're only connected to a web server for the length of time required to service your request.) So there's really no way to determine if there's current web activity which should keep a server from going into a low power state.Friday, July 4, 2008 1:36 PMModerator -
Thanks Ken for your clear answer. Ik know it's important for some servers running 24h a day (I am a Linux geek). For a Linux server you can move the maintenance cron jobs to another time. Power saving for the WHS is important for me because this system is running not more than 8 hours a *week*. The maintenance jobs on the WHS must started manually by me.
I am running now the add-in Lights Out. That does a great job for me although it's not detected websessions but your answer explains why.
Monday, July 7, 2008 7:56 AM