Dell Product Name - using wmi

Senthil_OR at Dell.com Senthil_OR at Dell.com
Tue Jul 11 12:54:48 CDT 2006


Hi Michael,
                Greetings! 
I have a couple of questions w.r.t to SMBIOS.
 
As my requirement was just to get Dell Product Name(Dell PowerEdge X/
Optiplex X etc), I thought of using  python wmi interface and get it.
 
>>> import wmi
>>> c = wmi.WMI()
>>> for value in c.Win32_SMBIOSMemory():
...  print value.SystemName
...  
WXP-GQ86K1S
WXP-GQ86K1S
WXP-GQ86K1S
WXP-GQ86K1S
 
I am getting the service tag instead.
 
Tried another way:

>>> for value in c.Win32_ComputerSystem():
...  print value.Model
...  
Latitude D610 
 
1) I assume, I should able to use this for any of the Dell systems. Am I
right?
 
--
Few points on libsmbios.
* The dev_environment for windows does not have the zip of xerces. I had
to wget on Linux box and move to windows.
* Just as Linux provides make minimal to build the binaries without the
dependency on cppunit/xerces. Does windows have any option for that. 
* I am new to VC++. I downloaded the VC++ Express Edition 2005 ( version
8.0) from microsoft site to build the libsmbios on windows. It did not
compile right away
Gave errors:
"
Unknown compiler version - please run the configure tests and report the
results

c:\libsmbios\libsmbios-0.11.5\libsmbios-0.11.5\include\smbios/compat.h(4
6) : fatal error C1083: Cannot open include file: 'windows.h': No such
file or directory

"
Any settings or environment variables I need to change?


Thanks,
Senthil



More information about the libsmbios-devel mailing list