View Single Post
Old Nov 7th, 2007, 11:27 AM   #1
trez
Newbie
 
Join Date: Nov 2007
Posts: 1
Rep Power: 0 trez is on a distinguished road
telnet a router with perl?

Hi guys

Im new to to writing scripts, but very keen to learn. My query is this:

i work at an ISP, and our new thomson 546 modems have a bug on them, basically we have to enable the routing of the internet else nothing will work...

now this is solvable by 6 lines of command by telnet:

telnet 10.0.0.138

[Username:] Administrator
[Password:] {No pass, we just press enter}

nat

ifconfig

[intf:] internet
[translation:] enabled
..
config saveall

exit

that is all the commands we need to do ( where in "[ ] " the text is displayed automatically) . now for us technicians, its not a problem to write a few lines, but our clients usually mess about with telnet....

we are already bringing in new modems, however I was trying to develop a fix for this bug. i got a VBscript working in secureCRT, however you need to have that program to make it work....

my question is, any ideas on how I can write a small program to perform these commands? any help is greatly appreciated.

thanks

Andrew
trez is offline   Reply With Quote