Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: accessing Cisco via SSH

by VinsWorldcom (Prior)
on Oct 13, 2010 at 14:03 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2023-03-23 04:11 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (60 votes). Check out past polls.