use of com.iwave.ext.command.CommandException in project coprhd-controller by CoprHD.
the class HpuxHostDiscoveryAdapter method setNativeGuid.
@Override
protected void setNativeGuid(Host host) {
HpuxSystem hpux = getCli(host);
try {
String macAddress = hpux.getNetworkAdapterMacAddress(LAN0);
if (macAddress != null && !host.getNativeGuid().equalsIgnoreCase(macAddress)) {
checkDuplicateHost(host, macAddress);
info("Setting nativeGuid for " + host.getId() + " as " + macAddress);
host.setNativeGuid(macAddress);
save(host);
}
} catch (CommandException ex) {
LOG.warn("Failed to get MAC address of adapter during discovery");
}
}
Aggregations