Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Use Net::SSH to connect to a cisco router

by perladdict (Chaplain)
on Apr 16, 2007 at 11:53 UTC ( #610324=note: print w/ replies, xml ) Need Help??


in reply to Re: Use Net::SSH to connect to a cisco router
in thread Use Net::SSH to connect to a cisco router

Hi Cine,
Can u help me to trace an error in my script.I am trying to connect the remote host by using Net::SSH:Perl on winperl.


#!/usr/bin/perl -w use Net::SSH::Perl; my $host="xxxx"; my $pass="yyyy"; my $user="zzzz"; my $ssh = Net::SSH::Perl->new($host); $ssh->login($user, $pass); my($stdout, $stderr, $exit) = $ssh->cmd("ls -l"); print "$stdout\n";
After runnig this i unable to connect remote host,below is the error message i am getting.
ERROR:The getpwuid function is unimplemented at C:/Perl/site/lib/Net/SSH/Perl.pm line 110.
can any one help me out to solve this issue,it will be a greate help from monks.


Comment on Re^2: Use Net::SSH to connect to a cisco router
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2015-07-05 18:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls