HP Integrity NonStop H-Series User Manual
Page 89

/**
* Create the org.jboss.dmr.ModelNode to hold the result
*/
ModelNode returnVal = null;
try {
/**
* Execute the command using the client object
*/
returnVal = this.client.execute(op);
} catch (Exception e) {
System.err.println(e.getMessage());
if (this.client != null)
this.disconnectFromHC();
System.exit(0);
}
System.out.println("Logged in as : "
+ returnVal.get("result").asString());
}
public static String hostControllerName = "master";
}
For more information on Management Client API, see
.
With the help of NSASJClient, Java programs can be written, and customized commands to
manage or monitor NSASJ can be generated. These can in-turn be run as cron jobs, integrated
with GUI based tooling or in web based applications to perform management and monitoring of
NSASJ. Programs written hence, can also be used other management tools in a typical production
environment.
Managing NSASJ using Java programs
89