NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Retired_Member
Apr 14, 2013shutdown on inactivity
I have two ReadyNAS Ultra that i use for movies storage.
I have configured XBMC to automatically wake-on-lan the NAS when it starts.
Problem is that i now need to find a way to automatically shutdown the NAS after a period of inactivity (say 2 hours) because i dont want to let the servers run 24/7 and it is annoying to have to physically shut them down all the time.
Someone told me a couple of months ago that it was possible to write a script to do it. But i don't have the necessary knowledge to do it myself. If someone can do it, i can pay money for it (through paypal).
Any help ?
thanks
I have configured XBMC to automatically wake-on-lan the NAS when it starts.
Problem is that i now need to find a way to automatically shutdown the NAS after a period of inactivity (say 2 hours) because i dont want to let the servers run 24/7 and it is annoying to have to physically shut them down all the time.
Someone told me a couple of months ago that it was possible to write a script to do it. But i don't have the necessary knowledge to do it myself. If someone can do it, i can pay money for it (through paypal).
Any help ?
thanks
11 Replies
Replies have been turned off for this discussion
- chirpaLuminaryI think I was that person.
Maybe I'll give a script a go sometime this week if I get bored at work.
How are you connecting with XBMC to watch movies? DLNA,CIFS,NFS?
Could tie off cues from one of those protocols, if no active connections. Also if you have disk spin-down enabled, could feed from that as well, if disks have been spun down fo X hours, shutdown. - Retired_Member
chirpa wrote: I think I was that person.
Maybe I'll give a script a go sometime this week if I get bored at work.
How are you connecting with XBMC to watch movies? DLNA,CIFS,NFS?
Could tie off cues from one of those protocols, if no active connections. Also if you have disk spin-down enabled, could feed from that as well, if disks have been spun down fo X hours, shutdown.
Hello,
I use an XBMC mod called "Advanced Wake-On-LAN". Basically in XBMC i have a custom menu called "NAS Movies" and it displays the list of the movies on my NAS. With this mod the WOL packet is automatically sent to my NAS as soon as i open the this menu, sends a ping and waits until the NAS answers to display the menu.
I have tried to find a way to automatically wake the NAS when i try to access a movie stored on it but i dont think it is possible...
Would greatly appreciate the script ! Just tell me how much you'd charge for it and i can pay through paypal - fredmertzAspirantJust installed a DuoV2, was looking for this feature too. Man, is this thread timely ...
If I had $.02 to add, i think any such script should be tied to disk inactivity to cast the widest net. My particular use case is a Logitech slim server accessed by a Squeezebox radio, which supports WOL. WOL can turn it on, I'd love to see if there were a way to then turn it off automatically when I stop listening. That would be perfect.
Also, ideally, though I don't use it, on power off, the power state should return to obeying whatever shutdown timers the user has set (unlike, apparently, how the dashboard works when powering down ...).
I'd be willing to kick some Paypal your way too. I'm surprised that Netgear didn't seem to complete this feature. - chirpaLuminaryCan someone give me SSH to a v2 unit?
- Retired_MemberStill no solution :(
Fredmertz found a solution but not for my unit. And there's some bug with it.
I'm still looking, and still willing to pay a reasonable price for it.
I'm also wondering if there is a way to send some kind of "magic packet" to shut down the NAS ? Maybe a workaround would be to set eventghost to send a command to shutdown the NAS when my HTPC goes to sleep - StephenBGuru - Experienced UserThere's no such "magic packet" built into WoL. It would create an obvious denial-of-service attack if there were.
- Retired_Member
StephenB wrote: There's no such "magic packet" built into WoL. It would create an obvious denial-of-service attack if there were.
So there's no way to automate the shutdown process from my computer ?
I thought maybe there could be a way to create a .bat file or autoit file to automatically connect through ssh and send a shutdown command, then use the script with eventghost to map it to my universal remote or trigger it everytime the htpc is shut down. - StephenBGuru - Experienced UserI was only responding to the "magic packet" question - there is none (if there were it would be a huge vulnerability that Malware could exploit).
You could put something together yourself. - Retired_MemberStill no solution for this ? :(
- clobberatorAspirantYou can cobble together your own solution.
Here's an example. You'd need to have some sort of Linux process knowledge. It's not hard to learn. (Really)
http://cubiq.org/shutting-down-linux-if-a-specific-process-is-idle
Also, here's a brief guide on how to tell if a Linux process is idle.
http://linuxshellaccount.blogspot.ca/2009/03/finding-processs-idle-time-on-linux-and.html
So with that, in theory you can put together a script that ends in
# shutdown -now
to shut down the NAS.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!