Can't Telnet to Cisco equipment (wodSSH / wodSSH.NET)
Hello everyone,
I'm trying to build a simple script in VB Script that will log in to Telnet-enabled Cisco routers and switches. Here is my script:
---------------
Set wodssh1 = WScript.CreateObject( WeOnlyDo.wodSSHCom.1 )
wodSSH1.Port = 23
wodSSH1.Timeout = 10
wodSSH1.Protocol = 1 'Telnet
wodSSH1.Blocking = 1 'True
wodSSH1.HostName = IP
wodSSH1.Login = USER
wodSSH1.Password = PASS
wodSSH1.connect
wodssh1.execute show ver & vbcrlf, --More--
wscript.echo(wodssh1.receive)
wodssh1.disconnect
-----------------
The problem is, the script hangs at the wodssh1.receive call. When I capture packets, I see that the raw Telnet data (user, pass, and command) is being sent, but nothing ever gets returned to my script to echo. It just waits. Also, when I modify my script to use the PEEK method, nothing ever gets returned.
Help!
Thanks,
Johnny [:sad:]