in reply to Net::OpenSSH and Extreme Switch
What happens when you try to invoke the remote command with SSH as in...?
$ /usr/local/bin/ssh auto_config@management show vlan
If it doesn't work, your best option will probably be to use Expect (alone, combined with Net::OpenSSH or via Net::SSH::Expect).
For simple cases, usually this also works:
my $out = $ssh->capture({stdin_data => "show vlan\n"}); print "output: $out"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Net::OpenSSH and Extreme Switch
by rdl (Initiate) on Nov 23, 2009 at 22:09 UTC | |
by salva (Canon) on Nov 23, 2009 at 22:24 UTC | |
by rdl (Initiate) on Nov 24, 2009 at 21:18 UTC | |
by rdl (Initiate) on Dec 02, 2009 at 20:35 UTC | |
by rdl (Initiate) on Nov 24, 2009 at 14:13 UTC |