From: George v. <geo...@gm...> - 2014-06-18 06:20:47
|
Hi, Please see the .reg file contents for this, [GK_Test] provider: GK_Test location: cmpiTestProvider type: instance method namespace: root/cimv2 # [GK_TestIndication] provider: GK_Test location: cmpiTestProvider type: indication namespace: root/cimv2 # [CIM_InstModification] provider: GK_Test location: cmpiTestProvider type: indication namespace: root/cimv2 # when I try to send subscribe request using wsman, wsman subscribe http://schemas.dmtf.org/wbem/wscim/1/* -x "SELECT * FROM CIM_InstModification" -D "http://schemas.microsoft.com/wbem/wsman/1/WQL" -Z https://127.0.0.1:80/eventsink --namespace=root/cimv2 -r 600 -H 2 -h localhost -u user -p secret -G push .R -P 5986 -v -V -c /etc/openwsman/servercert.pem I got the following error in provider, *Error initializing provider GK_Test from cmpiTestProvider for class GK_TestIndication.* *Error initializing provider GK_Test from cmpiTestProvider for class CIM_InstModification.* wsman response should be the below, <?xml version="1.0" encoding="UTF-8"?> <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa=" http://schemas.xmlsoap.org/ws/2004/08/addressing"> <s:Header> <wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous </wsa:To> <wsa:Action>http://schemas.xmlsoap.org/ws/2004/08/addressing/fault </wsa:Action> <wsa:RelatesTo>uuid:23e94561-fc16-1c16-8002-dcc95e201300</wsa:RelatesTo> <wsa:MessageID>uuid:37011ed4-fa80-1a80-8016-7b10dde5592c</wsa:MessageID> </s:Header> <s:Body> <s:Fault> <s:Code> <s:Value>s:Sender</s:Value> <s:Subcode> <s:Value>wsa:ActionNotSupported</s:Value> </s:Subcode> </s:Code> <s:Reason> <s:Text xml:lang="en">No supported indication classes in filter query or no provider found</s:Text> </s:Reason> </s:Fault> </s:Body> </s:Envelope> Please help anybody Regards, George On Mon, Jun 16, 2014 at 11:06 AM, George varghese <geo...@gm...> wrote: > Hi, > > > Earlier I implemented an provider and also I had implemented indication > interfaces int this provider. For implementing it, I have been referring > the source code of sblim-cmpi-base source code. I copied here the sample > mof file, > > > > // =================================================================== > > // GK_Test > > // =================================================================== > > [ Description("Class representing GK_Test"), > > Provider("cmpi:cmpiGK_Test") > > ] > > class GK_Test: CIM_LogicalElement > > { > > [Key, Description("This property is used to read the unique key id")] > > string InstanceID; > > boolean PowerEnabled; > > boolean UserEnabled; > > }; > > > // =================================================================== > > // GK_TestIndication > > // =================================================================== > > [ Indication, > > Description ("Metric Process Indication"), > > Provider("cmpi:cmpiGK_Test") > > ] > > class GK_TestIndication : CIM_InstModification > > { > > boolean PowerEnabled; > > boolean UserEnabled; > > }; > > > > > I have following doubts, if you know about it, please help me. > > > 1. In sblim base server, operating system code handled only one property > named "OperationalStatus". if have multiple property in mof file, how to > know which property is subscribed from clients?. for identifying iy, which > indication interface api is used?. > > > 2. I don't know the substription requests using wsman/wbem clients. > > > I am waiting for your reply. > > > Regards, > > George > > > > |