or download this
$logger->info("performing ssh to the swicth");
my $ssh = Net::OpenSSH->new($ip,user=>"$username",password=>"$password
+",master_opts=>[-o =>"StrictHostKeyChecking=no"]);
...
$logger->info("listing the current defined configuration of the switch
+ using cfgshow");
my($out,$err) = $ssh->capture2("cfgshow");