RE: WinRM and openPegasus

"Pierre Pacchioni" <[email protected]>
Newsgroups gmane.network.open-pegasus.general
Message-ID <002201cd39e4$246e5670$6d4b0350$@com>
Hi Rohini,

 

Thanks for your answer.

No, my mistake. I'll try to recompile everything and I'll keep you informed.

I've also spent more time on the examples you passed me.

 

For the trace, I didn't have a "trace" directory after having compiled (from
source code) and launched OP . I created this directory (at the same level
as the logs directory).

Then I tried:

 

E:\workspace\DCNS\DORIS\openPegasus\pegasus-2.11.1\bin>cimconfig -s
traceFilePath=./trace/trace.trc

Failed to set the config property.CIM_ERR_FAILED: Invalid property value:
traceFilePath=./trace/trace.trc

 

The ./trace was just to follow the "logdir" syntax. 

Then I tried:

 

E:\workspace\DCNS\DORIS\openPegasus\pegasus-2.11.1\bin>cimconfig -s
traceFilePath=trace/trace.trc

Failed to set the config property.CIM_ERR_FAILED: Invalid property value:
traceFilePath=trace/trace.trc

 

And finally:

E:\workspace\DCNS\DORIS\openPegasus\pegasus-2.11.1\bin>cimconfig -s
traceFilePath=trace.trc

Current value for the property traceFilePath is set to "trace.trc" in
CIMServer.

 

 

E:\workspace\DCNS\DORIS\openPegasus\pegasus-2.11.1\bin>cimconfig -s
traceLevel=5

Current value for the property traceLevel is set to "5" in CIMServer.

 

E:\workspace\DCNS\DORIS\openPegasus\pegasus-2.11.1\bin>cimconfig -s
enableAuditLog=true

Current value for the property enableAuditLog is set to "true" in CIMServer.

 

E:\workspace\DCNS\DORIS\openPegasus\pegasus-2.11.1\bin>cimconfig -l -c

.

enableAuditLog=true

messageDir=msg

logdir=./logs

.

traceLevel=5

traceFilePath=trace.trc

.

traceFacility=File

..

logLevel=INFORMATION

.

 

I was not able to retrieve the trace.trc file anywhere under openPegasus
directory, nor under the C:\PegasusRun\vs6bin.

Thanks,

Pierre.

 

PS: I found a cliTrace.trc file under bin directory but no idea where this
file comes from.

 

 

 

 

 

From: Deshpande, Rohini (STSD) [mailto:[email protected]] 
Sent: Thursday, May 24, 2012 8:08 PM
To: Pierre Pacchioni; [email protected]
Subject: RE: WinRM and openPegasus

 

Hi Pierre,

 

Have you build Open Pegasus with PEGASUS_ENABLE_PROTOCOL_WSMAN=true? Only
then will Open Pegasus(OP) support WSMAN protocol.

 

Cimcli is not a wsman client (it is a CIM-XML client). You can try using
OP's wbemexec command with a wsman xml request. You can see some example
xmls in "pegasus/test/wetest/wsman/Enumerate" or
"pegasus/test/wettest/wsman/Get".

 

If you want a wsman client with Open Pegasus try openwsman client. You need
to configure OP as the server. But I think using wbemexec will suffice for
testing.

 

I've not tried a get operation from winrm to OP. From whatever understanding
I have "winrm get winrm/config -machine:localhost:5988" will not work as
winrm/config is the resource URI, which OP does not understand. See some
xmls under "pegasus/test/wettest/wsman/Get". 

 

You might want to first try a simple wsman request to OP using wbemexec and
confirm OP is built with WSMAN.  You can then try the same request (simplest
may be id) with winrm. You can also try setting Trusted Host, so that
authentication errors do not occur (we tried between a windows and Linux
system, but it might help in your case too).

 

Traces are in pegasus/build/trace directory.

 

Regards,

Rohini

 

From: Pierre Pacchioni [mailto:[email protected]] 
Sent: Thursday, May 24, 2012 9:06 PM
To: [email protected]
Subject: WinRM and openPegasus

 

Hello,

 

I've been trying to connect a Pegasus server running on Windows with WinRM
(on the same machine).

 

The openPegasus version is the 2.11.1

 

E:\workspace\DCNS\DORIS\openPegasus\pegasus-2.11.1\bin>cimserver.exe

Logs Directory = E:\workspace\DCNS\DORIS\openPegasus\pegasus-2.11.1/./logs

CIM Server 2.11.1

Listening on HTTP port 5988.

Started.

 

I can connect the server using the OpenPegasus client (cimcli.exe) without
any problem.

But I systematically received the bad request status 400 when I tried to
connect winRM with openPegasus server:

E:\workspace\DCNS\DORIS\openPegasus\pegasus-2.11.1\bin>winrm get
winrm/config -machine:localhost:5988

WSManFault

    Message = The WinRM client received an HTTP bad request status (400),
but the remote service did not include any other information about the cause
of the failure.

Error number:  -2144108175 0x80338171

The WinRM client received an HTTP bad request status (400), but the remote
service did not include any other information about the cause of the
failure.

 

Interesting enough I received the same error when I tried to connect
cimcli.exe with WinRM:

E:\workspace\DCNS\DORIS\openPegasus\pegasus-2.11.1\bin>cimcli niall -n
root/cimv2 -l localhost:5985

cimcli Pegasus Exception: HTTP Error (400 Bad Request).. Cmd = niall Object
=

 

So the question is shouldn't WinRM and OpenPegasus be compatible? And if so
how does it work?

I retrieved an old post on exactly the same subject:

http://osdir.com/ml/network.open-pegasus.general/2007-08/msg00028.html

But today OpenPegasus and WinRM (should) support WS-Management.

 

I have another question on the traceLevel. Using cimconfig I changed the
traceLevel to 5 (the max) but I was not able to retrieve/check where the
trace are written?

 

Thanks for your help,

Pierre.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.