Jump to content

Automate TELNET Commands


Recommended Posts

I want to automate Telnet commands. I was thinking of having it implemented via batch file.

I want to emulate the procedure to set a mode via Telnet on a NETGEAR device with wireless radio.

The procedure being emulated starts at item "10." on the following webpage:

http://www.beatjunkie.de/Router_eng.htm

Input to console from the keyboard would normally be the following (legend below):

TELNET <CLIENT_IP_ADDRESS><ENTER>Gearguy<ENTER>Geardog<ENTER>wla<ENTER>set remoteAP <ROUTER MAC ADDRESS><ENTER>set oper sta<ENTER>..<ENTER>save<ENTER>reboot<ENTER>

To understand the coded, the following legend of substitutions apply:

<CLIENT_IP_ADDRESS>
: IP Address of Wireless client being configured.

<ROUTER MAC ADDRESS>
: Router MAC Address. Contains colons and capital letters.

<ENTER>
: End of line character or "ENTER".

How can the TELNET input be automated?

EDIT: I think what I want implemented is done using the "echo" command with a pipe character ("|"), but I am not sure how it should be done.

Edited by Ascii2
Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...