wbemListClasses

wbemListClasses(hsa: HugeStringArray input);

The wbemListClasses method of the Node class retrieves a list of the Web-Based Enterprise Management (WBEM) classes that can be queried for the host machine on which the node specified by the receiver object is running. This is a subset of the full WBEM classes available, as JADE allows only a subset of classes to be queried. The allowed classes are those relating to cache, memory, system, processor, server, disk, and network interface information.

The method inserts strings containing the allowed class names into the HugeStringArray specified by the hsa parameter.

The wbemListClasses method always empties the array before inserting the class names. The caller is responsible for creating and deleting this array.

The strings that are inserted into the HugeStringArray parameter are fully qualified WBEM class names that can be used directly as class names for the other WBEM methods provided by the Node class.

The following example shows the use of the wbemListClasses method.

showWbemClasses()
vars
    hsa: HugeStringArray;
    str : String;
begin
    create hsa transient;
    node.wbemListClasses(hsa);
    foreach str in hsa do
        write "WBEM class name : " & str;
    endforeach;
epilog
    delete hsa;
end;

An example of the output from this method is as follows:

WBEM class name : Root.CIMV2.CIM_StatisticalInformation.Win32_Perf.Win32_PerfRawData.Win32_PerfRawData_PerfDisk_LogicalDisk
WBEM class name : Root.CIMV2.CIM_StatisticalInformation.Win32_Perf.Win32_PerfRawData.Win32_PerfRawData_PerfOS_Cache
WBEM class name : Root.CIMV2.CIM_StatisticalInformation.Win32_Perf.Win32_PerfRawData.Win32_PerfRawData_PerfOS_System
WBEM class name : Root.CIMV2.CIM_StatisticalInformation.Win32_Perf.Win32_PerfRawData.Win32_PerfRawData_Tcpip_NetworkInterface
WBEM class name : Root.CIMV2.CIM_StatisticalInformation.Win32_Perf.Win32_PerfRawData.Win32_PerfRawData_PerfNet_Server
WBEM class name : Root.CIMV2.CIM_StatisticalInformation.Win32_Perf.Win32_PerfRawData.Win32_PerfRawData_PerfOS_Processor
WBEM class name : Root.CIMV2.CIM_StatisticalInformation.Win32_Perf.Win32_PerfFormattedData.Win32_PerfFormattedData_PerfOS_Processor
WBEM class name : Root.CIMV2.CIM_StatisticalInformation.Win32_Perf.Win32_PerfFormattedData.Win32_PerfFormattedData_PerfDisk_LogicalDisk
WBEM class name : Root.CIMV2.CIM_StatisticalInformation.Win32_Perf.Win32_PerfFormattedData.Win32_PerfFormattedData_PerfOS_Cache
WBEM class name : Root.CIMV2.CIM_StatisticalInformation.Win32_Perf.Win32_PerfFormattedData.Win32_PerfFormattedData_PerfOS_System
WBEM class name : Root.CIMV2.CIM_StatisticalInformation.Win32_Perf.Win32_PerfFormattedData.Win32_PerfFormattedData_Tcpip_NetworkInterface
WBEM class name : Root.CIMV2.CIM_StatisticalInformation.Win32_Perf.Win32_PerfFormattedData.Win32_PerfFormattedData_PerfOS_Memory
WBEM class name : Root.CIMV2.CIM_StatisticalInformation.Win32_Perf.Win32_PerfFormattedData.Win32_PerfFormattedData_PerfNet_Server