Packetwatch.net

Get system serial number in FreeNAS



Last modified: Jan. 25, 2010

Contents
1 - Summary
2 - Dmidecode installation
3 - Commands


1 - Summary

This guide shows how to get the system serial number and BIOS information in
FreeNAS. It will show how to install dmidecode in FreeNAS. This has been
tested in FreeNAS 0.69.2.4700.


2 - Dmidecode installation

This assumes that you have the SSH service enabled and sudo installed already.
SSH into FreeNAS and install the dmidecode package.
> su - root
Password:
# pkg_add -r dmidecode
# logout


3 - Commands

You can display the system information including serial number by typing the
following.
> sudo dmidecode -t 1 | grep -e 'Manufacturer' -e 'Product Name' -e 'Serial Number' | cut -f 2
Password:
Manufacturer: System manufacturer
Product Name: System Product Name
Serial Number: System Serial Number

You can display the BIOS information by typing the following.
> sudo dmidecode -t 0 | grep -e 'Vendor' -e 'Version' -e 'Release Date' | cut -f 2
Password:
Vendor: American Megatrends Inc.
Version: XXXX   
Release Date: XX/XX/XXXX


Last modified: Thu Jan 1 00:00:00 1970 UTC
Packetwatch Research 2002-2024.