diff --git a/xCAT-rmc/plugin/rmcmon.pm b/xCAT-rmc/plugin/rmcmon.pm index da8ac053b..1117d5b63 100644 --- a/xCAT-rmc/plugin/rmcmon.pm +++ b/xCAT-rmc/plugin/rmcmon.pm @@ -890,7 +890,9 @@ sub getNodeID { my $tmp=$tab->getNodeAttribs($node, ['mac']); if (defined($tmp) && ($tmp)) { my $mac=$tmp->{mac}; - $mac =~ s/://g; + $mac =~ s/\|.*//g; #use the first mac + $mac =~ s/\!.*//g; #remove the hostname + $mac =~ s/://g; #remove : $mac = "EA" . $mac . "EA"; $tab->close(); return $mac;