RE: Error While generating enumerated instance

Johnny Hwang <[email protected]> Wed, 15 Jan 2014 17:22:44 +0000
Newsgroups gmane.network.open-pegasus.general
Message-ID <D4807E0100045243873A9B26E6510FAC10E17D1E@mbx025-w1-ca-2.exch025.domain.local>
To follow up on Karl's advice:

cimconfig (same place you run cimcli)

Retrieve forceProviderProcesses:
cimconfig -g forceProviderProcesses
(should be true)

Set forceProviderProcesses to false (it's a static value, so you must set it as planned and restart the cimserver):
cimconfig -s -p forceProviderProcesses=false
(should be set to false pending restart)

Stop cimserver:
cimserver -s

Debug your code (set breakpoint, and run as foreground process):
gdb cimserver
b President_Provider.cpp:34
r daemon=false

Test your code (in a new window, with 30,000 second timeout):
cimcli ei president --timeout 3000

Hope this helps,
Johnny

-----Original Message-----
From: Karl Schopmeyer [mailto:[email protected]] 
Sent: Wednesday, January 15, 2014 4:29 AM
To: amitab len; [email protected]
Subject: Re: Error While generating enumerated instance

First, you are using the out-of-process functionality of Pegasus (that is the cimprovagt). Just to be sure, be sure that the provider is in process (for example use the forceProviderProcesses=false option.  There should be no difference but it could be something introduced by the extra code of the OOP funcitonality.  If there is really an error with the cimple provider or its registration then another error may show up.

Run the server with trace enabled and try to see exactly where the error starts from the trace information.  Look for words like error in the trace which should give a clue as to where the error is originating

Add displays or logs to the initialization for the provider just to be sure you are communicating with the provider property.

Note that CIMPLE has its own trace mechanisms so that you can also turn these on to see if it is something being caused by the passage through the CIMPLE adapter.  That is documented in the cimple book and the release notes.

Since it appears that this is one of the standard CIMPLE test providers (President) that we provide with the release we expect that it is NOT a software issue but some setup or configuration issue with CIMPLE or OpenPegasus.

Karl



Thanks for your message at 12:05 AM 1/15/2014. Your message was:
>Hello All,
>
>I am getting bellow  Error While generating enumerated instance.
>
>lhn@localhost:~/Cimple/cimple-2.0.24/src/providers/President$ cimcli ei 
>President cimcli CIMException:  Cmd= ei Object= President Code= 1
>CIM_ERR_FAILED: Failed to communicate with cimprovagt "President_Module".
>
>Needed urgent help on this.
>
>Thanks and Regards,
>Amitab

Karl Schopmeyer                   Inova Development Inc.
305 Spring Creek Village, Suite 475 -  Dallas TX, 75248 USA
EMAIL: [email protected]       FAX: 1-972-239-0326
Phone 1-972-814-5581
Skype: kschopmeyer         Skype Phone: (214) 556-5971