CIM_BaseMetricValue, Definition instances
I'm currently working to build a SBLIM CIM client that communicates with CIM Server (OpenPegasus).
The goal of the client is to obtain performance data from the Server. I was able to enumerate instances for CIM_OperatingSystem and CIM_UnixProcess but not for CIM_BaseMetricValue. Here is the basic enumeration code: Namespace = root/cimv2 Classname = CIM_BaseMetricValue or CIM_BaseMetricDefinition. final CloseableIterator<CIMInstance> iterator = pClient.enumerateInstances( new CIMObjectPath(null, null, null, pNamespace, pClassName, null), true, false, false, null); try { final List<CIMInstance> result = new ArrayList<CIMInstance>(); while (iterator.hasNext()) { final CIMInstance instance = iterator.next(); result.add(instance); System.out.println(toMof(instance)); } The return value of the iterator is Null for classname = CIM_BaseMetricValue. Here are some more details: # cimprovider --version Version 2.9.1 # cimprovider -ls MODULE STATUS OperatingSystemModule OK ComputerSystemModule OK ProcessModule OK cmpiOSBase_BaseBoardProvider OK cmpiOSBase_ComputerSystemProvider OK cmpiOSBase_CSBaseBoardProvider OK cmpiOSBase_CSProcessorProvider OK cmpiOSBase_OperatingSystemProvider OK cmpiOSBase_OperatingSystemStatisticalDataProvider OK cmpiOSBase_OperatingSystemStatisticsProvider OK cmpiOSBase_OSProcessProvider OK cmpiOSBase_ProcessorProvider OK cmpiOSBase_RunningOSProvider OK cmpiOSBase_UnixProcessProvider OK OSBase_MetricElementConformsToProfileProvider OK OSBase_MetricRegisteredProfileProvider OK OSBase_MetricDefForMEProvider OK OSBase_MetricElementCapabilitiesProvider OK OSBase_MetricForMEProvider OK OSBase_MetricGathererProvider OK OSBase_MetricHostedServiceProvider OK OSBase_MetricIndicationProvider OK OSBase_MetricInstanceProvider OK OSBase_MetricLifeCycleProvider OK OSBase_MetricRepositoryServiceProvider OK OSBase_MetricServiceAffectsElementProvider OK OSBase_MetricServiceCapabilitiesProvider OK OSBase_MetricServiceProvider OK OSBase_MetricDefinitionProvider OK OSBase_MetricValueProvider OK The gatherer and repository are up and sampling: # gatherctl s Status initialized and sampling, 6 plugins and 20 metrics. q # reposctl s Status initialized, 6 plugins and 69 metrics. q # so, why aren't there any isntances for CIM_BaseMetricValue and Definition classes, even when the providers are running? Any help in this regard is very much appreciated. I spent more than two week trying to figure what I’m doing wrong, but made no progress. Thanks in advance, |
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
|
All times are GMT -5. The time now is 07:08 AM. |