?
Solved

Cannot use plink with cisco IOS

Posted on 2012-09-07
5
Medium Priority
?
2,060 Views
Last Modified: 2012-10-06
Hi,

i have tested plink successfully on PX/ASA. However the same command does not work with cisco router.

I need to authenticate with secret before running the command

the command file is as follows:

en
enablepassword
command

I have seen the posts on here, try redirection, spaces between commands but I still get
Line has invalid autocommand " error message.

Is there a solution, please help.

Thanks,

Ashley
0
Comment
Question by:ashleyd203
  • 3
  • 2
5 Comments
 
LVL 35

Expert Comment

by:Ernie Beek
ID: 38375617
A few things that come to mind:

Put a space between each command:

en

enablepassword

command


Are you using ssh v1? try v2.

Assign the user you use to login a privilege level of 15 (if you haven't done so already).

I'll add some topics to draw some more attention to this question.
0
 

Author Comment

by:ashleyd203
ID: 38383483
Hi,

I have also tried the same space, same issues. I am using version 1, let me try with version 2.
May be this will help.

Unfortunately, privilege 15 is not allowed in our environment, authentication is done with RADIUS server and AD server.
0
 

Accepted Solution

by:
ashleyd203 earned 0 total points
ID: 38453685
Found an alternative solution.

Installed cygwin and used ciscocmd, perfect accepts username password and secret as input to connect to cisco equipment including IOS.

plink with redirect commands   can work only in cygwin ( line feeds are not included as in windows command)

plink ---    << commands.txt

en
password
sh xxx


Thanks
0
 
LVL 35

Expert Comment

by:Ernie Beek
ID: 38453746
Glad you found a solution :)
I'll keep this in mind for future reference.
0
 

Author Closing Comment

by:ashleyd203
ID: 38469726
Did not get a valid answer but it is more of a constraint than anything. So I used another tool which means also that the initial question may not be related.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

WARNING:   If you follow the instructions here, you will wipe out your VTP and VLAN configurations.  Make sure you have backed up your switch!!! I recently had some issues with a few low-end Cisco routers (RV325) and I opened a case with Cisco TA…
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question