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