Perl SSH Cisco Script

Perl SSH Cisco Script:I use Net::SSH::Perl module
$session = Net::SSH::Perl -> new($host);
$session -> login($username, $login_passwd);
$session -> cmd(“enable $enable_passwd”);
@output = $session -> cmd($show);
$session -> close;
return @output;

Advertisements

Comments are closed.

%d bloggers like this: