Exid.Platform (exid v0.1.0)
View SourcePlatform-specific machine ID detection.
Attempts to read the platform-specific machine ID based on the OS:
- Darwin (macOS): Uses
ioregcommand for IOPlatformUUID - FreeBSD: Uses
sysctl kern.hostuuid - Linux: Uses system-dependent methods
- Others: Falls back to hostname hash
Summary
Functions
Reads the platform-specific machine ID.
Functions
Reads the platform-specific machine ID.
Returns the ID as a string, or {:error, reason} if unavailable.
Supported platforms:
- Darwin (macOS): IOPlatformUUID via
ioregcommand - FreeBSD:
kern.hostuuidviasysctl - OpenBSD:
hw.uuidviasysctl - Linux:
/etc/machine-idor/sys/class/dmi/id/product_uuid - Windows:
MachineGuidfrom Windows Registry