Re: Error while getting Enumerated instance

amitab len <[email protected]> Wed, 22 Jan 2014 15:36:38 +0530
Newsgroups gmane.network.open-pegasus.general
Message-ID <CABohj2oHn8mj0FoXHwP_42jjctwGX0G_A73g=VEFO4gKQLDoyA@mail.gmail.com>
Hello

I have attached some part of the error file ..
Please help me resolving the below error.


root@localhost:/home/lhn/Cimple/cimple-2.0.24/src/providers/newprovider#
cimcli -n root/cimv2 ei AMIT_NewComputerSystemcimcli CIMException:  Cmd= ei
Object= AMIT_NewComputerSystem Code= 1
CIM_ERR_FAILED: ProviderLoadFailure
(/home/lhn/pegasus/pegasus/bld/lib/libAMIT_NewComputerSystem.so:AMIT_NewComputerSystem_Provider):entry
point not found.



Thanks
Amitab


On Tue, Jan 21, 2014 at 9:05 PM, amitab len <[email protected]> wrote:

> Hi Devchandra,
>
> I have changed the mof file with CMPI interface and version as 2.0 and
> compile with cimmof but still I am getting the same error.
>
> my mof file looks like  below
>
> instance of PG_ProviderModule
> {
> Name = "AMIT_NewComputerSystem_Module";
> Vendor = "Pegasus";
> Version = "2.0.0";
> InterfaceType = "CMPI";
> InterfaceVersion = "2.0.0";
> Location = "AMIT_NewComputerSystem";
> };
>
>
> instance of PG_Provider
> {
> Name = "AMIT_NewComputerSystem_Provider";
> ProviderModuleName = "AMIT_NewComputerSystem_Module";
> };
>
>
> instance of PG_ProviderCapabilities
> {
> CapabilityID = "AMIT_NewComputerSystem";
> ProviderModuleName = "AMIT_NewComputerSystem_Module";
> ProviderName = "AMIT_NewComputerSystem_Provider";
> className = "AMIT_NewComputerSystem";
> Namespaces = {"root/cimv2"};
> ProviderType = {2};
> supportedProperties = NULL;
> supportedMethods = NULL;
> };
>
> and issuing command as
>
> cimmof -n /root/pg_interopt AMIT_NewComputerSystem. for manually
> registering
>
> and I have class mof file as bleow
>
>
> class AMIT_NewComputerSystem : CIM_ComputerSystem
> {
>         string classname;
> };
>
> I have register this by issuing command as
>
> cimmof -n root/cimv2 AMIT_NewComputerSystem
>
>
> please help for resolving the below error...
>
>
>
> root@localhost:/home/lhn/Cimple/cimple-2.0.24/src/providers/newprovider#
> cimcli ei AMIT_NewComputerSystem
> cimcli CIMException:  Cmd= ei Object= AMIT_NewComputerSystem Code= 1
> CIM_ERR_FAILED: ProviderLoadFailure
> (/home/lhn/pegasus/pegasus/bld/lib/libAMIT_NewComputerSystem.so:AMIT_NewComputerSystem_Provider):provider
> is not a CIMProvider.
>
>
> Thanks
> Amitav
>
>
> On Tue, Jan 21, 2014 at 8:23 PM, Devchandra L Meetei <[email protected]>wrote:
>
>> if you are trying to use ComputerSystem provider. No need to write your
>> own.
>> pegasus will have one shipped with it.
>> just check using
>>
>> cimcli ei/gi PG_computerSystem/CIM_ComputerSystem
>>
>>
>> On Tue, Jan 21, 2014 at 8:20 PM, Devchandra L Meetei <[email protected]>wrote:
>>
>>> Are you using CMPI interface for your provider? or C++ default provider
>>> interface?
>>>
>>> Here, pegasus is trying to load your `libAMIT_NewComputerSystem.so` file
>>> but could not found entry point for provider.
>>>
>>> We need to ensure that the registration mof should have same matching
>>> interface as that so file.
>>>
>>> and I think we need to change the message
>>> > provider is not a CIMProvider.
>>> which is misleading
>>>
>>>
>>>
>>> On Tue, Jan 21, 2014 at 7:50 PM, amitab len <[email protected]>wrote:
>>>
>>>> Hello All,
>>>>
>>>> Please provide your valuable input to the below error.Help will be much
>>>> appreciated.
>>>>
>>>> root@localhost:/home/lhn/Cimple/cimple-2.0.24/src/providers/newprovider#
>>>> cimcli ei AMIT_NewComputerSystem
>>>> cimcli CIMException:  Cmd= ei Object= AMIT_NewComputerSystem Code= 1
>>>> CIM_ERR_FAILED: ProviderLoadFailure
>>>> (/home/lhn/pegasus/pegasus/bld/lib/libAMIT_NewComputerSystem.so:AMIT_NewComputerSystem_Provider):provider
>>>> is not a CIMProvider.
>>>>
>>>>
>>>> thanks,
>>>> Amitab
>>>>
>>>
>>>
>>>
>>> --
>>> Warm Regards
>>> --Dev
>>> OpenPegasus Developer/Committer
>>>
>>> "Any fool can write code that a computer can understand. Good
>>> programmers write code that humans can understand."
>>> --- Martin Fowler
>>>
>>
>>
>>
>> --
>> Warm Regards
>> --Dev
>> OpenPegasus Developer/Committer
>>
>> "Any fool can write code that a computer can understand. Good programmers
>> write code that humans can understand."
>> --- Martin Fowler
>>
>
>
errorLog.docx (application/vnd.openxmlformats-officedocument.wordprocessingml.document, 11.3 KB) - not displayed