Using Telnet

Discuss RoboTask here
Post Reply
kgaudineer
Posts: 1
Joined: Tue Mar 04, 2008 6:34 am
Location: United States

Using Telnet

Post by kgaudineer »

I am trying to use RoboTask to help automate a lot of routers passwords changes in our enterprise network.  My problem is that I am able to get "Telnet" to start but I am unable to get any key input into the telnet window.  Does anyone have any suggestions?
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Using Telnet

Post by Oleg »

See example below.

First, you have to create *.HT file (for Hyper terminal). Enter the Host address and port.
Next, go to the "Settings" tab -> ASCII settings
Turn on the "Sent line ends with line feeds" and "Echo typed character locally" in this dialog

Now you can enter the commands manually and see the responses of server.

Example below connects to local HTTP server (port 80) and gets the home page.

;*****************************
;* RoboTask Task file       
;* Do not edit in text editor!
;*****************************

[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|1039371017
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task47"
Hide=INTEGER|0
ID=INTEGER|1468971092
Name=STRING|"Telnet example"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
WriteGeneralLog=INTEGER|0

[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER

[Actions\Action1]
ActionID=STRING|"A_GENERAL_RUN_PROG"
Enabled=INTEGER|-1
Name=STRING|"Run ""localHTTP.ht """
Params=FOLDER

[Actions\Action1\Params]
program=STRING|"C:\incoming\localHTTP.ht"
runas=STRING|"0"
wait=STRING|"0"

[Actions\Action2]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 1000 ms"
Params=FOLDER

[Actions\Action2\Params]
delay=STRING|"10"

[Actions\Action3]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"Send keys to active window"
Params=FOLDER

[Actions\Action3\Params]
currentwindow=STRING|"1"
fixedwindow=STRING|"1"
keylayout=STRING|"0"
keys=STRING|"""GET / HTTP/1.1"",""Accept: */*"",""Accept-Language: en-US"",""Host: localhost"",""Connection: Keep-Alive"",,"
sendkind=STRING|"0"
wincaption=STRING|"Notepad"
Post Reply