Sunday, February 06, 2011

Get System Serial and Model from Command Line

Many times for some or the other reason we may need to look for serial number and model of the system. We generally do that turning our laptops upside down or by looking on CPU cabinet panels.

Well there’s a much easier way to look for them using command line. If you are running Windows just issue below commands in the command prompt.

      • For Serial Number
                •      wmic bios get serialnumber
      • For Manufacturer
      •      wmic csproduct get vendor

For Model
      •      wmic csproduct get name


The above commands make use of Windows Management Instrumentation (WMI)

If you use Linux, a tool called dmidecode comes to the rescue. Just issue below command in terminal with elevated privilege and you would get the necessary details

dmidecode –t system

Use sudo dmidecode –t system on Debian based Linux distros like Ubuntu


Use su dmidecode –t system on RPM based Linux distros like Fedora


dmidecode is available on most of the new distros by default. If it is not available on your system you can install it from the repository or get it from here to compile and install.

No comments:

Post a Comment

Share what you feel