Difference between revisions of "Dell Service Tag"

From Noah.org
Jump to navigationJump to search
(New page: Category:Engineering You can get the '''Dell Service Tag''' from a machine remotely. You don't have to look up Service Tag from an inventory list and you don't have to go try to read ...)
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
[[Category:Engineering]]
 
[[Category:Engineering]]
  
You can get the '''Dell Service Tag''' from a machine remotely. You don't have to look up Service Tag from an inventory list and you don't have to go try to read the number off the tiny sticker. It turns out that Dell puts the Service Code into BIOS. You can query the BIOS for the Service Tag.
+
In order to talk to Dell about equipment you bought from them you need the '''Dell Service Tag''' which is a 7-character string of capital letters and numbers that is printed on a tiny brown sticker somewhere on the front or back of the machine. This can be a pain in the ass if you didn't realize how critical this number is and didn't include it in your inventory of your servers. Luckily, you can get the '''Dell Service Tag''' from a machine remotely. It turns out that Dell puts the Service Tag in the BIOS. so you can query the BIOS for the Service Tag. This can be done without rebooting from the command-line of both Linux and Windows.
 +
 
 +
The '''Dell Service Tag''' is related to the '''Express Service Code'''. The Express Service Code is simply the base-10 decimal integer version of the Dell Service Tag. The Dell Service Tag is a base-36 integer.
 +
 
 +
[http://support.dell.com/support/topics/global.aspx/support/product_support/product_support_central?c=us&l=en&s=gen&~ck=mn Look up product by Service Tag]
  
 
== Linux ==
 
== Linux ==
Line 26: Line 30:
 
<pre>
 
<pre>
 
If WScript.Arguments.Count = 0 Then
 
If WScript.Arguments.Count = 0 Then
 
 
     Wscript.Echo "Usage: GetDesllSvcTag.vbs computer1 [computer2] [computer3] ......"
 
     Wscript.Echo "Usage: GetDesllSvcTag.vbs computer1 [computer2] [computer3] ......"
 
 
     WScript.Quit
 
     WScript.Quit
 
 
End If
 
End If
 
 
 
 
For Each strComputer In wscript.Arguments
 
For Each strComputer In wscript.Arguments
 
 
     Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
 
     Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
 
 
     Set colSMBIOS = objWMIService.ExecQuery ("Select * from Win32_SystemEnclosure")
 
     Set colSMBIOS = objWMIService.ExecQuery ("Select * from Win32_SystemEnclosure")
 
 
     For Each objSMBIOS in colSMBIOS
 
     For Each objSMBIOS in colSMBIOS
 
 
         Wscript.Echo strComputer & ": " & objSMBIOS.SerialNumber
 
         Wscript.Echo strComputer & ": " & objSMBIOS.SerialNumber
 
 
     Next
 
     Next
 
 
Next  
 
Next  
 
 
</pre>
 
</pre>
  

Latest revision as of 18:07, 22 August 2008


In order to talk to Dell about equipment you bought from them you need the Dell Service Tag which is a 7-character string of capital letters and numbers that is printed on a tiny brown sticker somewhere on the front or back of the machine. This can be a pain in the ass if you didn't realize how critical this number is and didn't include it in your inventory of your servers. Luckily, you can get the Dell Service Tag from a machine remotely. It turns out that Dell puts the Service Tag in the BIOS. so you can query the BIOS for the Service Tag. This can be done without rebooting from the command-line of both Linux and Windows.

The Dell Service Tag is related to the Express Service Code. The Express Service Code is simply the base-10 decimal integer version of the Dell Service Tag. The Dell Service Tag is a base-36 integer.

Look up product by Service Tag

Linux

dmidecode -s system-serial-number
2M1XDB1

Some systems such as Red Hat and CentOS don't support the '-s' option so these system may need to do something a little tricky (it will probably print twice):

dmidecode | grep --extended-regexp Serial[[:space:]]Number:[[:space:]]*[A-Z0-9]{7}$
                Serial Number: 2M1XDB1
                Serial Number: 2M1XDB1

Windows

In Windows you can use a tiny VBScript to query the WMI for the Service Tag.

Save this script as `service_tag.vbs`:

If WScript.Arguments.Count = 0 Then
    Wscript.Echo "Usage: GetDesllSvcTag.vbs computer1 [computer2] [computer3] ......"
    WScript.Quit
End If
For Each strComputer In wscript.Arguments
    Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
    Set colSMBIOS = objWMIService.ExecQuery ("Select * from Win32_SystemEnclosure")
    For Each objSMBIOS in colSMBIOS
        Wscript.Echo strComputer & ": " & objSMBIOS.SerialNumber
    Next
Next 

Start up a Command Prompt (cmd.exe) and run the `service_tag.vbs` script to get something like this:

C:\Documents and Settings\Administrator\Desktop>service_tag.vbs 127.0.0.1
127.0.0.1: 2M1XDB1