On Mon, Jun 28, 2021 at 04:27:33PM +0000, Steve Blinkhorn wrote:
> FWIW this is what I put in my (Tcl) script:
> 
> set vendorprod [split [exec  /sbin/sysctl -n machdep.dmi.system-vendor \
> machdep.dmi.system-product machdep.dmi.system-version] "\n"]
> 
> It turns out that different machines may have either of the last two
> blank but not empty, with the product's name arbitrarily in one position or
> the other.

If you are not restricted to x86, another popular sysctl for this kind
of information is hw.model.

Martin

Reply via email to