Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modifying hardware MOF to pull Dell service tag 1

Status
Not open for further replies.

mikescuba

MIS
Jan 11, 1999
32
US
Has anyone done this before? We want to pull the service tag# from the bios so we can generate an unique ID in our inventory database. Does anyone know what customizations are needed? Also, we aren't using dell's DMI software.

Any info and resources would be appreciated.

Mike C
 
I did this in a lab environment the very day you posted this!!

Have a look at the URL below. It tells you all you need to know.


Basically, You add entries as specified in the OpenManage documentation to the SMS_def.mof file. Let SMS_def.mof repliacte to the CAPs. Run the Dell WMI setup on the SMS client and reboot. Cycle CCIM on the client to update the local SMS_def.mof and re-run a hardware inventory. Let the site database update and then view the Dell specific details for the client in Resource Explorer.

NOTE: Always try it in the lab first before production and make a backup of the SMS_def.mof file in case it all goes wrong!

Good luck,

Pete
 
Newer Dell PC's (350's and up i think) work with sms without doing anything extra. The PC BIOS portion of the sms_def.mof can be setup to get the service tag. We have been using this and works really good on the newer pc's as long as the pc has a pretty current version of the bios.

Hope that helps

Jason
 
I had to add SYSTEM_ENCLOSURE into the SMS_DEF.MOF file.


[SMS_Report(TRUE),
SMS_Group_Name("System Enclosure"),
SMS_Class_ID("MICROSOFT|System_Enclosure|1.0")]
class Win32_SystemEnclosure : SMS_Class_Template
{
[SMS_Report(TRUE), key]
string Tag;
[SMS_Report(True)]
string Caption;
[SMS_Report(True)]
string Description;
[SMS_Report(True)]
string Manufacturer;
[SMS_Report(True)]
string Name;
[SMS_Report(TRUE)]
string SerialNumber;
[SMS_Report(False)]
string SMBIOSAssetTag;
[SMS_Report(True)]
string Version;
};


Paste that into your SMS_DEF.MOF and see the changes that it implemented with MOF MANAGER. Keep in mind that a full hardware sync will be requested of all your clients when a new .MOF is detected.

Deploy WMI 1.5 to machines that need it because any older versions may not be able to see this info (use WBEMTEST to find out if they can).

You'll see SYSTEM ENCLOSURE in your resource explorer for your query writing pleasure.

I found a REAL good write up regarding this info on either IBM or COMPAQ's website. I'll find it and paste it here later.

- CHRIS
 
Here's the link I promised. I was mistaken, it was on Technet. I am hesitant to implement any "manufacturer specific" WMI DMI DTMF WBEM CIM solutions such as Dell OpenManage or Compaq Insight Manager clients on my workstations.

This link is a good way to get Serial Numbers and Asset Tag information from ANY able machine.

 
ComputerName = InputBox("Enter the name of the computer you wish to query")

winmgmt1 = "winmgmts:{impersonationLevel=impersonate}!//"& ComputerName &""

'WScript.Echo winmgmt1

Set SNSet = GetObject( winmgmt1 ).InstancesOf ("Win32_BIOS")

for each SN in SNSet
MsgBox "The serial number for the specified computer is: " & SN.SerialNumber
Next



Save this text in a .vbs file then double click

use "localhost" if you want to query your own machine
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top