Page 1 of 1

Using Telnet

Posted: Tue Mar 04, 2008 7:32 am
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?

Using Telnet

Posted: Sun Mar 09, 2008 1:24 am
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"