//vsphereServer.listNicsVm(newVm);
if (vmOmapiRegister) {
System.out.println("registering nic:"+vmPxeInterface);
OmapiServer omapiServer=new OmapiServer(omapiHost,omapiPort,omapiKeyName, omapiKeyValue);
String macAddress=vsphereServer.getMacAddress(pxeInterface,newVm);
omapiServer.updateDHCP(vmName, macAddress,omapiOverWrite);
System.out.println(macAddress);
}
if (registermac) {
String command = String.format(registermacCommand, vsphereServer.getMacAddress(pxeInterface,newVm));