I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2010-03-11 06:07:21.175262-08 by nonozi in response to 12496
Re: Channel open failure: 1: reason 4: when connecting to Cisco router
install Net::Appliance::Session try this code it works fine #!/usr/bin/perl use strict; use Net::Appliance::Session; my $host = "nxxxxx"; my $user = "xxxxx"; my $pw = "xxxxx"; my $s = Net::Appliance::Session-<new( Host =< $host, Transport =< 'SSH', ); $s-<connect( Name =< $user, Password =< $pw ); print $s-<cmd('show version'); print "*******************************************\n"; #$s-<do_configure_mode; $s-<begin_configure; print $s-<cmd('no access-list 50 permit x.x.x.x'); $s-<end_configure; print $s-<cmd('show running-config'); print "*******************************************\n"; $s-<close;
Direct Responses: Write a response