Re: Getting incomplete object path

Pranav S <[email protected]>
Newsgroups gmane.network.open-pegasus.general
Message-ID <CAOGgbh1Q7sjH=DVs8xdim6Vai8Lk-6Uj6qmeK9fAtX+PGgEFYg@mail.gmail.com>
Small correction, I should have used CIMInstance,

Array<CIMInstance> enumerateInstances()  == {

        Array<CIMObjectPath> instaNames = enumerateInstanceNames();
                                      Array<CIMInstance> compInstanace[i];
                                      for(i=0; i<instaNames.size(), i++)
                                          compInstanace[i] =
getInstance(instanceNames[i]));
                                      }


On 17 April 2012 22:40, Pranav S <[email protected]> wrote:

> Hey Kirk,
> Pegasus::enumerateInstances should be equal to
> Pegasus::enumerateInstanceNames and running Pegasus::getInstance over each
> individual Pegasus::CIMObjectPath returned from enumerateInstanceNames.
>
> Array<CIMObjectPath> enumerateInstances()  == {
>                                       Array<CIMObjectPath> instaNames =
> enumerateInstanceNames();
>                                       Array<CIMObjectPath>
> compInstanace[i];
>                                       for(i=0; i<instaNames.size(), i++)
>                                           compInstanace[i] =
> getInstance(instanceNames[i]));
>                                       }
> Let me know if I am still wrong here..
>
> On 17 April 2012 22:23, Kirk Augustin <[email protected]> wrote:
>
>> It is not clear to me what the concern is?
>>
>> GetInstance() and enumerateInstances() return complete instances of
>> objects in the search criteria, unless filtered by a passed in property
>> list.
>> But enumerateInstanceNames() does not return complete instances.  It only
>> returns namespace and key property values sufficient so that getInstance()
>> could be used to get the rest.
>>
>> Pegasus::enumerateInstances should not be equal to
>> Pegasus::enumerateInstanceNames.
>> It should return the same number of instances, but not the same amount of
>> information about each instance.
>>
>> While Pegasus::getInstance and Pegasus::enumerateInstances could return
>> different number of instances, but should have the same amount of
>> information about each instance.
>>
>>
>> Kirk Augustin
>> 11821 NW McNamee Rd
>> Portland, OR 97231
>>
>> HM: 503-289-4356
>>
>>   ------------------------------
>> *From:* Pranav S <[email protected]>
>> *To:* Venkateswara R Puvvada <[email protected]>
>> *Cc:* [email protected]
>> *Sent:* Tuesday, April 17, 2012 9:10 AM
>> *Subject:* Re: Getting incomplete object path
>>
>> Hey Venkat,
>>
>> I did not get what is wrong here, even DMTF says the same and Pegasus is
>> one of the implementation. Pegasus::enumerateInstances should be equal to
>> Pegasus::enumerateInstanceNames, running Pegasus::getInstance over each
>> individual Pegasus::CIMObjectPath retyrned from enumerateInstanceNames. I
>> am not getInstance will return an array.
>>
>>
>> On 17 April 2012 19:50, Pranav S <[email protected]> wrote:
>>
>> That's cool Venkat, Thank You for pointing me to the cause for this
>> behaviour.
>>
>>
>>
>> On 17 April 2012 17:29, Venkateswara R Puvvada <[email protected]>wrote:
>>
>> Per the DMTF specification, the GetInstance operation returns an
>> <instance>
>> whereas EnumerateInstances returns <namedInstance>*.  So, the return value
>> from GetInstance is not expected to include the instance name. Please
>> refer
>> to the Specification for CIM Operations over HTTP:
>>
>> http://www.dmtf.org/sites/default/files/standards/documents/DSP200.html
>>
>>
>> Regards,
>> Venkat
>>
>>
>>
>>
>> From:   Pranav S <[email protected]>
>> To:     [email protected],
>> Date:   04/14/2012 11:34 AM
>> Subject:        Getting incomplete object path
>>
>>
>>
>> Hello,
>>
>> I am enumerating a class instance names(Pegasus::CIMObjectPaths') using
>> Pegasus::enumerateInstanceNames and after that doing Pegasus::getInstance
>> on the obtained object paths. I get entire instance details, but the
>> object
>> path inside the obtained Pegasus::CIMInstance, is incomplete, it shows
>> only
>> the creation class name, rest of the details are not embedded in the
>> Pegasus::CIMObjectPath. I see the instance properties but only object path
>> is incomplete.
>> Can some one spread some light on the issue?
>>
>> I am using OpenPegasus 2.11.1 for client and my Cim server and provider is
>> from EMC.
>>
>> Is this EMC cim server/provider issue?
>>
>> --
>> Thanks,
>> Pranav
>>
>>
>>
>>
>>
>> --
>> Thanks,
>> Pranav
>>
>>
>>
>>
>> --
>> Thanks,
>> Pranav
>>
>>
>>
>>
>
>
> --
> Thanks,
> Pranav
>
>


-- 
Thanks,
Pranav
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.