Dos Batch file to telnet with Userid and Password

Sun microsystems Sun netra 210 ac - ultr...
January 8, 2012 at 23:42:44
Specs: Windows XP SP 2, C2D/2GB
Hi,
I want to create a DOS Batch file:
1. That silently telnet on 40 Juniper Routers.
2. run some commands and would get output to a xls file.

Please help me to create that script.

I have already used a login script but always I have to enter password manually.

@echo off
c:\Plink.exe -telnet -l username 192.168.x.x -pw "123456" -m input.txt >> result.txt

but getting error :
"plink: the -pw option can only be used with the SSH protocol"

Please help


See More: Dos Batch file to telnet with Userid and Password

Report •

#1
January 9, 2012 at 02:23:34
Google for PUTTY a free scriptable tool that can be command line driven.

Report •
Related Solutions


Ask Question