How to learn hardware serial no. using a script?

Hello,
I want to learn my motherboard serial but I do not have the box. I am too lazy right now to open the computer case and moreover I do not think they write the serial on MB itself.

So my question is -
how to learn the serial using programming? Or is there any application already built-in suse meeting that purpose?

Thanks a lot for your help!
SDA

> how to learn the serial using programming? Or is there any application
> already built-in suse meeting that purpose?

i don’t think they normally write the serial number into the
firmware…but, you can try

YaST > Hardware > Hardware Information

good luck, but mine shows:

Board Info: #2
Manufacturer “TBD”
Product “K8Upgrade-760GX”
Version: “1.00”
Serial: “00000000”


DenverD (Linux Counter 282315) via NNTP, Thunderbird 2.0.0.14, KDE
3.5.7, SUSE Linux 10.3, 2.6.22.18-0.2-default #1 SMP i686 athlon

genesup wrote:
> Hello,
> I want to learn my motherboard serial but I do not have the box. I am
> too lazy right now to open the computer case and moreover I do not think
> they write the serial on MB itself.
>
> So my question is -
> how to learn the serial using programming? Or is there any application
> already built-in suse meeting that purpose?
>
> Thanks a lot for your help!
> SDA
>
>

Not ALL systems embed the serial number into the bios/dmi, but if
it’s there you can find it by doing:

hwinfo --bios

or (on Red Hat and others for example)

dmidecode

You’ll have to grep out the serial number.

You can sometimes get to dmi data (again, if available) via
snmp.

YES!
Thank you very much for this. It worked out!
I`ve found my MB information and serial number. It is not a fake because I had already opened the case and read the numbers from the white strip on the edge of the MB. The only problem is that hwinfo serial is given in a quite different order that on the MB (I mean not the number itself, ofcource, but different sections of numbers).