From: Sameer Z. <sa...@ya...> - 2015-04-14 06:49:59
|
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 |