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

Discussion in 'Computer Support' started by ashjas, Sep 30, 2007.

  1. ashjas

    ashjas Guest

    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.
    ashjas, Sep 30, 2007
    #1
    1. Advertising

  2. ashjas

    Mike Easter Guest

    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
    Mike Easter, Sep 30, 2007
    #2
    1. Advertising

  3. ashjas

    Desk Rabbit Guest

    Desk Rabbit, Sep 30, 2007
    #3
  4. ashjas

    Mike Easter Guest

    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-script-to-reboot-dsladsl-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
    Mike Easter, Sep 30, 2007
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. CJH
    Replies:
    0
    Views:
    1,883
  2. adsl pci modem, and adsl ethernet modem

    , Jan 16, 2005, in forum: Computer Information
    Replies:
    8
    Views:
    685
  3. John Dalberg

    Auto Logon AND auto lock workstation?

    John Dalberg, Nov 8, 2006, in forum: Computer Support
    Replies:
    1
    Views:
    589
  4. Giuen
    Replies:
    0
    Views:
    692
    Giuen
    Sep 12, 2008
  5. Lawrence D'Oliveiro

    Reboot, reboot, reboot

    Lawrence D'Oliveiro, Mar 6, 2009, in forum: NZ Computing
    Replies:
    12
    Views:
    942
    Lawrence D'Oliveiro
    Mar 7, 2009
Loading...

Share This Page