Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


Closed Thread
  Search this Thread
Old 08-22-2012, 01:30 PM   #1
LQ Newbie
Registered: Aug 2012
Posts: 2

Rep: Reputation: Disabled
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 =;

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
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
Status initialized and sampling, 6 plugins and 20 metrics.
# reposctl
Status initialized, 6 plugins and 69 metrics.

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,
Old 08-22-2012, 02:16 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
CIM_BaseMetricValue, Definition instances srid3232 Programming 0 08-22-2012 01:19 PM
sendmail-2: Wrong number of instances of process sendmail:, expected instances equal maxymaxymaxymaxymaxy Linux - Newbie 1 06-15-2011 10:51 AM
Need C++ help with overloading definition of a value dwhitney67 Programming 2 02-27-2009 09:40 AM
Need a Definition dudeman41465 Linux - Software 2 11-07-2005 05:07 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:27 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration