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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Win2k and Dell Service tags 1

Status
Not open for further replies.
This method is very nice because you are creating your own classes in the database, therefore you know the infomration is all located in one spot.

If you try the SMBIOS method of getting the Asset data from Dell PCs, then you will soon find out that the Asset tag gets reported in different locations depending on the BIOS (even similar Dell machines can have totally different BIOSs).

If you are really good at writing queries, though, you can use the SMBIOS method (changing the SMS_Def.MOF file to include Asset Tag, Dell Service Tag etc.) and then write complex queries that join the correct data in to a single query.

We have been successful in getting the Asset data on machines older than the GXa using the Dell Asset utility. But not very reliably.
 
I am having trouble now finding where the service tag polled by asset.exe/sm_info.exe is stored in the database so i can make a crystal report with all the data I have collected.
I too have had success polling GXa's but not GXpro, Workstation 400, GXMT. I was going to try putting GXa bios on a workstation 400 since they are nearly identical. I don't know if the bios install program will let me do this.

I modified the example .kix script extensively. Here is my latest script:

?'Kixart Script..............written by David S. Bernett - creates a DELL.MIF file'
?'- Name this script SMSMIF.kix'
;?'CHEKS FOR EXISTANCE OF SMS, IF NOT INNSTALLED SCRIPT WILL RUN SMSLS.BAT AND EXIT '
IF EXIST(%WINDIR%+"\MS\SMS\LOGS\RemCtrl.Log") = 0
Shell @Ldrive + "SMSLS.BAT"
EXIT 1
ENDIF
?'CHECKS FOR NT OR 95/98. IF 95/98, SECTION BELOW WILL BE SKIPPED '
IF @INWIN = 1
;?'IF MIF FILE ALREADY THERE, THEN EXIT '
;IF EXIST(%WINDIR%+"\ms\sms\noidmifs\dell.mif") = 1
; EXIT 2
;ENDIF
?'RUNS assetnt.bat which contains the following line: %0\..\sm_info.exe > c:\tag.txt '
SHELL @LDrive + "assetnt.bat"
$q = CHR(34)
IF OPEN(2, "C:\TAG.TXT") = 0
?'READS THE FIRST 12 LINES OF TEXT FILE, GRABS SERVICE TAG ;FROM 12TH LINE. '
$COUNTER = 1
DO
$line = ReadLine(2)
? "Line read: [" + $line + "]"
IF LEN($line) > 1
;$tag = SUBSTR(ReadLine(2), 14, 18)
$tag = SUBSTR($line, 14, 18)
ENDIF
$COUNTER = $COUNTER + 1
UNTIL $COUNTER = 12
?"Line read: [" + $line + "]"
;Places "Not Avail" as Service Tag if other then Dell machine or
;an old dell that does not support SM_INFO.exe
$Length = LEN($tag)
IF $Length > 7 or $Length < 5
$tag = &quot;Not Avail&quot;
ENDIF
ENDIF
CLOSE(2)
? 'writes a .mif file, overwrites if one exists'
? 'Service Tag: ' + $tag
$OutFile = &quot;%WINDIR%\ms\sms\noidmifs\dell.mif&quot;
? $OutFile
IF RedirectOutput($OutFile,1) = 0
&quot;Start Component&quot;
?&quot;Name = &quot; + $q + &quot;Dell System MIF$q&quot;
?&quot;Start Group&quot;
?&quot;Name = &quot; + $q + &quot;Dell Summary$q&quot;
?&quot;ID =1&quot;
?&quot;CLASS = &quot; + $q + &quot;Dell Summary$q&quot;
?&quot;Start Attribute&quot;
?&quot;Name = &quot; + $q + &quot;ServiceTag$q&quot;
?&quot;ID = 1&quot;
?&quot;Type = String(255)&quot;
?&quot;Access = Read-Only&quot;
?&quot;Storage = Common&quot;
?&quot;VALUE = &quot; + $q + $tag + $q
?&quot;End Attribute&quot;
?&quot;End Group&quot;
?&quot;End Component&quot;
?
ENDIF
EXIT
ENDIF
 
WMI CIM Studio will help you.

This utility (in the WMI SDK...go to will allow you to log on to your SMS Site Server and browse the SMS namespace inside of WMI.

When you browse you will be able to see exactly what effect your MIF is having on the schema. My first guess is that your data will be in:

SMS_G_System_Dell_Summary

keep in mind, however, that because you are using the NOIDMIF solution, you are reliant on the hardware inventory cycle. This means that your data may take a while to show up, depending on hardware agent settings, etc.

I have found that NOIDMIFS on the client are generally very reliable, however.
 
I would definitely NOT replace the Precision400 bios with a GXa.. the Precision400 is a dual-proc machine with a completely different motherboard.

Schoenberg's notes are right on the money.
 
It is not a Precision 400, it is an old dell Workstation400 P2, 266MHz Kalamath processor etc. almost identical to a GXa except it came with SCSI HDD and CDROM
 
Can't find WMI CIM Studio. If you find it can you please send me a link, ty.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top