Operating System - Linux
1822448 Members
2633 Online
109642 Solutions
New Discussion юеВ

Re: How to get asset tag, system serial number or chassis number in linux

 

How to get asset tag, system serial number or chassis number in linux

Hi,

How can I get the system serial number, chassis number or the asset tag in Redhat Linux Advanced server? When I login onto rhn.redhat.com and I go to the hardware overview of my server, redhat knows this. I want to be able te get this info as well without going into the bios (reboot) of the server. It should be somewhere, otherwise redhat wouldn't be able to get it either.

Thnx,

Leon

PS Have been searching in /proc without success.
6 REPLIES 6
Huc_1
Honored Contributor

Re: How to get asset tag, system serial number or chassis number in linux


I dont have such a beast myself, so can not check this, But what about at the begining of dmesg (near top lots bios info etc..)

Have you search/grep in /var/log/* with number asset tag you have note down from RedHat ?

Just trying to help 0.02 euro/cent worth!

J-P
Smile I will feel the difference
larry cole_2
Occasional Advisor

Re: How to get asset tag, system serial number or chassis number in linux

The dmidecode program will get this information for you in ASCII format. It produces a lot of output you will need to examine (grep) carefully - the Serial Number field shows up several times.

get the code from:
https://savannah.nongnu.org/projects/dmidecode/

...larry

Re: How to get asset tag, system serial number or chassis number in linux

In dmesg I don't get the serial number, also the complete /var/log directory does not contain any of these numbers.

Why would I need to install additional software, while Redhat can get it out of my machine via up2date?

Thnx,

Leon
Huc_1
Honored Contributor

Re: How to get asset tag, system serial number or chassis number in linux

Could it be that is is in your

#cat /etc/sysconfig/rhn/systemid

This is the file update uses for identification of your system during up2date run

J-P
Smile I will feel the difference
Huc_1
Honored Contributor

Re: How to get asset tag, system serial number or chassis number in linux

I think I have found how

have a look at

man rhnreg_ks

there is a serail number in there

J-P
Smile I will feel the difference

Re: How to get asset tag, system serial number or chassis number in linux

No the /etc/sysconfig/rhn/* files do not contain the serial number... ;-(

I have read the man page about the rhnreg_ks, but could not found the option you mentioned.

Thnx,

Leon