From: David H. <hel...@us...> - 2013-12-23 14:42:18
|
Hi George, At first I thought you were asking about CIM_RegisteredProfile specifically. But now I see, your question is a general one? You are expecting to get the base class as a result of an ei query instead of the subclass? If your provider (defines and) creates a subclass, the subclass is the correct response for the ei, ein, gi, etc. If you are trying to get your provider to create instances of the base class directly... I'm not sure if that can be done in a standards-compliant way. I can't think of any examples where that is done. Perhaps other folks on the mailing list have. Is there a reason you would like to create instances of the base class directly instead of a subclass? As long as you get all the instances of the subclass when you query an ei, etc. on the base class -- which should always be the case -- does it matter? Dave David E. Heller IBM Linux Technology Center hel...@us... George varghese <geo...@gm...> 12/16/2013 02:23 AM To David Heller/Allentown/IBM@IBMUS, cc Subject Re: [Sblim-devel] regarding profile registration profile Hi, When you get free time, please reply. I am waiting for your response. Regards, George On Sat, Nov 30, 2013 at 6:31 PM, George varghese <geo...@gm...> wrote: Hi, I have one question, Please see the mof file for CIM_SoftwareIdentity. class GK_SoftwareIdentity : CIM_SoftwareIdentity { }; I expecting a GC or a EI operation on this class to return the base class CIM_SoftwareIdentity instead of GK_SoftwareIdentity? Here ,I have filled some properties values in provider by progrmatically. So, I can't declare a static class for this. Is it possible? Please advise me. Regards, George On Tue, Nov 26, 2013 at 2:50 PM, George varghese <geo...@gm...> wrote: Dear David, Thank you. It's very helpful for me. Hi George, Sorry for the delay. Apologies also that I may not be understanding your question: You have registered a new class "GK_RegProfile" but you are expecting a GC or a EI operation on this class to return the base class CIM_RegisteredProfile instead of GK_RegProfile? yes. That's my requirement. I think returning the result of GK_RegProfile is expected here. Ok. Or perhaps your intent is create instances of the base CIM_RegisteredProfile class directly? There is a test XML in SFCB xmltest directory that will do this, for example: see "zcreateInstance_RegProfile.xml". Also you can create static instances of CIM_RegisteredProfile by defining them in a MOF file. For example, you can force one the default instances of SFCB_RegisteredProfile to appear instead as instance of CIM_RegisteredProfile by making an edit like this to the mof file, then running "make postinstall" to recompile the mof: $ vi /var/lib/sfcb/stage/mofs/root/interop/10_interop.mof ... class SFCB_RegisteredProfile : CIM_RegisteredProfile { }; -instance of SFCB_RegisteredProfile +instance of CIM_RegisteredProfile { InstanceID = "CIM:SFCB_PR"; RegisteredOrganization = 2; RegisteredName = "Profile Registration"; RegisteredVersion = "1.0.0"; AdvertiseTypes = 3; }; yes. I have removed the class for this and added above mentioned (instance of CIM_RegisteredProfile) things to mof file. then run sfcprepos -f .. and try to enumerate class, CIM_RegisteredProfile. It's working. Thank you.. Thank you very much. You wish your provider to do this? To create instances of the base class CIM_RegisteredProfile rather than some subclass? Yes. I think that for implementing profile registration profile, no need to create subclass & implementation in c file. But I have one doubt. I wish to change the existing implementation of CIM_SoftwareInstallationService class instance like this. But in that case, I want to implement InstallFromURI method also?.. In that case is it possible? .. how? Please advise me.. Regards, George On Tue, Nov 26, 2013 at 2:27 AM, David Heller <hel...@us...> wrote: Hi George, Sorry for the delay. Apologies also that I may not be understanding your question: You have registered a new class "GK_RegProfile" but you are expecting a GC or a EI operation on this class to return the base class CIM_RegisteredProfile instead of GK_RegProfile? I think returning the result of GK_RegProfile is expected here. Or perhaps your intent is create instances of the base CIM_RegisteredProfile class directly? There is a test XML in SFCB xmltest directory that will do this, for example: see "zcreateInstance_RegProfile.xml". Also you can create static instances of CIM_RegisteredProfile by defining them in a MOF file. For example, you can force one the default instances of SFCB_RegisteredProfile to appear instead as instance of CIM_RegisteredProfile by making an edit like this to the mof file, then running "make postinstall" to recompile the mof: $ vi /var/lib/sfcb/stage/mofs/root/interop/10_interop.mof ... class SFCB_RegisteredProfile : CIM_RegisteredProfile { }; -instance of SFCB_RegisteredProfile +instance of CIM_RegisteredProfile { InstanceID = "CIM:SFCB_PR"; RegisteredOrganization = 2; RegisteredName = "Profile Registration"; RegisteredVersion = "1.0.0"; AdvertiseTypes = 3; }; You wish your provider to do this? To create instances of the base class CIM_RegisteredProfile rather than some subclass? Thanks, Dave David E. Heller IBM Linux Technology Center hel...@us... George varghese <geo...@gm...> 11/13/2013 05:08 AM To sbl...@li..., cc Subject Re: [Sblim-devel] regarding profile registration profile Hi, Anybody please reply to me, I am waiting for your response? Regards, George On Mon, Nov 11, 2013 at 2:27 PM, George varghese <geo...@gm...> wrote: Hi, I had implemented a provider for profile registration using sblim-development packages. I have some doubts regarding it , For implementing it, I have been created a mof file, please see the content of the mof file, class GK_RegProfile : CIM_RegisteredProfile { }; After implementation, testing, I got the following response, <n1:GK_RegProfile> <n1:Caption xsi:nil="true"/> <n1:Description xsi:nil="true"/> <n1:ElementName xsi:nil="true"/> <n1:Generation xsi:nil="true"/> <n1:InstanceID>Base</n1:InstanceID> <n1:OtherRegisteredOrganization>***</n1:OtherRegisteredOrganization> <n1:OtherSpecificationType xsi:nil="true"/> <n1:RegisteredName>***</n1:RegisteredName> <n1:RegisteredOrganization>*</n1:RegisteredOrganization> <n1:RegisteredVersion>**</n1:RegisteredVersion> <n1:SpecificationType xsi:nil="true"/> </n1::GK_RegProfile> But I expected following response, <n1:CIM_RegisteredProfile> <n1:Caption xsi:nil="true"/> <n1:Description xsi:nil="true"/> <n1:ElementName xsi:nil="true"/> <n1:Generation xsi:nil="true"/> <n1:InstanceID>base</n1:InstanceID> <n1:OtherRegisteredOrganization>***</n1:OtherRegisteredOrganization> <n1:OtherSpecificationType xsi:nil="true"/> <n1:RegisteredName>***</n1:RegisteredName> <n1:RegisteredOrganization>*</n1:RegisteredOrganization> <n1:RegisteredVersion>**</n1:RegisteredVersion> <n1:SpecificationType xsi:nil="true"/> </n1:CIM_RegisteredProfile> For getting this kind of response, what can I do, or above response is correct?. For implementing this profile, is it need a new class for this? Can't we use CIM_RegisteredProfile itself?.. if it posible how? Please help me. Regards, George On Tue, Jul 16, 2013 at 10:04 PM, Tyrel Datwyler < ty...@li...> wrote: On 07/16/2013 08:05 AM, George varghese wrote: > > I want to register these profile as per the standard of profile > registration profile. How to achieve it using sfcb. How to create > instances of CIM classes.. which classes they are. > The sblim-gather package implements the DMTF's DSP1053 Base Metric Profile. You could look at its provider implementation for a reference. -Tyrel ------------------------------------------------------------------------------ DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access Free app hosting. Or install the open source package on any LAMP server. Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk _______________________________________________ Sblim-devel mailing list Sbl...@li... https://lists.sourceforge.net/lists/listinfo/sblim-devel |