Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: accessing Cisco via SSH

by VinsWorldcom (Prior)
on Oct 13, 2010 at 14:03 UTC ( [id://865080]=note: print w/replies, xml ) Need Help??


in reply to accessing Cisco via SSH

I too have tried to write an SSH interface to Cisco much like N::T::C (which rocks by the way). Mine was (going to be) Net::SSH::Cisco - until I realized that it was practically impossible as the Net::SSH(::Perl) modules don't really behave the same way as an interactive Net::Telnet session can.

That said, looks like you're using Windows from the "$ENV{'HOME'} = 'c:\strawberry';" line and there are some issues getting Net::SSH::Perl to work on Windows - use search on this site (Net::SSH::Perl windows) to see some of the nodes dealing with this.

Your other option is TFTP the configs off the routers/switches with SNMP (instead of an interactive session to issue the "copy run tftp" command). This of course means you need to be running SNMP on the routers/switches (are you?). Have a look at Cisco::Management and Cisco Router Action Performing Perl Script for help with the TFTP via SNMP route (if that's an option).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://865080]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-03-28 17:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found