I want to automate a few things using plink. I can connect interactively to a cisco pix using the following command:
plink -ssh -l username -pw password -m testconpix.txt 10.1.1.2
The contents of testconpix is:
This works fine. I am authenticated and the output of the arp table is displayed.
Now, I would like to do the same to connect to a cisco switch using the following command:
plink -telnet -m testconsw.txt 10.1.1.10
The contents of testconsw.txt are;
sh ip arp
However, I am prompted for the telnet password at the command line. It appears that the plink command is unable to read the file. What do I have to do to get plink to read the file interactively to logon and issue the commands?