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?

I'm looking for a way to automatically switch a network connection
between two others.  Since there don't seem to be any switches for this
purpose available other than manually operated ones, I figure I could as
well use the switch (as in layer 3 switch) I already have.  It would
look like this:



            |---- port 2
            |
port 1 -----|
            |
            |---- port 3



All ports would be members of the same VLAN.  At any given time, port 1
is enabled, and either port 2 or port 3 are enabled.  Switching
connections would involve disabling both ports 2--3 and enabling either
port 2 or port 3, depending on which connection should be used.

The purpose of this switching is to usually use the connection on port 2
and to automatically switch to the other connection, on port 3, in case
the connection on port 2 has failed.  Failure can be detected by trying
to ping a host at the other side of the connection.  (I'm aware that the
switch could do this automatically with built-in features, provided an
overall set up which supports this.  In this case, the overall set up
doesn't support it.)

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?

-- 
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