NASLite Network Attached Storage

www.serverelements.com
Task-specific simplicity with low hardware requirements.
It is currently Sun Jun 22, 2025 4:53 pm

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Jul 28, 2006 4:25 am 
Offline

Joined: Wed Jun 14, 2006 4:19 am
Posts: 2
please download the compiled script at the address below.
http://www.autoitscript.com/forum/index ... opic=29943

This is the script:

Run('telnet ' & IniRead("shutdown.ini", "NASLite", "ip", ""))
sleep(500)
Send(IniRead("shutdown.ini", "NASLite", "username", "") & '{Enter}')
Send(IniRead("shutdown.ini", "NASLite", "password", "") & '{Enter}')
Send("8{Enter}")
Send("y{Enter}")
sleep(7000)
ProcessClose("telnet.exe")
Exit


Top
 Profile  
 
PostPosted: Fri Aug 25, 2006 10:49 am 
Offline

Joined: Fri Aug 25, 2006 10:41 am
Posts: 1
I used a vbs script to reboot or shutdown my NAS. This avoids using Auto-it or other 3rd party tools but I guess you will need Win2k or higher.

Copy the following into a file with a .vbs extension and double-click it to run it. (you may want to rename the server name on the TELNET line to suit your configuration)



Option Explicit
Dim objShell, ret, ret2
Set objShell = CreateObject("WScript.Shell")

ret = objShell.Popup ("Reboot the NASLite+ server",,"NASlite+ Reboot",36)

if ret = 7 then
ret2 = objShell.Popup ("Shutdown the NASLite+ server",,"NASlite+ Shutdown",36)
if ret2 = 7 then
wscript.quit
end if
end if


objShell.Run "TELNET NASLITE"
Wscript.Sleep 2500

objShell.SendKeys "admin~"
WScript.Sleep 1500
objShell.SendKeys "nas~"
WScript.Sleep 7000

if ret2 = 6 then
objShell.SendKeys "8~"
else
objShell.SendKeys "7~"
end if

WScript.Sleep 4000
objShell.SendKeys "y~"
WScript.Sleep 2000

WScript.Quit


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group