merkata has asked for the wisdom of the Perl Monks concerning the following question:
------------------------begin code
#!/usr/bin/perl -w
use Net::SSH::Perl;
my $ssh = Net::SSH::Perl->new("cisco");
print "Trying to get in...\n";
my $stat = $ssh->login("user",'pass');
print "Status is $stat\n";
my($values, $stderr, $exit) = $ssh->cmd('show proc cpu');
print "$values";
-----------------------end code
Trying to get in...
Status is 44
Use of uninitialized value $values in string at ./get_itp_stats.pl line 10.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::SSH::Perl returns status 44
by lamp (Chaplain) on Sep 25, 2008 at 07:04 UTC | |
by merkata (Initiate) on Sep 25, 2008 at 07:34 UTC |