Hi,
I assume that I'm not the only one having this problem:
More then DNS-323 and just one UPS (with USB Signalling) so - only the NAS attached to the UPS via USB will shutdown automatically.
I created a simple shutdown script for windows.
It allows you to shutdown the NAS via wget (windows build) and 2 http calls.
Wget (all in one binary - no libraries needed)
Download for Win32:
http://users.ugent.be/~bpuype/wget/thanks to Bart Puype for the wget build ;-)When the main server shuts down due to a UPS Command, the script is called by the UPS Software during shutdown.
Cheers,
AndyB
Just copy the following lines to notepad and save as nas_shutdown.bat
@echo off
rem --- D-Link DNS-323 Shutdown Script
rem --- created by Andreas Baumgärtner
rem --- version 1.0
rem --- 20090930
rem --- Info:
rem --- don't change the uname!!
rem --- change passwd and ip to your needs
rem --- timeout is in seconds adjust it to your needs - for me 5 seconds where enough
rem --- only one try otherwise the script could delay the shutdown for too long
echo Shutting down NAS_002 ...
set UNAME=admin
set PASSWD=yourpassword
set IP=172.17.0.6
wget --tries=1 --timeout=5 "http://%IP%/goform/formLogin?f_login_type=0&f_LOGIN_NAME=%UNAME%&f_LOGIN_PASSWD=%PASSWD%"
IF %ERRORLEVEL%==0 (
wget --tries=1 --timeout=5 "http://%IP%/goform/sysShutDown?shootdown"
) ELSE (
echo Unable to shutdown NAS_002
)
echo Shutting down NAS_001 ...
set UNAME=admin
set PASSWD=yourpassword2
set IP=172.17.0.5
wget --tries=1 --timeout=5 "http://%IP%/goform/formLogin?f_login_type=0&f_LOGIN_NAME=%UNAME%&f_LOGIN_PASSWD=%PASSWD%"
IF %ERRORLEVEL%==0 (
wget --tries=1 --timeout=5 "http://%IP%/goform/sysShutDown?shootdown"
) ELSE (
echo Unable to shutdown NAS_001
)
SET IP=
SET PASSWD=
SET UNAME=