+ Post New Thread
Results 1 to 7 of 7
Wireless Networks Thread, Telnet Scripting TFTP Updates in Technical; I know telent isn't the most secure protocol to be using but I have found a nifty telnet scripting tool ...
  1. #1

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,457
    Thank Post
    645
    Thanked 1,612 Times in 1,443 Posts
    Rep Power
    419

    Telnet Scripting TFTP Updates

    I know telent isn't the most secure protocol to be using but I have found a nifty telnet scripting tool available from:

    http://users.telenet.be/tontonzen/gg/TST10.zip

    I've just used it to update the firmware in 9 HP access points in around the same time it would take to do one via the web interface or cli manually.

    At the moment I just changed the ip address at the head of the file and re-ran the shortcut for each one but I'm sure a list of hosts and a bit more tweaking maybe with a dash of vbscript could automate it even more.

    The script I used for my HP Wap's is:

    Code:
    IP ADDRESS OF WAP 23
    WAIT "Username:"
    SEND "admin\m"
    WAIT "Password:"
    SEND "ADMIN PASSWORD\m"
    WAIT "#"
    SEND "copy tftp file\m"
    WAIT ":"
    SEND "1\m"
    WAIT "name:"
    SEND "hp420-2150.bin\m"
    WAIT "IP:"
    SEND "IP ADDRESS OF TFTP SERVER\m"
    WAIT "[n]:"
    SEND "n\m"
    WAIT "#"
    SEND "reset board\m"
    WAIT ":"
    SEND "y\m"
    Ben

  2. #2

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Telnet Scripting TFTP Updates

    A) Use SSH. Telnet is vunerable to lots of fun attacks.

    B)
    Code:
    cat somecommands.txt | ssh user@somehost
    Works for me and my Linux boxes.

  3. #3

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,457
    Thank Post
    645
    Thanked 1,612 Times in 1,443 Posts
    Rep Power
    419

    Re: Telnet Scripting TFTP Updates

    Yes Geoff as I said I am aware of telnets problems.

    I'm looking for a scriptable commandline SSH client.

    Thanks,

    Ben

  4. #4

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Telnet Scripting TFTP Updates

    Does 'cat' not work for you?

  5. #5

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,457
    Thank Post
    645
    Thanked 1,612 Times in 1,443 Posts
    Rep Power
    419

    Re: Telnet Scripting TFTP Updates

    I've now downloaded the SSHWindows install from http://sshwindows.sourceforge.net/download/ this gives me ssh via cygwin.

    The nice think about the scripted telent was that it would wait for a specified response before continuing I'm not sure if just echoing a load of commands to an ssh session is going to be as successful.

    Ben

  6. #6

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Telnet Scripting TFTP Updates

    Well, both my client and server devices are Linux servers. So they don't paticularly care if you stuff a bunch of command down to them all at once. They'll just buffer up the input until they can run the next command. If I do want to do something fancy I can use the rather flexible bash shell to do most things complicated.

  7. #7

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,457
    Thank Post
    645
    Thanked 1,612 Times in 1,443 Posts
    Rep Power
    419

    Re: Telnet Scripting TFTP Updates

    @Geoff: cat somecommands.txt | ssh user@somehost just gives Pseudo-terminal will not be allocated because stdin is not a terminal.

    Tried it ony a centos 4.4 box and also cygwin on windows.

    Ben

SHARE:
+ Post New Thread

Similar Threads

  1. PXE > DHCP > TFTP - A Question
    By Pear in forum Thin Client and Virtual Machines
    Replies: 2
    Last Post: 4th October 2006, 03:57 PM
  2. Replies: 3
    Last Post: 24th September 2006, 04:18 PM
  3. Windows Telnet
    By tickmike in forum Windows
    Replies: 8
    Last Post: 7th September 2006, 02:26 PM
  4. Telnet 2.0 ?
    By dagza in forum Jokes/Interweb Things
    Replies: 6
    Last Post: 12th July 2006, 10:08 AM
  5. LTSP Problems with TFTP and PXE boot
    By Joedetic in forum Thin Client and Virtual Machines
    Replies: 3
    Last Post: 18th May 2006, 04:40 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •