Using Plink to run multiple commands
I have a fairly complex script which is trying to consolidate data into a text file using the following command:
c:\tools\plink.exe -batch ltmops@%IP% -pw ******* -m a.txt >tempA.txt
a portion of the a.txt file is as follows:
show ltm virtual a* show ltm virtual b* show ltm virtual c* show ltm virtual d* ...
Obviously, I'm trying to pull all of the VIP names. How can I suppress the prompt for "Display all 1014 items? (y/n) " ? I was trying to use "show ltm virtual *" but was being prompted for the same so I broke them out into individual commands, but this resulted in an undesirable high number of authentication requests in the logs. So now, I'm trying to implement the feature of using a file containing multiple commands that may be run under a single session. Thanks in advance for any guidance.