Saturday, February 14, 2015

Command Line for Finding Dell Service Tag or HP Serial

Command Line to Display Dell Server or Desktop Service Tag 


A Dell server or desktop service tag can be found by using a command line and no additional tools installed. This is achieved simply through a common Windows command window. The command line works on Windows XP and above. Dell BCM utilities other other third party software does not need to be installed. The functionality to retrieve and display the service tag, serial number, and other information is built into Windows.  
On an HP system (server or desktop), the system serial number can be retrieved and displayed very quickly by starting a command prompt and typing in : 
 WMIC BIOS GET SERIALNUMBER  (the command can be upper or lower case).  

On  Dell server or Desktop/laptop system,  the same command line will display the service tag. 



Getting the serial number of a "white-box" system using command line

Without third party utilities installed on  a "white-box" system, the serial number could be displayed using the same command used for displaying the serial number and service tag. The serial number will be if the manufacturer has entered into the property field which is queried when the command is executed. Commonly however, when trying to acquire the serial number using Windows Management the results "To Be Filled by O.E.M." . 


Command on Linux to get the Dell service tag or HP serial number

Linux of course has the ability to return the manufacturers serial number or a Dell service tag. On CentOS or Red Hat Linux for example, the following utility run from a command window (shell) can be executed to display the system serial number or service tag.

dmidecode Command to display Dell Service Tag or system serial number on Linux

      # dmidecode | grep -i serial      
or 
      # dmidecode -t 1

 DMIDECODE may have to be installed first if not available. 
The utility can be installed by executing the following: 
       
# yum -y install dmidecode

    
  


Share/Save/Bookmark
Enhance your Support Services with Online Desktop Support Software