I trying to read out CPU serial number information from a server which has FreeBSD.
I tried these with no effort:
- sysctl
- dmesg
- cpucontrol
These utility is not exists on the system:
- Dmidecode
- Cpuinfo
- cpuid
- /proc directory
I cannot install any sotfware to the server.
Any idea how to solve it?
Thanks!
Best Answer
The package "cpuid" exists on FreeBSD, but this is not part of the base system.
Output example:
I think the value you are looking for is this "Processor serial". So a simple
cpuid |grep "Processor serial"
would do the trick.As you said you cannot install something on your server, you can still:
/tmp
(if you want to keep trace/garbage low),get the pre-compiled package:
(adjust the URL with your server arch - see
uname -a
for more information)extract the "cpuid" binary from it:
and execute it locally: