Info
sys_info_manufacturer¶
Print the system hardware manufacturer. On Linux: tries /sys/devices/virtual/dmi/id/sys_vendor, then dmidecode. On Solaris: tries smbios. Falls back to "Generic or unknown".
Exit codes¶
- 0: Always
Output on stdout¶
- Manufacturer name
sys_info_model¶
Print the system hardware model/product name. On Linux: tries /sys/devices/virtual/dmi/id/product_name, then dmidecode. On Solaris: uses uname -i. Falls back to "Generic or unknown".
Exit codes¶
- 0: Always
Output on stdout¶
- Model name
sys_info_serial¶
Print the system serial number. On Linux: tries /sys DMI, dmidecode, lshw, facter; falls back to UUID then hostid. On Solaris: tries sneep, smbios, eeprom, ipmitool, prtfru, hostid. A blank or literal "0" serial is treated as absent and the next fallback tried.
Exit codes¶
- 0: Always
Output on stdout¶
- Serial number string
sys_info_bios¶
Print BIOS vendor, version, and release date as a single line. On Linux: uses dmidecode -t bios. On Solaris: uses prtdiag or smbios.
Exit codes¶
- 0: Always
Output on stdout¶
- Space-separated BIOS info string
sys_info¶
Print hardware identity information. With no argument prints all fields. Use a flag to select a single field.
Example¶
sys_info
sys_info --serial
Arguments¶
- $1 (string): Optional: --manufacturer, --model, --serial, --bios
Exit codes¶
- 0: Always
- 1: Unrecognised argument
Output on stdout¶
- Labelled hardware info (no-arg), or a single field value (with flag)