Dell Product Name - using wmi
Michael_E_Brown at Dell.com
Michael_E_Brown at Dell.com
Tue Jul 11 17:17:09 CDT 2006
> -----Original Message-----
> From: libsmbios-devel-bounces at lists.us.dell.com
> [mailto:libsmbios-devel-bounces at lists.us.dell.com] On Behalf
> Of Senthil_OR at dell.com
> Sent: Tuesday, July 11, 2006 12:55 PM
> To: libsmbios-devel at lists.us.dell.com
> Subject: Dell Product Name - using wmi
>
> 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?
I would give 90% confidence here. I don't really rely on WMI stuff
myself or know how they populate it.
>
> --
> 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.
Done.
> * Just as Linux provides make minimal to build the binaries
> without the dependency on cppunit/xerces. Does windows have
> any option for that.
Yes. Just build the individual projects.
> * I am new to VC++. I downloaded the VC++ Express Edition
> 2005 ( version
The latest version has all fixes for VC8 (but no project files.) I have
not made an official release, though. I am waiting on the clearcase team
to add the VC8 component to my project.
> 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
This I have no idea. "windows.h" is one of those basic files that should
always be present.
--
Michael
>
> "
> Any settings or environment variables I need to change?
>
>
> Thanks,
> Senthil
>
> _______________________________________________
> libsmbios-devel mailing list
> libsmbios-devel at lists.us.dell.com
> http://lists.us.dell.com/mailman/listinfo/libsmbios-devel
>
More information about the libsmbios-devel
mailing list