[This is preliminary documentation and subject to change.]
#pragma namespace("\\\\.\\root")
instance of __Namespace
{
Name = "DmiNodes";
};
#pragma namespace("\\\\.\\root\\DmiNodes")
instance of __NameSpace
{
Name = "ManagedNode1"; // Logical name given to a
// remote node
};
[singleton]
class DmiNode
{
string NetworkAddress;
};
instance of DmiNode
{
// Network address for ManagedNode1 or its machine name
NetworkAddress = "206.170.168.35"
};
#pragma namespace("\\\\.\\root\\DmiNodes\\ManagedNode1")
instance of __Win32Provider As $Provider
{
Name = "WbemDmip" ; // Provider DLL name
ClsId = "{DE065A70-19B5-11D1-B30C-00609778D668}" ;
};
{
Provider = $Provider;
SupportsGet = TRUE;
SupportsPut = TRUE;
SupportsDelete = TRUE;
SupportsEnumeration = TRUE;
};
instance of __MethodProviderRegistration
{
Provider = $Provider;
};
instance of __ClassProviderRegistration
{
Provider = $Provider;
SupportsGet = TRUE;
SupportsPut = FALSE;
SupportsDelete = TRUE;
SupportsEnumeration = TRUE;
QuerySupportLevels = NULL ;
ResultSetQueries = {
"Select * From meta_class Where __this isa \"DmiComponent\"" ,
"Select * From meta_class Where __this isa \"DmiGroupRoot\"" ,
"Select * From meta_class Where __this isa \"DmiBindingRoot\"" ,
"Select * From meta_class Where __this isa \"DmiNodeData\"" ,
"Select * From meta_class Where __this isa \"DmiLanguage\"" ,
"Select * From meta_class Where __this isa \"DmiEvent\"" ,
"Select * From meta_class Where __this isa \"DmiAddMethodParams\"" ,
"Select * From meta_class Where __this isa \"DmiGetEnumParams\"" ,
"Select * From meta_class Where __this isa \"DmiLanguageMethodsParams\""
} ;
} ;
};
instance of __Win32Provider as $EventProv
{
Name = "WbemDmiEventp" ;
ClsId = "{B21FBFA0-1B39-11d1-B317-00609778D668}";
};
Instance of __EventProviderRegistration
{
Provider = "WbemDmiEventp";
EventQueryList = {
"select * from DmiEvent",
"select * from __InstanceCreationEvent where TargetInstance is a \"DmiComponent\"",
"select * from __InstanceDeletionEvent where TargetInstance is a \"DmiComponent\"",
"select * from __InstanceCreationEvent where TargetInstance is a \"DmiLanguage\"",
"select * from __InstanceDeletionEvent where TargetInstance is a \"DmiLanguage\""
"select * from __ClassCreationEvent where TargetInstance is a \"DmiGroupRoot\""
"select * from __ClassDeletionEvent where TargetInstance is a \"DmiGroupRoot\""
};
};
Alternately, you can use the WBEM Developer Studio to create namespaces and the required class and instance definitions. For instructions, see the WBEM SDK Applications Guide for instructions. See the sample MOF file WBEMDMIP.MOF included with the WBEM SDK.
mofcomp <MOF-file>