Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Computer Support > wanting telnet to auto logon and issue a reboot command for adsl modem

Reply
Thread Tools

wanting telnet to auto logon and issue a reboot command for adsl modem

 
 
ashjas
Guest
Posts: n/a
 
      09-30-2007
Hi,

I want to reboot my adsl modem at specific interval.

I can reboot the modem manually by issuing the reboot command as
follows from the command prompt.


------------------
telnet 198.67.1.1
login:admin
password:admin
reboot
----------------------


But i want to make a batchfile or some sort of script/macro to do this
automatically at scheduled time..

but in batch file mode the command just doesnt get completed it gives
some error...


so any idea how i can give the above commands automatically...

Help will be greatly appreciated..

Thanks very much.

 
Reply With Quote
 
 
 
 
Mike Easter
Guest
Posts: n/a
 
      09-30-2007
ashjas wrote:
User-Agent: G2/1.0
Opera/9.23 - Windows NT 6.0

> I want to reboot my adsl modem at specific interval.


OK, but I'm wondering why.

> I can reboot the modem manually by issuing the reboot command as
> follows from the command prompt.
>
>
> ------------------
> telnet 198.67.1.1
> login:admin
> password:admin
> reboot
> ----------------------


Yes.

> But i want to make a batchfile or some sort of script/macro to do this
> automatically at scheduled time..


There's a problem with that idea.

> but in batch file mode the command just doesnt get completed it gives
> some error...


There are several problems. Telnet is an insecure way to do things.
The Win telnet client is not scriptable as is.

> so any idea how i can give the above commands automatically...


You need more security and you need a scriptable client; presumably a
free one. Most secure scriptable telnet clients aren't free. TeraTerm
Pro works for Win98 and I think there's a newer v.


--
Mike Easter

 
Reply With Quote
 
 
 
 
Desk Rabbit
Guest
Posts: n/a
 
      09-30-2007
ashjas wrote:
> Hi,
>
> I want to reboot my adsl modem at specific interval.


This should do the trick for you:-

http://www.cyberciti.biz/tips/shell-...sl-router.html
 
Reply With Quote
 
Mike Easter
Guest
Posts: n/a
 
      09-30-2007
Desk Rabbit wrote:
> ashjas wrote:


>> I want to reboot my adsl modem at specific interval.

>
> This should do the trick for you:-
>
>

http://www.cyberciti.biz/tips/shell-...sl-router.html

"Linux Shell Script to reboot DSL or ADSL router."

Expect^1 is an excellent utlities scripting too for *n*x distros.

There is also a Win port of expect. http://expect.nist.gov/#windows
Obtaining Expect for Windows

Interesting about the tools which the nist.gov site has made available
at their site.

^1 http://en.wikipedia.org/wiki/Expect Expect is a Unix automation and
testing tool, written by Don Libes as an extension to the Tcl scripting
language, for interactive applications such as telnet, ftp, passwd,
fsck, rlogin, tip, ssh, and others. With Tk, interactive applications
can be wrapped in X11 GUIs.



--
Mike Easter

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reboot, reboot, reboot Lawrence D'Oliveiro NZ Computing 12 03-07-2009 11:35 PM
Telnet - attempting to initiate a telnet session within an established telnet session Carcarius Ruby 0 12-06-2007 03:26 AM
(router + adsl modem) versus (router with built in adsl modem) LincolnShep Wireless Networking 3 11-08-2006 03:17 PM
Question Help: Logon vs Account Logon, Local Logon vs Authentication CJH Microsoft Certification 0 01-04-2006 04:03 PM
adsl pci modem, and adsl ethernet modem jameshanley39@yahoo.co.uk Computer Information 8 01-18-2005 03:36 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57