Hi lee,

On Mon, 04 Jul 2016 04:18:22 +0200
lee <l...@yagibdah.de> wrote:

> Hi,
> 
> would it be possible to use something like Net::SSH::Perl to
> automatically alter the configuration of a switch into which I can log
> in manually via ssh?
[SNIPPED]
> Once per hour or so, the connections could be switched again to check
> whether the one on port 2 is working again.  So I'd be writing a deamon
> in perl for this --- not a problem, except for communicating with the
> switch.  From the documentation of Net::SSH::Perl, it's not clear to me
> how to receive any output the switch might send.
> 
> 
> What would you suggest how to communicate with the switch?  Is
> Net::SSH::Perl the right tool to use?
>

It should be possible to use one SSH module or another for this - see
http://perl-begin.org/uses/remote-login-and-commands/#ssh . Regarding your
question about Net::SSH::Perl, I believe you need the $out, $err, etc. from
https://metacpan.org/pod/Net::SSH::Perl#out-err-exit-ssh-cmd-cmd-stdin 

Regards,

        Shlomi Fish

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to