RFC: Profile Registration in OpenLMI - generically
Jan Safranek
jsafrane at redhat.com
Thu Jul 11 12:33:10 UTC 2013
On 07/10/2013 05:56 PM, Chris Buccella wrote:
> Hi MIchal,
>
>> use a CIM_RegisteredProfile directly - no subclass with versioning
> info we need
>
> You can create the subclass just above it, like this:
>
> class LMI_RegisteredProfile : CIM_RegisteredProfile
> {
> /* whatever */
> };
>
> instance of LMI_RegisteredProfile
> {
> InstanceID = "CIM:RH_Fan";
> RegisteredOrganization = 2;
> RegisteredName = "Fan";
> RegisteredVersion = "1.0.0";
> AdvertiseTypes = 3;
> };
>
>
>> Please correct me, if I'm wrong. I've only tried to create class
> LMI_RegisteredProfile without any provider under
>> Pegasus. And then tried to create static instances, which failed with
> CIM_ERR_NOT_SUPPORTED.
>
> I'm not very knowledgeable about Pegasus, but this seems strange. If the
> mof compiler allowed you to compile the static instance, it should be in
> the repository, and I would expect that you could retrieve it with an
> EnumerateInstances call for CIM_RegisteredProfile. If it did not
> successfully compile, I would expect the error to be CIM_ERR_NOT_FOUND.
Pegasus has configuration option for this, see
repositoryIsDefaultInstanceProvider at
http://cvs.opengroup.org/cgi-bin/viewcvs.cgi/*checkout*/pegasus/doc/BuildAndReleaseOptions.html?rev=HEAD&content-type=text/html
Maybe we should enable it by default in Fedora.
Jan
More information about the openlmi-devel
mailing list