final String testCmd =
"if [ ! -e " + LCMC_TEST_FILE + " ]; "
+ "then " + DistResource.SUDO + "/usr/sbin/cibadmin -Ql > "
+ LCMC_TEST_FILE + ";fi;"
+ "export CIB_file=" + LCMC_TEST_FILE + ';';
return host.captureCommand(new ExecCommandConfig().command(testCmd + command)
.silentCommand()
.silentOutput());
} else {
LOG.debug1("execCommand: crm command: " + command);
return host.captureCommandProgressIndicator(Tools.getString("CIB.ExecutingCommand"),
new ExecCommandConfig().command(command));
}
}