Well, the title could be a little misleading cause this actually works in Linux and with other manufacturer as well, but since we were searching info for this particular topic, and didn’t manage to find anything useful on Google…
Anyway, it’s very very simple. All you have to do is install dmidecode (from Alan Cox) with:
or whatever manner you use to install FreeBSD’s ports :)
apt-get install dmidecode
NOTE: this work as well with HP servers’ serial numbers and, I suppose, with IBM, Sun etc too.
Once installed, all you have to do is execute
# dmidecode -s chassis-serial-number
et voilà, you will get your service tag printed on screen. Moreover if your server is in the datacenter and you cannot remember the exact model
# dmidecode -s system-product-name
Just a note: dmidecode is the program used by OCS Inventory client to collect all these data.