General
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Serial Number from Linux prompt

Samantha Bacon
Occasional Visitor

How to get Serial Number from Linux prompt

Hi
I'd like to get the Serial Number of a Proliant DL360G running Linux. I've run through all the different threads but no luck.
Any ideas?

In the Smart Start Scripting Toolkit it mentions a utility called "hwdiscovery" (see p.2-34 of user manual)
ftp://ftp.compaq.com/pub/products/servers/management/toolkit/ug-linux-win32.pdf

But when I download the toolkit I can only find a utility call "hwdisc3". It generates a good xml file but the SN is missing!
http://h18013.www1.hp.com/products/servers/management/toolkit/downloadtkpage.html

Thanks
Samantha
6 REPLIES
Vitaly Karasik_1
Honored Contributor

Re: How to get Serial Number from Linux prompt

IMHO, many programs use MAC address of onboard NIC as serial number, and such MAC you can see by "ifconfig eth0"

if you need CPU serial number
try lshw http://ezix.sourceforge.net/software/lshw.html

Re: How to get Serial Number from Linux prompt

Hello,
If you use SuSE, run hwinfo. This generates a lot of info, under which also the serial number of your Compaq. I think hwinfo is only available with SuSE.

Philippe
Paul Cross_1
Respected Contributor

Re: How to get Serial Number from Linux prompt

Yes, hwinfo is suse-only. I have never seen any utility that actually reports a machine serial number. I'm fairly sure this would be a vendor-specific piece of code, so maybe the compaq tool could provide it, but I'm sceptical. Chances are very good that hwinfo won't supply this.

Only way I've ever been able to do this is by sneaker net :)
Samantha Bacon
Occasional Visitor

Re: How to get Serial Number from Linux prompt

Thanks for the replies. I'll try the program from sorceforge and see what happens. I'm also going to pull-apart the HP scripts.

The SN I'm interested in relates to the otherboard (and onboard NIC) rather than the Pentium SN. I still can't believe other people haven't needed to do this. And the Toolkit User Manuals even shows an example...
Vitaly Karasik_1
Honored Contributor

Re: How to get Serial Number from Linux prompt

>The SN I'm interested in relates to the otherboard (and onboard NIC)

so you'll get it from ifconfig |grep eth0
Vitaly Karasik_1
Honored Contributor

Re: How to get Serial Number from Linux prompt

Dmidecode may be useful too:
http://www.nongnu.org/dmidecode/