Thanks everyone for the help. It turns out I had 2 issues:
1) My config file did not allow for http acces. I am now able to use
wbemcli via http.
2) Something is wrong with my https setup:
# wbemein https://localhost:5989/root/cimv2:CIM_Component
*
* wbemein: Http Exception: problem with the SSL CA cert (path? access
rights?)
I will try to pursue this SSL CA issue at some point. When I use yawn I
can use either http or https so I know it can be done.
Thanks,
Luke
-----Original Message-----
From: Jim Fehlig [mailto:jfehlig@xxxxxxxxxx]
Sent: Friday, August 04, 2006 1:38 PM
To: Szymanski, Lukasz K
Cc: xen-cim@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-cim] RE: Wbemcli setup question
Ah, the http port should be 5988 as per your config file. The https
port is 5989. So either:
wbemein https://localhost:5989/root/cimv2:CIM_Component
wbemein http://localhost:5988/root/cimv2:CIM_Component
should work.
Jim
>>> "Szymanski, Lukasz K" <Lukasz.Szymanski@xxxxxxxxxx> 08/04/06 10:52
AM >>>
Jim,
Thanks for your suggestions. I will be trying them out this afternoon.
To answer your last question, this is the command I am trying to run:
`wbemein http://localhost:5989/root/cimv2:CIM_Component`. This one of
the sample commands provided with wbemcli called "show_processor_info"
Luke
-----Original Message-----
From: Jim Fehlig [mailto:jfehlig@xxxxxxxxxx]
Sent: Friday, August 04, 2006 11:48 AM
To: Szymanski, Lukasz K
Cc: xen-cim@xxxxxxxxxxxxxxxxxxx
Subject: Re: Wbemcli setup question
Luke,
Not sure why you have 3 openwbem.conf files. Seems like you have some
kind of strange installation which may be the cause of your problem.
Did you install openwbem when you installed SLES 10? If so (or you
installed it later via YaST) then the conf file in /etc/openwbem is the
one being used. You could see what package owns these various conf
files, e.g. 'rpm -qf /etc/openwbem/openwbem.conf' will display the
owning package.
Probably best to just use the openwbem that comes with SLES 10. I have
some patches to that version which fix some bugs in the CMPI interface,
but I don't think any of the bugs will affect work you are doing. If
you have access to Novell's bugzilla here are the bugs I have
found/logged against openwbem while working on the xen providers:
https://bugzilla.novell.com/show_bug.cgi?id=193866
https://bugzilla.novell.com/show_bug.cgi?id=194567
https://bugzilla.novell.com/show_bug.cgi?id=195189
https://bugzilla.novell.com/show_bug.cgi?id=195192
FYI, I usually run openwbem from a terminal so I can see output of
cimom, providers, etc.
- Stop currently running instance: /etc/init.d/owcimomd stop
- Start cimom with debug flag: /usr/sbin/owcimomd -d
As far as the conf file goes, there are three directives I usually
manipulate:
1. 'owcimomd.allow_anonymous = true' will allow anyone access 2.
'http_server.http_port = 5988' to allow http access. https only is the
default install setting.
3. 'cmpiprovifc.prov_location = /usr/lib/cmpi:/usr/local/lib/cmpi' to
specify where cimom will look for and load cmpi providers. You can add
multiple search paths to this directive.
I see you have http access open so don't know why you are seeing the SSL
error. Are you specifying a http model path in wbemcli, e.g. wbemain
http://localhost:5988/root/cimv2/SomeObjectPath?
I'll be around today for a few more hours so let me know if you have
additional questions.
Jim
Jim Fehlig
Software Engineer
jfehlig@xxxxxxxxxx
801.861.5254
Novell, Inc.
Software for the Open Enterprise
http://www.novell.com/open
>>> "Szymanski, Lukasz K" <Lukasz.Szymanski@xxxxxxxxxx> 08/04/06 8:47 AM
>>>
Jim,
I just upgraded to SLES 10 and have set up yawn mostly successfully. I
had wbemcli set up before on SLES 9 but now I get is this error whenever
I try to run the sample code:
[47955036746064] SSL Handshake failed: SSLSocketImpl ctor: SSL accept
error while connecting to 127.0.0.1:40021:
47955036746064:error:1407609C:SSL routines:SSL23_GET_CLIENT_HELLO:http
request:s23_srvr.c:379:\
Attached is the openwbem.conf file. I am not sure how this happened,
but I eneded up with 3 such files. I have one in /etc/openwbem,
/tmp/openwbem-3.2.0/etc, and /tmp (all of my sblim, openwben, etc etc
files are in /tmp). I am sending you the latest one, but I am not
exactly sure where it ought to go what I should do with the others.
Thanks,
Luke
_______________________________________________
Xen-cim mailing list
Xen-cim@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-cim
_______________________________________________
Xen-cim mailing list
Xen-cim@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-cim
|