Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -329,12 +329,11 @@ public static String fetchLocalUuid() {
uuid = localUuid;
return uuid;
}
String result = ExcuteLinux.exeCmd("dmidecode | grep UUID");
if (StringUtils.isNotEmpty(result)
&& StringUtils.containsIgnoreCase(result, "UUID")) {
uuid = result.split(":")[1].trim();
String result = ExcuteLinux.exeCmd(new String[]{"dmidecode", "-s", "system-uuid"});
Comment thread
spiritxishi marked this conversation as resolved.
Outdated
if (StringUtils.isEmpty(result)) {
return uuid;
}
uuid = result.trim();
} catch (Exception e) {
LOGGER.error("fetch uuid error", e);
}
Expand Down
Loading
Loading