Closed xor-gate closed 6 years ago
Great! If you are interested I have some of your work derived and added to my package. But this uses a different approach (sysdetect interface, eg local or SSH). See https://github.com/xor-gate/sysdetect/blob/master/machineid.go.
Your work is very much appreciated!
I tried your commands on a FreeBSD -> FreeNAS variant system and the machineid is empty. Probably we should check if empty for a file at
/etc/hostid
. See below: