3 Jan 2005 14:43
RE: using WMIMapper [was WMI interoperability]
Rachal, Denis <denis.rachal <at> hp.com>
2005-01-03 13:43:47 GMT
2005-01-03 13:43:47 GMT
Hi,
I have played with the WMIMapper and have had some success and some
failures.
1. Pegasus supports the WQL protocol only as of version 2.4 or greater.
See PEP documents
119:
http://www.openpegasus.org/pp/uploads/40/4436/execQuery6-PEP.html
185:
http://www.openpegasus.org/pp/uploads/40/6165/PEP185_Pegasus2_4ReleaseNo
tes.htm
2. I have only been able to get the WMIMapper to work with the compiled
version from the HP
website already mentioned below. The WMI Mapper does not compile on
version 2.4, although
with a little work you can fix the compile errors. Unfortunately
after I get it to compile
it does not properly respond to client requests. For details on this
see the following bug
reports:
http://cvs.opengroup.org/bugzilla/show_bug.cgi?id=2323
http://cvs.opengroup.org/bugzilla/show_bug.cgi?id=2324
3. One of the tools I used for testing the WMIMapper is the KDE
kim-browser from:
http://kde-cim.sourceforge.net
This is a Linux utility that looks like a web browser. It's a bit
buggy, but can at least display
the namespaces and class descriptions. If you install from the
binary package at HP you should note
the following:
a. Turn off SSL in the config file
(%PEGASUS_HOME%\cimserver_planned.conf) enableHttpsConnection=false
to make it easier to test with the kim-browser. Only do this on a
secure network! Otherwise you
will need to build the kim-browser with SSL enabled and use SSL.
b. The browser will need to authenticate using a Windows login
username/password and this will be
requested "twice" when you connect with kim-browser.
c. Use the URL: http://<hostname>/root/cimv2 to connect. You should
at least be able to list the available
namespaces and classes after authenticating.
d. I could not get "Instances" or "WQL" to work. Of course WQL is
not supported with this release.
4. I could retrieve instances if I wrote my own client program. This is
not too difficult if you use
one of the WBEM development packages available. I used the Java WBEM
Services from:
http://wbemservices.sourceforge.net/ , but you should also be able to
use the Java package supplied
by Pegasus. See: %PEGASUS_ROOT%\src\Java\README.txt
Hope that helps to answer your question.
Regards,
Denis Rachal
-----Original Message-----
From: AGHEMO Danilo [mailto:daghemo <at> xoul.com]
Sent: Monday, December 27, 2004 16:15
To: Konrad Rzeszutek
Cc: David Dillard; Kirk Augustin; 'Harish Murali - CTD, Chennai';
pegasus-l <at> opengroup.org
Subject: Re: using WMIMapper [was WMI interoperability]
Have you got any example on using WMI Mapper: not building, not coding,
just using OpenPegasus command line utilities to send a WQL query to a
WMI server through a WMI Mapper.
On Mon, 2004-12-27 at 10:11 -0500, Konrad Rzeszutek wrote:
> Use the WMI Mapper. There is a compiled version available on HP site:
>
> http://h18023.www1.hp.com/support/files/server/us/download/20052.html
>
> Or you can build it from source:
>
> Instructions for building OpenPegasus under Windows:
> http://cvs.opengroup.org/cgi-bin/viewcvs.cgi/pegasus/readme.html?rev=H
> EAD
>
> Instructions for building the WMI mapper:
> http://cvs.opengroup.org/cgi-bin/viewcvs.cgi/pegasus/src/WMIMapper/Doc
> /Readme.htm?rev=HEAD
>
> AGHEMO Danilo wrote:
> > Yes, I know.
> > I need to monitor some Win32 servers from my Linux server.
> > I don't want to use SNMP or other. I would like to send a WQL query
> > from my Linux server to my Win32 host and receive the results back.
> > How can I do this?
> >
> > On Wed, 2004-12-22 at 17:23 -0500, David Dillard wrote:
> >
> >>The mapper, unfortunately, works in the wrong direction. The
> >>original request was for a WMI client to access Pegasus. WMI mapper
> >>allows WBEM clients to access WMI.
> >>
> >>
> >>--- David
> >>
> >>
> >>
> >>>-----Original Message-----
> >>>From: AGHEMO Danilo [mailto:daghemo <at> xoul.com]
> >>>Sent: Wednesday, December 22, 2004 1:37 PM
> >>>To: Kirk Augustin
> >>>Cc: David Dillard; 'Harish Murali - CTD, Chennai';
> >>>pegasus-l <at> opengroup.org
> >>>Subject: RE: WMI interoperability
> >>>
> >>>What about the WMIMapper?
> >>>
> >>>Think of WMI as a DCOM-based WBEM implementation: DCOM can't be
> >>>easily ported to Unix/Linux/whatever. On the other side, Pesagus
> >>>offers an HTTP-based WBEM implementation. That is, the two
> >>>solutions use a different transport protocol.
> >>>
> >>>WMIMapper acts essentially a proxy between a WBEM-over-HTTP client
> >>>and a WMI server, translating HTTP requests to DCOM requests and
> >>>DCOM answers back to HTTP answers. It is even used within HP
> >>>Insight Manager to collect WMI information from Win32 platform.
> >>>
> >>>Just a question. Is somebody out there using it? May I perform a
> >>>WQL query from Linux to a WMI server? How? Not a lot of examples
> >>>out there.
> >>>
> >>>Danilo
> >>>
> >>>On Wed, 2004-12-22 at 07:51 -0800, Kirk Augustin wrote:
> >>>
> >>>>This seems like a huge flaw in both WMI and Pegasus then.
> >>>>The whole point of CIM is supposed to be interoperability.
> >>>>One could try to put Peagsus on Windows as well, but that is not
> >>>>practical for CDM.
> >>>>Since it is the scripting host, like Apache, that should be
> >>>
> >>>the client
> >>>
> >>>>interface to either, there is no reason for there not to be
> >>>>interoperability.
> >>>>This should have been the primary design goal.
> >>>>
> >>>>
> >>>>David Dillard <david.dillard <at> veritas.com> wrote:
> >>>> No, a WMI client cannot communicate with a Pegasus server.
> >>>>
> >>>>
> >>>> --- David
> >>>>
> >>>>
> >>>>
> >>>> > -----Original Message-----
> >>>> > From: Harish Murali - CTD, Chennai
> >>>> [mailto:harishm <at> hcltech.com]
> >>>> > Sent: Wednesday, December 22, 2004 6:34 AM
> >>>> > To: pegasus-l <at> opengroup.org
> >>>> > Subject: WMI interoperability
> >>>> >
> >>>> > hi,
> >>>> > I want to know whether a Pegasus Server is interoperable
> >>>> > with a Windows Management Instrumentation client.If
> >>>> so,please
> >>>> > tell me how to make a WMI client to communicate with the
> >>>> > Pegasusn Server Thanks and Regards, Harish.M DISCLAIMER
> >>>> This
> >>>> > message and any attachment(s) contained here are
> >>>> information
> >>>> > that is confidential, proprietary to HCL Technologies
and
> >>>> its
> >>>> > customers. Contents may be privileged or otherwise
> >>>> protected
> >>>> > by law. The information is solely intended for the
> >>>> individual
> >>>> > or the entity it is addressed to. If you are not the
> >>>> intended
> >>>> > recipient of this message, you are not authorized
> >>>
> >>>to read,
> >>>
> >>>> > forward, print, retain, copy or disseminate this
> >>>
> >>>message or
> >>>
> >>>> > any part of it.
> >>>> > If you have received this e-mail in error, please notify
> >>>> the
> >>>> > sender immediately by return e-mail and delete it
> >>>
> >>>from your
> >>>
> >>>> computer.
> >>>> > .
> >>>> >
> >>>> > <>
> >>>> >
> >>>>
> >>>
> >>>
> >
> >
>
RSS Feed