Remote Shutdown of NAS server from XBMC
#16
Hi,

I am trying to modify the script to shutdown my LACIE NAS and then turn-off the Xbox. However, I found that if my NAS is already switched off, the scripts returns error and exits . The subsequent commands are therefore skipped and the Xbox not turned off. I just like the script to test the NAS whether it's on, if its on, then switch it off, if it's already off, then switch off the Xbox only. Is there a way to do that? Can I ping the NAS and if a response is received, then execute the shutdown code, if it's alraedy off, then proceed to shutdown XBMC.
Reply
#17
try this
http://forum.xbmc.org/showpost.php?p=277...stcount=11
Reply
#18
Thanks mikko70, the script works a treat. I can't believe how simple the script was. I have imagined a more complex python script. Well down and thanks again.
Reply
#19
Having successfully created a shutdown script for my Xbox, I have then created a shortcut to shutdown my Edmini from my PC and I have tried the following URL:

http://admin:yourpassword@ipaddress/cgi-...n=shutdown

but I get the response: Windows cannot find http:// .... . Please check the spelling and try again. Can anyone tell me why does this link not work?

Thank you.
Reply
#20
are Nas IP and password and usersname correct?

you could check your IP with this program
http://www.mediafire.com/?q0mumdmzimc

default is something like
username:admin
password:admin

try first take connection your NAS typing your NAS IP (don't type anything else, it asks password ) in network browser (IExplorer, firefox etc)

btw now you could test my pm3 addition in other thread
Reply
#21
Yes, when I type in http://edmini, it brings me to the NAS page and I can log in. But if I use http://admin:admin@edmini, it doesn't work, windows cannot find it.
Reply
#22
What do you mean by the pm3 addition? Is that in the XBMC python script?
Reply
#23
Is possible shutdown xbox or xbox with nas from shutdown menu

go shutdown menu and select shutdown+ nas (press up/down) and it run script.
(replace all files from package, also script)
Reply
#24
Can you try typing

http://admin:yourpassword@ipaddress/...ction=shutdown

in your browser with the correct password and ip address, does it successfully shuts down the NAS?

I don't seem to be able to get mine to shutdown from a PC.
Reply
#25
The solution is actually quite simple, just type

http://192.168.0.xxx/cgi-bin/admin/reboo...n=shutdown

in your browser, which will prompts your for the username and password, you just click save password so that the browser remembers the name and password for future uses. I then created a desktop shortcut which when clicked, will shutdown the NAS. I can now shutdown the NAS from my PC and XBOX.

Thank you.
Reply
#26
I have a Linkstation Quad (LS-QL F/W 1.05).

The cgi-bin links such as the following...

Code:
http://192.168.0.xxx/cgi-bin/admin/reboot?action=shutdown

...don't work for me either.

I can shutdown the device via the browser, by navigating to the admin panel and selecting "Shutdown" from the "Maintenance" page.

There is no obvious url for this as the button uses the javascript OnClick. Is there any way to determine a way to shutdown one of these NAS boxes with a one-liner - or a script that can be triggered via XBMC?
Reply

Logout Mark Read Team Forum Stats Members Help
Remote Shutdown of NAS server from XBMC0