smoss74 has asked for the wisdom of the Perl Monks concerning the following question:
When I run the script I get the following error;#!/usr/bin/perl use Net::Appliance::Session; my $pass="password"; my $user="username"; my $host="10.10.10.10"; my $ssh = Net::Appliance::Session->new( personality => 'ios', host => +$host, transport => 'SSH'); $ssh->connect ( name => $user, password => $pass); $ssh->cmd("config term"); $ssh->cmd(" interface fastethernet 0/1"); $ssh->cmd(" desc test"); $ssh->close;
login failed to remote host - prompt does not match at /usr/local/share/perl/5.10.1/Net/Appliance/Session/Transport.pm line 78.
Any help would be appreciated!Kind regards.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem logging onto Cisco Switch using Net::Session::Appliance
by hdb (Monsignor) on Mar 26, 2013 at 12:37 UTC | |
by smoss74 (Acolyte) on Mar 26, 2013 at 13:12 UTC | |
|
Re: Problem logging onto Cisco Switch using Net::Session::Appliance
by McA (Priest) on Mar 26, 2013 at 13:28 UTC | |
|
Re: Problem logging onto Cisco Switch using Net::Session::Appliance
by regexes (Hermit) on Mar 26, 2013 at 13:35 UTC |