cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3100
Views
15
Helpful
4
Replies

How do I place a "yes" / "confirm" in a "Cisco automation config script" (PUTTY) ?

Manu89
Level 1
Level 1

Hello everybody,

 

 

I have a problem with my cisco-copy-script that I have created in Notepad++ and is running on PUTTY.

 

The copy-script is running good so far... but I have one problem left:

 

For every device "putty" wants me to confirm the copy with the "return"-Button 2 times.

 

I have tried several things like  /f  /cr  /n  "confirm" (in an extra line), but that does not work.

 

It always says things like "invalid command".

 

 

 

As I have to do the copy job on a regular basis and for almost 100 devices,

 

it would be awesome to know, how I can implement this 2 confirmations (return-button) in the Putty Copy Script.

 

 

Really need some with this issue as it drives me crazy.

 

 

I´m grateful for any kind of help/advide.

 

 

best regards

 

1 Accepted Solution

Accepted Solutions

As I got back to the origin version I found the solution.

 

 

Thank you anyways 100 for your help @Georg Pauwen

 

 

"echo y | PLINK.EXE -ssh %User%@%1 -pw %PW% copy tftp://file.dat f >> FileLog.txt"

View solution in original post

4 Replies 4

Hello,

 

is this a Python script ? Can you post the script ?

Hello George,

thank you for the fast reply.

this is the part of the copy-script. The spots of the 2 confirmations are marked below:


.....................................
REM ##### set UserID and PW for Plink
Set User=xxxx
Set PW=xxxx

REM ### set entrys via Plink
putty.exe -ssh %User%@%1 -pw %PW% copy.tftp-COMMAND

??? return-button/confirm/  ???
??? return-button/confirm/  ???

REM ### write info log-file
..................

Hello,

 

not sure if your version supports the -m switch, which assumes a non-interactive terminal:

 

putty.exe -ssh -m %User%@%1 -pw %PW% copy.tftp-COMMAND

As I got back to the origin version I found the solution.

 

 

Thank you anyways 100 for your help @Georg Pauwen

 

 

"echo y | PLINK.EXE -ssh %User%@%1 -pw %PW% copy tftp://file.dat f >> FileLog.txt"

Review Cisco Networking products for a $25 gift card