$port = $cli->port; if ( defined($port) ) { print "\tSSH connection to server ($host) established!\n"; } else { print "\tSSH connection to server ($host) could not be established... Exiting program.\n"; exit; } $output = $cli->cmd(""); $output = $cli->cmd("IJAF"); $output = $cli->cmd("clear"); $output = "";