int omapiPort;
String omapiKeyName;
String omapiKeyValue;
public void updateDHCP(String name, String macAddress, boolean overwrite) throws OmapiInitException, OmapiConnectionException {
Connection c = null;
try {
c = new Connection(omapiHost, omapiPort);
c.setAuth(omapiKeyName, omapiKeyValue);
} catch (OmapiException e) {
System.err.println(e.getMessage());
}
Host searchHost = new Host(c);