Quantcast

wseventsink and Windows

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

wseventsink and Windows

Николай Кинаш
Hi all.
I can't setup Event Forwarding from Windows to Linux.

I have installed two Nodes under VirtualBox. One with Linux(192.168.56.20) and another with Windows 7(192.168.56.3).
The nodes in the same network.(192.168.56.0/24)

I have done on Windows via cmd:
winrm quickconfig
winrm set winrm/config/service/auth @{Basic="true"} 
winrm set winrm/config/service @{AllowUnencrypted="true"}

I have run wseventsink on Linux node:
[root@localhost ~]# wseventsink 

And switch to another console, and run:

[root@localhost ~]# wsman subscribe http://schemas.microsoft.com/wbem/wsman/1/windows/EventLog -Z http://192.168.56.20:80/eventsink -h 192.168.56.3 --auth=basic -G push -u peroksid -p pass -H 2 -r 600 -x '<QueryList><Query Id="0"><Select Path="Application">*</Select></Query></QueryList>' -R

The output:
<?xml version="1.0"?>
  <s:Header>
    <wsa:Action s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe</wsa:Action>
    <wsa:To s:mustUnderstand="true">http://192.168.56.3:5985/wsman</wsa:To>
    <wsman:ResourceURI s:mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/EventLog</wsman:ResourceURI>
    <wsa:MessageID s:mustUnderstand="true">uuid:115a67ac-2616-1616-8002-cbb586270008</wsa:MessageID>
    <wsa:ReplyTo>
    </wsa:ReplyTo>
  </s:Header>
  <s:Body>
    <wse:Subscribe>
        <wse:NotifyTo>
          <wsa:Address>http://192.168.56.20:80/eventsink</wsa:Address>
        </wse:NotifyTo>
        <wsman:Heartbeats>PT2.000000S</wsman:Heartbeats>
      </wse:Delivery>
      <wse:Expires>PT600.000000S</wse:Expires>
      <wsman:Filter Dialect="http://www.w3.org/TR/1999/REC-xpath-19991116">&lt;QueryList&gt;&lt;Query Id="0"&gt;&lt;Select Path="Application"&gt;*&lt;/Select&gt;&lt;/Query&gt;&lt;/QueryList&gt;</wsman:Filter>
    </wse:Subscribe>
  </s:Body>
</s:Envelope>
<?xml version="1.0" encoding="UTF-8"?>
  <s:Header>
    <a:MessageID>uuid:38A41AEC-C34F-44FF-AB31-92B9846ECB2C</a:MessageID>
    <a:RelatesTo>uuid:115a67ac-2616-1616-8002-cbb586270008</a:RelatesTo>
  </s:Header>
  <s:Body>
    <s:Fault>
      <s:Code>
        <s:Value>s:Sender</s:Value>
        <s:Subcode>
          <s:Value>e:EventSourceUnableToProcess</s:Value>
        </s:Subcode>
      </s:Code>
      <s:Reason>
        <s:Text xml:lang="">The connectivity test from the push subscription source to the client failed. This can happen if the client machine initiating the push subscription is unreachable from the server machine where the event source is located. Possible reasons include firewall or some other network boundary. Modify subscription to use Pull based subscription.</s:Text>
      </s:Reason>
      <s:Detail>
        <f:WSManFault xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault" Code="2150858901" Machine="192.168.56.3">
          <f:Message>The connectivity test from the push subscription source to the client failed. This can happen if the client machine initiating the push subscription is unreachable from the server machine where the event source is located. Possible reasons include firewall or some other network boundary. Modify subscription to use Pull based subscription. </f:Message>
        </f:WSManFault>
      </s:Detail>
    </s:Fault>
  </s:Body>
</s:Envelope>
Connection failed. response code = 500


But from Windows node, I can successfully connect to 80 port to Linux, via telnet,

in cmd:

telnet 192.168.56.20 80.

Why the Event Source failed connect to wseventsink on Linux node?
It works, If I change the delivery mode to pull.




------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: wseventsink and Windows

Klaus Kaempf
* Николай Кинаш <[hidden email]> [Dec 04. 2015 18:57]:
> Hi all.
> I can't setup Event Forwarding from Windows to Linux.
[...]
>       <s:Reason>
>         <s:Text xml:lang="">The connectivity test from the push
> subscription source to the client failed. This can happen if the client
> machine initiating the push subscription is unreachable from the server
> machine where the event source is located. Possible reasons include
> firewall or some other network boundary. Modify subscription to use Pull
> based subscription.</s:Text>
>       </s:Reason>

Try to monitor the network traffic between the Windows and the Linux
host. What kind of connectivity test does Windows do ?

Klaus
--
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Loading...