Please Help!

I need to automate TELNET to:
1) set a logfile
2) connect to an IP address
3) perform commands
4) logoff

I can do this manually by entering the following from a command prompt:
Telnet
(the telnet session starts)
set logfile MyLog.txt
o 10.101.91.16
<<<perform commands>>>
quit

PLEASE help me automate this using VBScript. I would prefer to NOT use
Sendkeys....

Thanks in advance!

Re: Telnet - Automate Commands by Michael

Michael
Thu Feb 23 19:03:38 CST 2006

PK wrote:
> Please Help!
>
> I need to automate TELNET to:
> 1) set a logfile
> 2) connect to an IP address
> 3) perform commands
> 4) logoff
>
> I can do this manually by entering the following from a command
> prompt: Telnet
> (the telnet session starts)
> set logfile MyLog.txt
> o 10.101.91.16
> <<<perform commands>>>
> quit
>
> PLEASE help me automate this using VBScript. I would prefer to NOT
> use Sendkeys....
>
> Thanks in advance!


automate telnet group:*.scripting author:"Alex Angelopoulos" - Google Groups
http://groups.google.com/groups?q=automate%20telnet%20group:*.scripting%20author:"Alex%20Angelopoulos"


--
Michael Harris
Microsoft MVP Scripting

Scripting: Your First Steps
http://www.microsoft.com/technet/scriptcenter/topics/beginner/firststeps.mspx




Re: Telnet - Automate Commands by PK

PK
Fri Feb 24 07:23:28 CST 2006

Michael,

I did not see any answer here. It was a link to a google page which had 2
links, both of which linked back to themselves????

Could you please re-post whatever link you were trying to send me, or
perhaps elaborate on your answer?

Thanks,
-PK


"Michael Harris (MVP)" wrote:

> PK wrote:
> > Please Help!
> >
> > I need to automate TELNET to:
> > 1) set a logfile
> > 2) connect to an IP address
> > 3) perform commands
> > 4) logoff
> >
> > I can do this manually by entering the following from a command
> > prompt: Telnet
> > (the telnet session starts)
> > set logfile MyLog.txt
> > o 10.101.91.16
> > <<<perform commands>>>
> > quit
> >
> > PLEASE help me automate this using VBScript. I would prefer to NOT
> > use Sendkeys....
> >
> > Thanks in advance!
>
>
> automate telnet group:*.scripting author:"Alex Angelopoulos" - Google Groups
> http://groups.google.com/groups?q=automate%20telnet%20group:*.scripting%20author:"Alex%20Angelopoulos"
>
>
> --
> Michael Harris
> Microsoft MVP Scripting
>
> Scripting: Your First Steps
> http://www.microsoft.com/technet/scriptcenter/topics/beginner/firststeps.mspx
>
>
>
>

Re: Telnet - Automate Commands by PK

PK
Fri Feb 24 09:16:26 CST 2006

Hi Bob - thanks for your input.

Unfortunately, I can NOT use any aftermarket software whatsoever.
I am not really concerned with security, and as i mentioned, the sendkey is
not reliable. I feel like i am getting pretty close - please see my other
post about an error i am getting:
http://msdn.microsoft.com/newsgroups/default.aspx?&guid=&sloc=en-us&dg=microsoft.public.scripting.vbscript&p=1&tid=27662c24-3d1d-4e75-ba03-2d4a31cec1db




"bob" wrote:

> On Thu, 23 Feb 2006 08:10:27 -0800, PK wrote:
>
> > Please Help!
> >
> > I need to automate TELNET to:
> > 1) set a logfile
> > 2) connect to an IP address
> > 3) perform commands
> > 4) logoff
> >
> > I can do this manually by entering the following from a command prompt:
> > Telnet
> > (the telnet session starts)
> > set logfile MyLog.txt
> > o 10.101.91.16
> > <<<perform commands>>>
> > quit
> >
> > PLEASE help me automate this using VBScript. I would prefer to NOT use
> > Sendkeys....
> >
> > Thanks in advance!
>
> It may not be what you are looking for so I apologize ahead of time. I
> also looked for a vbscript way to telnet. I did not find one. I used
> either
> perls net:telnet or pythons telnetlib to do this. net:telnet:cisco for
> cisco devices
>
>
>

Re: Telnet - Automate Commands by Michael

Michael
Fri Feb 24 20:52:22 CST 2006

PK wrote:
> Michael,
>
> I did not see any answer here. It was a link to a google page which
> had 2 links, both of which linked back to themselves????
>
> Could you please re-post whatever link you were trying to send me, or
> perhaps elaborate on your answer?

Sorry about that...

Seems I can't seem to google Alex A's old post on the subject...


--
Michael Harris
Microsoft MVP Scripting

Scripting: Your First Steps
http://www.microsoft.com/technet/scriptcenter/topics/beginner/firststeps.mspx