From: Sameer Z. <sa...@ya...> - 2015-04-15 12:26:10
|
Thanks. I'll look into the namespace possibility. Regards, Sameer -----Original Message----- From: "Dave Heller" <hel...@li...> Sent: 15/04/2015 3:53 AM To: "sbl...@li..." <sbl...@li...> Subject: Re: [Sblim-devel] wbemcli issue creating instance references No, that's normal. wbemcli often does a GetClass as a precursor to other queries. It uses the output to form other queries: checking for qualifiers, validating parameter types and such. And to just make sure the class exist, if nothing else. cimcli does the same sort of thing. And the XML of the gc looks good, so I'm not sure why it's failing. Must be some problem server-side. What happens if you just: $ wbemcli gc http://localhost/root/interop:CIM_IndicationSubscription One thing I noticed: you are looking for your classes in root/cimv2 where normally these classes are registered in root/interop. I think it *can* be done this way (as long as the classes are indeed registered in the other namespace), although I've never tried it. If that were the only problem you'd just get "not found" for the gc, not the error you're seeing. But maybe the namespace has something to do with it. Dave On 04/14/2015 02:49 AM, Sameer Zeidat wrote: Hi Dave, Thanks very much for the detailed response. Appreciate it. I will look into using the sample programs you mentioned. I have used curl with xml, at the time, to workaround the issue. I wanted to test the syntax you provided below, nevertheless. So I tried it today, and I have to say it's cleaner (and shorter) to omit the key values from the object name and specify them in the properties list only. It worked fine when creating filters and handlers. However, I'm still having an issue, though looks to be a new one now, when creating subscriptions. Below is the command I used and the server response, with XML dump. I can see that with the new syntax wbemcli is correctly using LOCALINSTANCEPATH, but it appears it is now sending the wrong type of CIM request! wbemcli ci -dx -noverify 'http://user:password@10.1.1.1:5989/root/cimv2:CIM_IndicationSubscription.Filter=,Handler=' 'Filter=root/cimv2:CIM_IndicationFilter.CreationClassName="CIM_IndicationFilter",SystemCreationClassName="CIM_ComputerSystem",SystemName="mysystem",Name="TEST",Handler=root/cimv2:CIM_IndicationHandlerCIMXML.CreationClassName="CIM_IndicationHandlerCIMXML",SystemCreationClassName="CIM_ComputerSystem",SystemName="mysystem",Name="TEST"' To server: <?xml version="1.0" encoding="utf-8" ?> <CIM CIMVERSION="2.0" DTDVERSION="2.0"> <MESSAGE ID="4711" PROTOCOLVERSION="1.0"><SIMPLEREQ><IMETHODCALL NAME="GetClass"> <LOCALNAMESPACEPATH> <NAMESPACE NAME="root"/> <NAMESPACE NAME="cimv2"/> </LOCALNAMESPACEPATH> <IPARAMVALUE NAME="ClassName"><CLASSNAME NAME="CIM_IndicationSubscription"/></IPARAMVALUE> <IPARAMVALUE NAME="LocalOnly"><VALUE>FALSE</VALUE></IPARAMVALUE> <IPARAMVALUE NAME="IncludeQualifiers"><VALUE>TRUE</VALUE></IPARAMVALUE> <IPARAMVALUE NAME="IncludeClassOrigin"><VALUE>TRUE</VALUE></IPARAMVALUE> </IMETHODCALL></SIMPLEREQ> </MESSAGE></CIM> * * wbemcli: Http Exception: Server returned nothing (no headers, no data) * Regards, Sameer |