objSSHSession = this.getSshConnection().openSession();
logger.debug("Executing command " + checkShellCommand);
objSSHSession.execCommand(checkShellCommand);
logger.debug("output to stdout for remote command: " + checkShellCommand);
ipsStdOut = new StreamGobbler(objSSHSession.getStdout());
ipsStdErr = new StreamGobbler(objSSHSession.getStderr());
BufferedReader stdoutReader = new BufferedReader(new InputStreamReader(ipsStdOut));
String stdOut = "";
while (true) {
String line = stdoutReader.readLine();
if (line == null)