WMI - Win32 Provider

I will describe only some of the Win32 Classes (as example) in this document as it is really pointless to duplicate the official documentation. According to this please visit the officila web.

Preface

Official documentation: http://msdn.microsoft.com/en-us/library/aa394388

Win32 Provider is the main WMI Classes list related to MS Windows server.

It is possible to use it in the case that you are administrator of large infrastructure. In this case probably you would like to keep your data in your CMDB. Until you are managing just several servers it is possible to maintain CMDB manually. On another hand, if you will start integrating your tools, at the time when you have full of servers, this can provide you solid fundament for future grow of your infrastructure.

In general most of this data is possible to collect as well with SNMP (with using less resources). On another hand sometime it can happen that you will not have this possibility and you will need to use WMI.

Win32 Provider

Win32_BaseBoard

Official documentation: http://msdn.microsoft.com/en-us/library/aa394072

The Win32_BaseBoard WMI class represents a baseboard, which is also known as a motherboard or system board.

Structure:

[root@Linux-WMI-Client ~]# wmic -U wmiuser%wmipasswd //wmi-server.localnet "SELECT * FROM Win32_BaseBoard" | head -2 | awk -F"|" '{ for (i=1;i<=NF;i++) print $i}'
CLASS: Win32_BaseBoard
Caption
ConfigOptions
CreationClassName
Depth
Description
Height
HostingBoard
HotSwappable
InstallDate
Manufacturer
Model
Name
OtherIdentifyingInfo
PartNumber
PoweredOn
Product
Removable
Replaceable
RequirementsDescription
RequiresDaughterBoard
SerialNumber
SKU
SlotLayout
SpecialRequirements
Status
Tag
Version
Weight
Width

Win32_BIOS

Official documentation: http://msdn.microsoft.com/en-us/library/aa394077

The Win32_BIOS WMI class represents the attributes of the computer system's basic input/output services (BIOS) that are installed on a computer.

Structure:

[root@Linux-WMI-Client ~]# wmic -U wmiuser%wmipasswd //wmi-server.localnet "SELECT * FROM Win32_BIOS" | head -2 | awk -F"|" '{ for (i=1;i<=NF;i++) print $i}'
CLASS: Win32_BIOS
BiosCharacteristics
BIOSVersion
BuildNumber
Caption
CodeSet
CurrentLanguage
Description
IdentificationCode
InstallableLanguages
InstallDate
LanguageEdition
ListOfLanguages
Manufacturer
Name
OtherTargetOS
PrimaryBIOS
ReleaseDate
SerialNumber
SMBIOSBIOSVersion
SMBIOSMajorVersion
SMBIOSMinorVersion
SMBIOSPresent
SoftwareElementID
SoftwareElementState
Status
TargetOperatingSystem
Version

Perfformance Data

Starting with Windows Vista, this provider creates the WMI Performance Counter Classes. Data is dynamically supplied to these WMI performance classes by the WMIPerfInst provider. The AutoDiscovery/AutoPurge (ADAP) process no longer transfers performance counter objects into WMI performance classes in the WMI repository.

This data can be used for performance reporting of your system. Any way sometime it is better to use SNMP for collecting of performance date from remote host as you can save some resources.

Win32_PerfRawData class

Official documentation: http://msdn.microsoft.com/en-us/library/aa394253

The performance counter class Win32_PerfRawData is the abstract base class for all concrete raw performance counter classes. To appear in System Monitor, performance counter classes must be added to the root\cimv2 namespace and derived from Win32_PerfRawData. Data in these classes are provided by the high-performance Performance Counter Provider.
Structure:

[root@Linux-WMI-Client ~]# wmic -U wmiuser%wmipasswd //wmi-server.localnet "Select * FROM Win32_PerfRawData" | head -2 |  awk -F"|" '{ for (i=1;i<=NF;i++) print $i}'
CLASS: Win32_PerfRawData_Counters_EventTracingforWindows
(null)
Description
Frequency_Object
Frequency_PerfTime
Frequency_Sys100NS
Name
Timestamp_Object
Timestamp_PerfTime
Timestamp_Sys100NS
TotalMemoryUsageNonPagedPool
TotalMemoryUsagePagedPool
TotalNumberofActiveSessions
TotalNumberofDistinctDisabledProviders
TotalNumberofDistinctEnabledProviders
TotalNumberofDistinctPreEnabledProviders

In the case that you are looking for particular performance information probably it would be handy for you to check some of related sub-class of this class:

[root@Linux-WMI-Client ~]# wmic -U wmiuser%wmipasswd //wmi-server.localnet "Select * FROM Win32_PerfRawData" | grep CLASS | head -4
CLASS: Win32_PerfRawData_Counters_EventTracingforWindows
CLASS: Win32_PerfRawData_Counters_EventTracingforWindowsSession
CLASS: Win32_PerfRawData_Counters_HTTPService
CLASS: Win32_PerfRawData_Counters_HTTPServiceRequestQueues
CLASS: Win32_PerfRawData_PerfProc_Process
...

Win32_PerfFormattedData class

Official documentation: http://msdn.microsoft.com/en-us/library/aa394253

The Win32_PerfFormattedData performance counter class is an abstract base class for the preinstalled, calculated data classes. An example of such a class is Win32_PerfFormattedData_PerfDisk_LogicalDisk. These classes contain calculated values provided by the high-performance Formatted Performance Data Provider.

Structure:

[root@Linux-WMI-Client ~]# wmic -U wmiuser%wmipasswd //wmi-server.localnet "Select * FROM Win32_PerfFormattedData" | head -2 |  awk -F"|" '{for (i=1;i<=NF;i++) print $i}'
CLASS: Win32_PerfFormattedData_Counters_EventTracingforWindows
(null)
Description
Frequency_Object
Frequency_PerfTime
Frequency_Sys100NS
Name
Timestamp_Object
Timestamp_PerfTime
Timestamp_Sys100NS
TotalMemoryUsageNonPagedPool
TotalMemoryUsagePagedPool
TotalNumberofActiveSessions
TotalNumberofDistinctDisabledProviders
TotalNumberofDistinctEnabledProviders
TotalNumberofDistinctPreEnabledProviders

In the case that you are looking for particular performance information probably it would be handy for you to check some of related sub-class of this class:

[root@Linux-WMI-Client ~]# wmic -U wmiuser%wmipasswd //wmi-server.localnet "Select * FROM Win32_PerfFormattedData" | grep CLASS | head -4
CLASS: Win32_PerfFormattedData_Counters_EventTracingforWindows
CLASS: Win32_PerfFormattedData_Counters_EventTracingforWindowsSession
CLASS: Win32_PerfFormattedData_Counters_HTTPService
CLASS: Win32_PerfFormattedData_Counters_HTTPServiceRequestQueues
...

URL's

Navigation
Print/export
QR Code
QR Code wiki:infrastructure_tools:wmi:wmi-win32_provider (generated for current page)