LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-22-2012, 01:19 PM   #1
srid3232
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


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.

The result is same even for CIM_BaseMetricDefinition class.


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.

So, if the provider is up and running, then why aren't there any instances of the CIM_BaseMetricValue, Definition?
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,

Last edited by srid3232; 08-22-2012 at 01:21 PM.
 
  


Reply



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
sendmail-2: Wrong number of instances of process sendmail:, expected instances equal maxymaxymaxymaxymaxy Linux - Newbie 1 06-15-2011 10:51 AM
[SOLVED] mount definition debianD Linux - Newbie 9 07-10-2009 04:38 PM
How to know definition is present or not? Pramoda.M.A Linux - Software 5 05-28-2009 06:01 AM
Pointer definition Alien_Hominid Programming 9 05-26-2009 06:51 PM
Need a Definition dudeman41465 Linux - Software 2 11-07-2005 05:07 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:44 PM.

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