Net-SSH-Perl - Re: Channel open failure: 1: reason 4: when connecting to Cisco router

Posted on Thu Jan 10 17:22:11 2008 by challman in response to 6669 (See the whole thread of 18)
Re: Channel open failure: 1: reason 4: when connecting to Cisco router
I've had similar problems with Python. I opened a case with Cisco's TAC. They created a Perl script for me. I was able to get it working. Here it is:
#!/usr/bin/perl use Net::Appliance::Session; my $s = Net::Appliance::Session->new( Host => '10.100.3.254', Transport => 'SSH', ); $s->connect( Name => 'cworks', Password => 'Activ8' ); print $s->cmd('show dialer | i :'); print "*********************\n**********************\n"; print $s->cmd('show ISDN stat | i ACTIV'); print "*********************\n**********************\n"; print $s->cmd('show ip eigrp nei'); $s->close;
Maybe it will help you.
Write a response