<div dir="ltr"><div>I have added only one class in my mof file.</div><div><br></div>See one class in mof file as below,<div><br></div><div>class GK_SoftwareIdentity : CIM_SoftwareIdentity {<br></div><div><div><br></div><div>
[Implemented(true), Override("InstanceID"), Description(</div><div> "Unique identifier for installed or available package."</div><div> " It's composed of OrgID and LocalID separated by ':', where"</div>
<div> " <OrgID> is GK and LocalID is PKG:<PKG_NEVRA>. <PKG_NEVRA>"</div><div> " is a string representing rpm package. Letters in NEVRA stand"</div><div> " for name, epoch, version, release and architecture.")]</div>
<div> string InstanceID;</div><div><br></div><div> [Implemented(true), Override("Caption"), Description("Package's summary.")]</div><div> string Caption;</div><div><br></div><div> [Implemented(true), Override("Classifications")]</div>
<div> uint16 Classifications[];</div><div><br></div><div> [Implemented(true), Override("Description"), Description(</div><div> "Package's description.")]</div><div> string Description;</div>
<div><br></div><div> [Implemented(true), Override("ElementName"), Description(</div><div> "Package's NEVRA string. That is also part of InstanceID.")]</div><div> string ElementName;</div>
<div><br></div><div> [Implemented(true), Override("InstallDate")]</div><div> datetime InstallDate;</div><div><br></div><div> [Implemented(true), Override("IsEntity")]</div><div> boolean IsEntity;</div>
<div><br></div><div> [Implemented(true), Override("Name"), Description(</div><div> "Name of package. This does not uniquely identify package"</div><div> " installed on computer system.")]</div>
<div> string Name;</div><div><br></div><div> [Implemented(true), Override("TargetTypes")]</div><div> string TargetTypes[];</div><div><br></div><div> [Implemented(true), Override("VersionString"), Description(</div>
<div> "Package's EVRA, in format: "</div><div> "<epoch>:<version>-<release>.<architecture>")]</div><div> string VersionString;</div><div><br></div><div> [Implemented(true), Description("Package's epoch.")]</div>
<div> uint32 Epoch;</div><div><br></div><div> [Implemented(true), Description("Package's version.")]</div><div> string Version;</div><div><br></div><div> [Implemented(true), Description("Package's release.")]</div>
<div> string Release;</div><div><br></div><div> [Implemented(true), Description("Package's architecture.")]</div><div> string Architecture;</div><div><br></div><div>};</div></div><div><br></div><div>
Then I trying to create skelton code using konkretCMPI,</div><div><br></div><div>I export KONKRET_SCHEMA_DIR as /usr/share/sfcb/CIM/.</div><div><br></div><div>then I trying to generate code,</div><div><br></div><div>$konkret -m GK_Software.mof -s GK_SoftwareIdentity GK_SoftwareIdentity<br>
</div><div><br></div><div>I got the following error,</div><div><br></div><div><div>Using: /usr/share/sfcb/CIM//CIM_Schema.mof</div><div>error: GK_Software.mof(6): undefined qualifier: "Implemented"</div></div><div>
<br></div><div>What is the releavance of "Implemented" tag here.<br></div><div><br></div><div>How to resolve this issue. </div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 18, 2013 at 3:07 PM, Ales Ledvinka <span dir="ltr"><<a href="mailto:aledvink@redhat.com" target="_blank">aledvink@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
First step is what suggested Jan to resolve the errors<br>
during konkret skeleton generation you described.<br>
<br>
Then if you experience further errors during compilation:<br>
The konkret does not owerwrite any existing file.<br>
So from the the very first run that produced error you might<br>
have inconsistent contents from before the mof change.<br>
Retry running konkret in empty directory untill you resolve<br>
all the errors. Then take the list of files generated and<br>
clean up or merge in case you changed the files in your original<br>
project.<br>
<div><div class="h5"><br>
----- Original Message -----<br>
From: "Jan Synacek" <<a href="mailto:jsynacek@redhat.com">jsynacek@redhat.com</a>><br>
To: <a href="mailto:openlmi-devel@lists.fedorahosted.org">openlmi-devel@lists.fedorahosted.org</a><br>
Sent: Thursday, July 18, 2013 10:07:14 AM<br>
Subject: Re: undefined Linux_ComputerSystem class<br>
<br>
On 07/17/2013 01:48 PM, George varghese wrote:<br>
> Hi,<br>
><br>
> I have trying to implement software update provider using OpenLMI. I have<br>
> requirement to implement firmware update using this provider. Right now the<br>
> implementation of software update in python. I don't know this language<br>
> very well. So I trying to implement it in C language.<br>
><br>
> For this purpose I had reused the mof file of openlmi software. I have just<br>
> renamed LMI to GK. Then trying to create skeleton provider source in c<br>
> using konkret. Due to some error its not possible. I have removed<br>
> [Implemented(true), Override("CommunicationStatus")]<br>
> due the error. error is these symbols are undefined. I don't its relevance<br>
> here.<br>
> Then I faced another error is undefined "Linux_ComputerSystem" class. This<br>
> mof file exists in same path.<br>
><br>
><br>
> How to resolve this issue?<br>
><br>
> Regards,<br>
> George<br>
<br>
Hi George,<br>
<br>
I suggest that you should read the OpenLMI wiki at [1], especially [2].<br>
What you probably want is to specify the KONKRET_SCHEMA_DIR environment variable<br>
(for example you can set it to /usr/share/mof/cim-current/ to include all the<br>
system classes' definitions).<br>
<br>
[1] <a href="https://fedorahosted.org/openlmi/" target="_blank">https://fedorahosted.org/openlmi/</a><br>
[2] <a href="https://fedorahosted.org/openlmi/wiki/ProviderTutorialImplementationC" target="_blank">https://fedorahosted.org/openlmi/wiki/ProviderTutorialImplementationC</a><br>
<br>
--<br>
Jan Synacek<br>
Software Engineer, Red Hat<br>
</div></div>_______________________________________________<br>
openlmi-devel mailing list<br>
<a href="mailto:openlmi-devel@lists.fedorahosted.org">openlmi-devel@lists.fedorahosted.org</a><br>
<a href="https://lists.fedorahosted.org/mailman/listinfo/openlmi-devel" target="_blank">https://lists.fedorahosted.org/mailman/listinfo/openlmi-devel</a><br>
_______________________________________________<br>
openlmi-devel mailing list<br>
<a href="mailto:openlmi-devel@lists.fedorahosted.org">openlmi-devel@lists.fedorahosted.org</a><br>
<a href="https://lists.fedorahosted.org/mailman/listinfo/openlmi-devel" target="_blank">https://lists.fedorahosted.org/mailman/listinfo/openlmi-devel</a><br>
</blockquote></div><br></div>