Linux: February 2007 Archives
I upgraded the server from Debian Sarge to Debian Etch this evening. Other than a few minor glitches, everything seems to have survived fairly intact. No doubt noboby missed the blog for the 30 minutes it was offline anyway :)
In order to put something useful on here, and in order to save me having to Google this again, the following is how to get the Dell service tags on Linux and Windows:
Linux:
dmidecode | grep Serial\ Number | head -n1Windows: Open Notepad or your text editor of choice and put the following in:
strComputer = "."Save as get-tag.vbs and double-click to run. This will only work on Windows Server as it requires WMI.
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colSMBIOS = objWMIService.ExecQuery _
("Select * from Win32_SystemEnclosure")
For Each objSMBIOS in colSMBIOS
Wscript.Echo "Serial Number: " & objSMBIOS.SerialNumber
Next
