From: George v. <geo...@gm...> - 2014-07-15 13:33:41
|
Thank you. I had implemented a sample provider using the reference of implementation in sblim-base , operating system source code. Then I tried testing with wbemcli. I have created /tmp/SFCB_OS_Listener.txt file ans set it the destination path. I executed the following command, > wbemcat SFCBCreateFilter.localhost.xml > wbemcat SFCBCreateHandler.localhost.xml > wbemcat SFCBCreateSubscription.localhost.xml When I open the file it contains , indication contents cim xml, is not well formatted. Please see it , <PROPERTY NAME="Generation" TYPE="uint64"> </PROPERTY> <PROPERTY NAME="ElementName" TYPE="string"> </PROPERTY> <PROPERTY NAME="Caption" TYPE="string"> </PROPERTY> <PROPERTY NAME="PrimaryStatus" TYPE="uint16"> </PROPERTY> <PROPERTY NAME="OperatingStatus" TYPE="uint16"> </PROPERTY> <PROPERTY NAME="DetailedStatus" TYPE="uint16"> </PROPERTY> <PROPERTY NAME="CommunicationStatus" TYPE="uint16"> </PROPERTY> <PROPERTY NAME="HealthState" TYPE="uint16"> </PROPERTY> <PROPERTY NAME="Status" TYPE="string"> Please help me, if you know the reason for this kind of invalid xml file. Regards, George On Tue, Jul 1, 2014 at 12:21 AM, Chris Buccella <buc...@li... > wrote: > On 06/30/2014 02:43 AM, George varghese wrote: > > I need clarity to below questions, > > > > 1.What kind of the CIM request comes into provider? for example, I want to > get an instance whenever modifying the *PowerEnabled* property of class. > can you please provider sample cim request for it? > > 2.How to know in which property is subscribed in provider? and which > indication API and which parameter is used for get it? > > > 1. CIM indications are sent from the server to the client, not from the > client to the server as with the standard CIM operations (GetInstance, > etc.). The indication is sent from the CIM server to a destination, > typically another HTTP server. You need an indication provider that is > "enabled" to send indications to a destination. You do this by creating 3 > instances on the CIM server: a CIM_IndicationFilter, a > CIM_ListenerDestination, and a CIM_IndicationSubscription. Providers > implementing a class specified in the filter's query property will be > enabled when the subscription is successfully created. Being enabled means > the indication provider can send indications. If you want it to send > indications based on an instance property changing, you need to subclass > CIM_InstModification. > > 2. The query string of the IndicationFilter. For an example indication > provider, see: > https://github.com/buccella/SFCB/blob/master/test/TestProviders/cmpiTestIndicationProvider.c > > The following page has some relevant information on indications: > > > http://docs.oracle.com/cd/E19095-01/sfe6900.srvr/816-1984-11/Indications.html > > > -Chris > > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > Sblim-devel mailing list > Sbl...@li... > https://lists.sourceforge.net/lists/listinfo/sblim-devel > > |