On 2023-03-25, David Brooks <DavidB@nomail.afraid.org> wrote:
On 25/03/2023 21:38, Apd wrote:
"David Brooks" wrote:Thanks. I wouldn't attempt to try to do that.
On 25/03/2023 15:40, Apd wrote:
2) The machine has a unique identifier that's queryable by software.
How can one tell?
Write a program to query it:
<https://github.com/jgoldschrafe/gethostuuid/blob/master/src/gethostuuid.c> >>
If you want to view it along with other 'stuff', in the CLI:
system_profiler SPHardwareDataType
If you want just the UUID number for some reason, pipe that to awk by adding:
| awk '/UUID/ {print $3}'
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 03:49:37 |
Calls: | 10,386 |
Calls today: | 1 |
Files: | 14,057 |
Messages: | 6,416,597 |