Hi there, Im trying to connect to ZyXEL VMG8324-B10A via ssh using perl script with module Net::OpenSSH. I'm using straight from ducumentation script like this:
my $ssh = Net::OpenSSH->new("$username:$password\@$ip", timeout => 30 +); $ssh->error and die "unable to connect to remote host: ". $ssh->error +; my @ls = $ssh->capture("ls"); $ssh->error and die "remote ls command failed: " . $ssh->error;
and that works, but all I get is commands from unix like systems "ls" "cat" etc. i want to run commands that work when i connect to the router by hand like "arp show". How to achieve that?
In reply to Using Net::OpenSSH by dorel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |