Linux Tips I Wish I Knew Long Ago – Getting a Dell Service Tag from the Command Line

The scenario was that I was in a data center of about 35 Dell servers. There were no labels on the servers (thanks again previous admin!) and I needed to power down and switch the network jack of a particular linux server, everything else is critical production and can’t go down. My first thought was that OpenManage was installed on some of the windows servers (but most were linux) and that maybe I could at least narrow it down by pulling the service code from the windows machines. In the process of searching for how to do that solution I came across this article:
http://www.cyberciti.biz/faq/rhel-centos-fedora-linux-command-to-get-dell-service-tag-2/

Moral of the story is a simple “yum -y install dmidecode” and then I could use the dmidecode command to find the service tag of all the linux machines, way easier! I was then able to properly find the machine I needed as well as label the machines with the proper hostname.

dmidecode| grep Serial

Leave a Reply

Your email address will not be published. Required fields are marked *