does anyone can tell me how can i create a script or batch file that start's
a telnet session and send a user and password so i can automatically login
in a cisco router?
thanks in advance,
paulo jorge
It all depends on what you're running for an operating system.
I would suggest you get expect.
Jeff
>
>It all depends on what you're running for an operating system.
>
>I would suggest you get expect.
>
>Jeff
>
i'm using Windows 2000, and i've several routers with long password which is
always a mess to log on
It sends breaks, has built-in scripting, has ssh support, and lots of
goodies.
--
Leonid S. Knyshov
http://www.pctips.com
"Paulo Jorge" <pacon...@hotmail.com> wrote in message
news:6EGI6.175$ej2....@nreader2.kpnqwest.net...
expect 'this'
send 'that'
The expect home page is at:
http://expect.nist.gov/
And I believe there is a version for NT, should run fine on 2000.
On Fri, 04 May 2001 22:38:44 GMT, pacon...@hotmail.com (Paulo Jorge)
wrote:
In article <tf6e3ul...@news.supernews.com>,
use...@diespammers.pctips.com.nospam says...
> http://www.vandyke.com - get their SecureCRT product (if you are a CLI
> admin, how can you survive without it)
>
> It sends breaks, has built-in scripting, has ssh support, and lots of
> goodies.
Any telnet client worth it's salt will have scripting ability. I *HATE*
MS telnet as much as I *LOVE* vi as my editor. So I would suggest you
look at Tera Term (free telnet client w/ add on support for SSH) or ZOC
(www.emtec.com) shareware.
--
"Somehow I imagined this experience would be more rewarding" Calvin
********************************************************************
Due to the volume of email that I receive, I may not not be able to
reply to emails sent to my account. Please post a followup instead.
********************************************************************
Verne
"Jeff Pratt" <j...@pizza73.com> wrote in message
news:3AF332D7...@pizza73.com...
Use notepad and save the above as xxx.vbs. ~ is a return, not part
of my passwords, so use it.
Install windows script host, I think that is available in "add
programs/windows setup".
I also did this:
Install Microsoft Scripting Engines Version 5.5
Here:
http://msdn.microsoft.com/scripting/default.htm?/scripting/windowshost
/download/default.htm
There is something wrong with win98. I get an error after using this
90% of the time, and no one knows why. So I run the script, error
returns, and enter closes error dialog, but I am immediately in the
telnet and can start typing.
If you have win2000 maybe this will run right. I use it to
extensively enter commands.
I have several scripts using another script host tst10.exe. To be
error free, where they just execute no problem, I can't use the built
in vbs. Here is what I do with this:
1 clear interf bri0
2 clear arp
3 disconnect interf bri0
4 clear ip nat tran
5 no debug all
6 reload (strange, i don't think I have the router set to reload from
a telnet, so maybe I never tested this one. Normally you have to
reload from com port control)
One click gets these standard things done, cool.
--
John
===================
nospam in reply address
reply to: ctow...@now-online.com
"Paulo Jorge" <pacon...@hotmail.com> wrote in message
news:UbGI6.173$ej2....@nreader2.kpnqwest.net...
: hi,
Worked like a charm and cut down my update time significantly.
But I wouldn't take leaving a text file with passwords in it lying
around lightly. Seriously think about it before you do it. I
generate this text prior to a job like described above and never keep
the text permanently.
James J. Makowski, CCNA
On Fri, 04 May 2001 22:38:44 GMT, pacon...@hotmail.com (Paulo Jorge)
wrote:
>hi,
Mike Elliott
Paulo Jorge <pacon...@hotmail.com> wrote in message
news:UbGI6.173$ej2....@nreader2.kpnqwest.net...