Subscribe event over wsman

classic Classic list List threaded Threaded
28 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Subscribe event over wsman

Bai, Bin (ESSN-MCXS-CN)

Hi All

 

I’m going to subscribe event over wsman, but I encounter some problem. Could anyone provider me some feedback about it? Here is what I did.

 

My system is

                SUSE Linux Enterprise Server 11 SP3 Beta1 (x86_64).

I’m going to use wsman to subscribe event and use wseventsink as listener. The version of software are list below:

openwsman-server        2.2.3

wsmancli                             2.3.0

wseventsink                      0.0.3

Before my test, the openwsman works well with sfcb, for I can use

wsman identify --port 5985 --username root -p will -h localhost

To identify to openwsmand. And use

wsman enumerate http://smx.hp.com/smx/2/SMX_OperatingSystem --port 5985 --username root -p will -h localhost

To enumerate the instances of SMX_OperatingSystem. Our system can be subscribed successfully if not over wsman protocol. Now I’m going to use wsman to subscribe the event. Here is my command:

wsman subscribe http://schemas.dmtf.org/wbem/wscim/1/* -x "SELECT * FROM HP_AlertIndication" -D "http://schemas.microsoft.com/wbem/wsman/1/WQL" -Z http://127.0.0.1:80/eventsink --namespace=root/interop -r 600 -H 2 -u root -p will localhost -G push –R

The output of this command is

<?xml version="1.0" encoding="UTF-8"?>

<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">

  <s:Header>

    <wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>

    <wsa:Action>http://schemas.xmlsoap.org/ws/2004/08/addressing/fault</wsa:Action>

    <wsa:RelatesTo>uuid:0890fa79-e4d1-14d1-8002-a0926d2fb5b4</wsa:RelatesTo>

    <wsa:MessageID>uuid:08a24ab0-e4d1-14d1-8003-a0926d2fb5b4</wsa:MessageID>

  </s:Header>

  <s:Body>

    <s:Fault>

      <s:Code>

        <s:Value>s:Sender</s:Value>

        <s:Subcode>

          <s:Value>wsa:DestinationUnreachable</s:Value>

        </s:Subcode>

      </s:Code>

      <s:Reason>

        <s:Text xml:lang="en">Filter not found</s:Text>

      </s:Reason>

    </s:Fault>

  </s:Body>

</s:Envelope>

Connection failed. response code = 400

And the output of the openwsmand is something like:

Aug 26 10:54:13 [11738] method or action: Subscribe

Aug 26 10:54:13 [11738] CIM Namespace: root/interop

Aug 26 10:54:13 [11738] method or action: Subscribe

Aug 26 10:54:13 [11738] create CIM_IndicationFilter() rc=0, msg=(null)

Aug 26 10:54:13 [11738] create CIM_IndicationHandlerCIMXML() rc=0, msg=(null)

Aug 26 10:54:13 [11738] create CIM_IndicationSubscription() rc=6, msg=Filter not found

I think the namespace may not right. So I changed it to “root/hpq”, and add “indication_source_namespace = root/hpq” in openwsman.conf. Now the output of wsman is the same, but the output of openwsmand changed to:

Aug 26 11:00:32 [11738] method or action: Subscribe

Aug 26 11:00:32 [11738] CIM Namespace: root/hpq

Aug 26 11:00:32 [11738] method or action: Subscribe

Aug 26 11:00:32 [11738] create CIM_IndicationFilter() rc=5, msg=Class not found

It looks like the namespace “root/interop” is better, but I’m not sure.

I don’t know is our server should be online, “wsman subscribe http://schemas.dmtf.org/wbem/wscim/1/*” seems to get something from website. All the tests abover is tested without server online. So I configured my server to online. And it looks like the content on the website has some error. The output of wsman is

Entity: line 4: parser error : Premature end of data in tag HTML line 1

 

^

Connection failed. response code = 301

While openwsmand have no response at all.

 

I can’t find any useful information on the Internet. I think this is my last hope before reading source code…

 

Thanks and Regards,

Bai, Bin

 

               


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Reply | Threaded
Open this post in threaded view
|

Re: Subscribe event over wsman

Klaus Kaempf
* Bai, Bin (ESSN-MCXS-CN) <[hidden email]> [Aug 26. 2013 05:14]:
> Hi All
>
> I'm going to subscribe event over wsman, but I encounter some problem. Could anyone provider me some feedback about it? Here is what I did.

Hi,

unfortunately my own knowledge about indications is very limited,
therefore I can't immediately give you advise.

You might want to have a look at the 'Using WS-Eventing' documentation
at https://github.com/Openwsman/openwsman/wiki/using-ws-eventing, as
well as an older presentation about this topic here:
https://github.com/Openwsman/openwsman/wiki/presentations/MDCEventing.pdf

Hth,

Klaus
--
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
Maxfeldstraße 5, 90409 Nürnberg, Germany

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Reply | Threaded
Open this post in threaded view
|

Re: Subscribe event over wsman

Klaus Kaempf
In reply to this post by Bai, Bin (ESSN-MCXS-CN)
Hi,

after some digging around, I was now able to successfully subscribe to
sfcb process indications with Openwsman. So it works basically ;-)


* Bai, Bin (ESSN-MCXS-CN) <[hidden email]> [Aug 26. 2013 05:14]:
> wsman subscribe http://schemas.dmtf.org/wbem/wscim/1/* -x "SELECT * FROM HP_AlertIndication" -D "http://schemas.microsoft.com/wbem/wsman/1/WQL" -Z http://127.0.0.1:80/eventsink --namespace=root/interop -r 600 -H 2 -u root -p will localhost -G push -R

In which namespace is HP_AlertIndication defined ? It should be
the same as indicated by the --namespace argument.

Did you test functionality of the indication provider with sfcb / wbemcli before ?

The cmpi-base provider repo has some sample requests to test with:
https://sourceforge.net/p/sblim/cmpi-base/ci/master/tree/README.INDICATION
https://sourceforge.net/p/sblim/cmpi-base/ci/master/tree/test/indication/SFCBCreateFilter.localhost.xml
https://sourceforge.net/p/sblim/cmpi-base/ci/master/tree/test/indication/SFCBCreateHandler.localhost.xml
https://sourceforge.net/p/sblim/cmpi-base/ci/master/tree/test/indication/SFCBCreateSubscription.localhost.xml

> I think the namespace may not right. So I changed it to "root/hpq", and add "indication_source_namespace = root/hpq" in openwsman.conf. Now the output of wsman is the same, but the output of openwsmand changed to:

Leave the indication_source_namespace at its default (root/interop).
All filters are defined in this namespace.

> I don't know is our server should be online, "wsman subscribe
> http://schemas.dmtf.org/wbem/wscim/1/*" seems to get something from
> website. All the tests abover is tested without server online.

Huh ? What do you mean with "server online" ?


Klaus
--
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
Maxfeldstraße 5, 90409 Nürnberg, Germany

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Reply | Threaded
Open this post in threaded view
|

Re: Subscribe event over wsman

Bai, Bin (ESSN-MCXS-CN)
Hello Klaus,

Thank you for digging it around.
So, I follow your suggestion, and now, my openwsman.conf is:
-------------------------------------
[server]
.........................
[cim]
default_cim_namespace = root/hpq

# set to SfcbLocal for local connection with sfcb CIMOM running on same system
# cim_client_frontend = SfcbLocal
cim_client_frontend = SfcbLocal
#cim_client_frontend = XML

#indication_source_namespace is used to define namespace where the Indications originate
#indication_source_namespace = root/cimv2
indication_source_namespace = root/interop

# The following are in part fake namespaces for some publicly available CIM implementations.
vendor_namespaces = OpenWBEM=http://schema.openwbem.org/wbem/wscim/1/cim-schema/2,Linux=http://sblim.sf.net/wbem/wscim/1/cim-schema/2,OMC=http://schema.omc-project.org/wbem/wscim/1/cim-schema/2,PG=http://schema.openpegasus.org/wbem/wscim/1/cim-schema/2,SMX=http://smx.hp.com/smx/2
port = 5989
ssl = yes
-------------------------------------

When I run
wsman subscribe http://schemas.dmtf.org/wbem/wscim/1/* -x "SELECT * FROM CIM_Indication" -D "http://schemas.microsoft.com/wbem/wsman/1/WQL" -Z http://127.0.0.1:80/eventsink --namespace=root/interop -r 600 -H 2 -u root -p will localhost -G push -R
The output is:
-------------------------------------
<?xml version="1.0"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing">
  <s:Header>
    <wsa:Action s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe</wsa:Action>
    <wsa:To s:mustUnderstand="true">http://localhost:5985/wsman</wsa:To>
    <wsman:ResourceURI s:mustUnderstand="true">http://schemas.dmtf.org/wbem/wscim/1/*</wsman:ResourceURI>
    <wsa:MessageID s:mustUnderstand="true">uuid:9cb70795-e516-1516-8002-a0926d2fb5b4</wsa:MessageID>
    <wsa:ReplyTo>
      <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
    </wsa:ReplyTo>
    <wsman:SelectorSet>
      <wsman:Selector Name="__cimnamespace">root/interop</wsman:Selector>
    </wsman:SelectorSet>
  </s:Header>
  <s:Body>
    <wse:Subscribe>
      <wse:Delivery Mode="http://schemas.xmlsoap.org/ws/2004/08/eventing/DeliveryModes/Push">
        <wse:NotifyTo>
          <wsa:Address>http://127.0.0.1:80/eventsink</wsa:Address>
        </wse:NotifyTo>
        <wsman:Heartbeats>PT2.000000S</wsman:Heartbeats>
      </wse:Delivery>
      <wse:Expires>PT600.000000S</wse:Expires>
      <wsman:Filter Dialect="http://schemas.microsoft.com/wbem/wsman/1/WQL">SELECT * FROM CIM_Indication</wsman:Filter>
    </wse:Subscribe>
  </s:Body>
</s:Envelope>
Connection failed. response code = 0
Server returned nothing (no headers, no data)
-------------------------------------

While part of the openwsmand is output is:
-------------------------------------
Aug 29 22:06:29 [18715] new cimclient: 0x  63bf20
Aug 29 22:06:29 [18715] new cimclient: 1
Aug 29 22:06:29 [18715] text: __cimnamespace
Aug 29 22:06:29 [18715] method or action: Subscribe
Aug 29 22:06:29 [18715] CIM Namespace: root/interop
Aug 29 22:06:29 [18715] method or action: Subscribe
Aug 29 22:06:29 [18715] create CIM_IndicationFilter() rc=0, msg=(null)
Aug 29 22:06:29 [18715] create CIM_IndicationHandlerCIMXML() rc=0, msg=(null)
Aug 29 22:06:29 [18715] create CIM_IndicationSubscription() rc=6, msg=Filter not found
Aug 29 22:06:29 [18715] selectors destroyed
Aug 29 22:06:29 [18715] cimclient destroyed
Aug 29 22:06:29 [18715] Subscribe fault
Aug 29 22:06:29 [18715] Processing Filters: outbound
Aug 29 22:06:29 [18715] destroy op
Aug 29 22:06:29 [18715] Inbound call completed
Aug 29 22:06:29 [18715] Response status=400 (Bad request)
-------------------------------------

I search this openwsmand's error online. Please see the end of this page:
http://sourceforge.net/mailarchive/forum.php?thread_name=129B50EE-5491-4496-AAB0-A8860DF38610%40informatik.haw-hamburg.de&forum_name=openwsman-devel

Till meet the same problem, but the mail communication ends here.
Does it related to the "cim_client_frontend" configuration in openwsman.conf?

And here are the answer in your mail:
1. HP_AlertIndication is defined by us.
2. Our management software could do the subscription but it doesn't use wbemcli.
3. Online means the server could connected to the Internet.

Regards,
Bai, Bin

-----Original Message-----
From: Klaus Kaempf [mailto:[hidden email]]
Sent: 2013年8月29日 20:30
To: Bai, Bin (ESSN-MCXS-CN)
Cc: [hidden email]
Subject: Re: [Openwsman-devel] Subscribe event over wsman

Hi,

after some digging around, I was now able to successfully subscribe to sfcb process indications with Openwsman. So it works basically ;-)


* Bai, Bin (ESSN-MCXS-CN) <[hidden email]> [Aug 26. 2013 05:14]:
> wsman subscribe http://schemas.dmtf.org/wbem/wscim/1/* -x "SELECT *
> FROM HP_AlertIndication" -D
> "http://schemas.microsoft.com/wbem/wsman/1/WQL" -Z
> http://127.0.0.1:80/eventsink --namespace=root/interop -r 600 -H 2 -u
> root -p will localhost -G push -R

In which namespace is HP_AlertIndication defined ? It should be the same as indicated by the --namespace argument.

Did you test functionality of the indication provider with sfcb / wbemcli before ?

The cmpi-base provider repo has some sample requests to test with:
https://sourceforge.net/p/sblim/cmpi-base/ci/master/tree/README.INDICATION
https://sourceforge.net/p/sblim/cmpi-base/ci/master/tree/test/indication/SFCBCreateFilter.localhost.xml
https://sourceforge.net/p/sblim/cmpi-base/ci/master/tree/test/indication/SFCBCreateHandler.localhost.xml
https://sourceforge.net/p/sblim/cmpi-base/ci/master/tree/test/indication/SFCBCreateSubscription.localhost.xml

> I think the namespace may not right. So I changed it to "root/hpq", and add "indication_source_namespace = root/hpq" in openwsman.conf. Now the output of wsman is the same, but the output of openwsmand changed to:

Leave the indication_source_namespace at its default (root/interop).
All filters are defined in this namespace.

> I don't know is our server should be online, "wsman subscribe
> http://schemas.dmtf.org/wbem/wscim/1/*" seems to get something from
> website. All the tests abover is tested without server online.

Huh ? What do you mean with "server online" ?


Klaus
--
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Maxfeldstraße 5, 90409 Nürnberg, Germany
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Reply | Threaded
Open this post in threaded view
|

Re: Subscribe event over wsman

Bai, Bin (ESSN-MCXS-CN)
And If I set
cim_client_frontend = XML
The output of openwsmand turn to
-------------------
Aug 29 22:26:34 [28513] CIM Subscription
Aug 29 22:26:34 [28513] username: root, password: XXXXX
Aug 29 22:26:34 [28513] Connecting using sfcc XML frontend
Aug 29 22:26:34 [28513] *** Connection to CIMOM http://localhost:5989 failed with 1:?
-------------------
So I think this setting is not suitable for sfcb local connection.


Regards,
Bai, Bin

-----Original Message-----
From: Bai, Bin (ESSN-MCXS-CN)
Sent: 2013年8月29日 22:17
To: Klaus Kaempf
Cc: [hidden email]
Subject: Re: [Openwsman-devel] Subscribe event over wsman

Hello Klaus,

Thank you for digging it around.
So, I follow your suggestion, and now, my openwsman.conf is:
-------------------------------------
[server]
.........................
[cim]
default_cim_namespace = root/hpq

# set to SfcbLocal for local connection with sfcb CIMOM running on same system # cim_client_frontend = SfcbLocal cim_client_frontend = SfcbLocal #cim_client_frontend = XML

#indication_source_namespace is used to define namespace where the Indications originate #indication_source_namespace = root/cimv2 indication_source_namespace = root/interop

# The following are in part fake namespaces for some publicly available CIM implementations.
vendor_namespaces = OpenWBEM=http://schema.openwbem.org/wbem/wscim/1/cim-schema/2,Linux=http://sblim.sf.net/wbem/wscim/1/cim-schema/2,OMC=http://schema.omc-project.org/wbem/wscim/1/cim-schema/2,PG=http://schema.openpegasus.org/wbem/wscim/1/cim-schema/2,SMX=http://smx.hp.com/smx/2
port = 5989
ssl = yes
-------------------------------------

When I run
wsman subscribe http://schemas.dmtf.org/wbem/wscim/1/* -x "SELECT * FROM CIM_Indication" -D "http://schemas.microsoft.com/wbem/wsman/1/WQL" -Z http://127.0.0.1:80/eventsink --namespace=root/interop -r 600 -H 2 -u root -p will localhost -G push -R The output is:
-------------------------------------
<?xml version="1.0"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing">
  <s:Header>
    <wsa:Action s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe</wsa:Action>
    <wsa:To s:mustUnderstand="true">http://localhost:5985/wsman</wsa:To>
    <wsman:ResourceURI s:mustUnderstand="true">http://schemas.dmtf.org/wbem/wscim/1/*</wsman:ResourceURI>
    <wsa:MessageID s:mustUnderstand="true">uuid:9cb70795-e516-1516-8002-a0926d2fb5b4</wsa:MessageID>
    <wsa:ReplyTo>
      <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
    </wsa:ReplyTo>
    <wsman:SelectorSet>
      <wsman:Selector Name="__cimnamespace">root/interop</wsman:Selector>
    </wsman:SelectorSet>
  </s:Header>
  <s:Body>
    <wse:Subscribe>
      <wse:Delivery Mode="http://schemas.xmlsoap.org/ws/2004/08/eventing/DeliveryModes/Push">
        <wse:NotifyTo>
          <wsa:Address>http://127.0.0.1:80/eventsink</wsa:Address>
        </wse:NotifyTo>
        <wsman:Heartbeats>PT2.000000S</wsman:Heartbeats>
      </wse:Delivery>
      <wse:Expires>PT600.000000S</wse:Expires>
      <wsman:Filter Dialect="http://schemas.microsoft.com/wbem/wsman/1/WQL">SELECT * FROM CIM_Indication</wsman:Filter>
    </wse:Subscribe>
  </s:Body>
</s:Envelope>
Connection failed. response code = 0
Server returned nothing (no headers, no data)
-------------------------------------

While part of the openwsmand is output is:
-------------------------------------
Aug 29 22:06:29 [18715] new cimclient: 0x  63bf20 Aug 29 22:06:29 [18715] new cimclient: 1 Aug 29 22:06:29 [18715] text: __cimnamespace Aug 29 22:06:29 [18715] method or action: Subscribe Aug 29 22:06:29 [18715] CIM Namespace: root/interop Aug 29 22:06:29 [18715] method or action: Subscribe Aug 29 22:06:29 [18715] create CIM_IndicationFilter() rc=0, msg=(null) Aug 29 22:06:29 [18715] create CIM_IndicationHandlerCIMXML() rc=0, msg=(null) Aug 29 22:06:29 [18715] create CIM_IndicationSubscription() rc=6, msg=Filter not found Aug 29 22:06:29 [18715] selectors destroyed Aug 29 22:06:29 [18715] cimclient destroyed Aug 29 22:06:29 [18715] Subscribe fault Aug 29 22:06:29 [18715] Processing Filters: outbound Aug 29 22:06:29 [18715] destroy op Aug 29 22:06:29 [18715] Inbound call completed Aug 29 22:06:29 [18715] Response status=400 (Bad request)
-------------------------------------

I search this openwsmand's error online. Please see the end of this page:
http://sourceforge.net/mailarchive/forum.php?thread_name=129B50EE-5491-4496-AAB0-A8860DF38610%40informatik.haw-hamburg.de&forum_name=openwsman-devel

Till meet the same problem, but the mail communication ends here.
Does it related to the "cim_client_frontend" configuration in openwsman.conf?

And here are the answer in your mail:
1. HP_AlertIndication is defined by us.
2. Our management software could do the subscription but it doesn't use wbemcli.
3. Online means the server could connected to the Internet.

Regards,
Bai, Bin

-----Original Message-----
From: Klaus Kaempf [mailto:[hidden email]]
Sent: 2013年8月29日 20:30
To: Bai, Bin (ESSN-MCXS-CN)
Cc: [hidden email]
Subject: Re: [Openwsman-devel] Subscribe event over wsman

Hi,

after some digging around, I was now able to successfully subscribe to sfcb process indications with Openwsman. So it works basically ;-)


* Bai, Bin (ESSN-MCXS-CN) <[hidden email]> [Aug 26. 2013 05:14]:
> wsman subscribe http://schemas.dmtf.org/wbem/wscim/1/* -x "SELECT *
> FROM HP_AlertIndication" -D
> "http://schemas.microsoft.com/wbem/wsman/1/WQL" -Z
> http://127.0.0.1:80/eventsink --namespace=root/interop -r 600 -H 2 -u
> root -p will localhost -G push -R

In which namespace is HP_AlertIndication defined ? It should be the same as indicated by the --namespace argument.

Did you test functionality of the indication provider with sfcb / wbemcli before ?

The cmpi-base provider repo has some sample requests to test with:
https://sourceforge.net/p/sblim/cmpi-base/ci/master/tree/README.INDICATION
https://sourceforge.net/p/sblim/cmpi-base/ci/master/tree/test/indication/SFCBCreateFilter.localhost.xml
https://sourceforge.net/p/sblim/cmpi-base/ci/master/tree/test/indication/SFCBCreateHandler.localhost.xml
https://sourceforge.net/p/sblim/cmpi-base/ci/master/tree/test/indication/SFCBCreateSubscription.localhost.xml

> I think the namespace may not right. So I changed it to "root/hpq", and add "indication_source_namespace = root/hpq" in openwsman.conf. Now the output of wsman is the same, but the output of openwsmand changed to:

Leave the indication_source_namespace at its default (root/interop).
All filters are defined in this namespace.

> I don't know is our server should be online, "wsman subscribe
> http://schemas.dmtf.org/wbem/wscim/1/*" seems to get something from
> website. All the tests abover is tested without server online.

Huh ? What do you mean with "server online" ?


Klaus
--
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Maxfeldstraße 5, 90409 Nürnberg, Germany
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Reply | Threaded
Open this post in threaded view
|

Re: Subscribe event over wsman

Klaus Kaempf
In reply to this post by Bai, Bin (ESSN-MCXS-CN)
* Bai, Bin (ESSN-MCXS-CN) <[hidden email]> [Aug 29. 2013 16:18]:

> Hello Klaus,
>
> Thank you for digging it around.
> So, I follow your suggestion, and now, my openwsman.conf is:
> -------------------------------------
> [server]
> .........................
> [cim]
> default_cim_namespace = root/hpq
>
> # set to SfcbLocal for local connection with sfcb CIMOM running on same system
> # cim_client_frontend = SfcbLocal
> cim_client_frontend = SfcbLocal
> #cim_client_frontend = XML

Go with the 'XML' frontend for now. The SfcbLocal interface might be
more problematic. When you have it working with XML, you can switch
back to SfcbLocal.

>
> #indication_source_namespace is used to define namespace where the Indications originate
> #indication_source_namespace = root/cimv2
> indication_source_namespace = root/interop

Leave the indication_source_namespace commented out, it defaults to
root/interop.

[...]
> Connection failed. response code = 0
> Server returned nothing (no headers, no data)
This shouldn't happen. Is 'wsman identify' running correctly ?



> -------------------------------------
>
> While part of the openwsmand is output is:
> -------------------------------------
> Aug 29 22:06:29 [18715] new cimclient: 0x  63bf20
> Aug 29 22:06:29 [18715] new cimclient: 1
> Aug 29 22:06:29 [18715] text: __cimnamespace
> Aug 29 22:06:29 [18715] method or action: Subscribe
> Aug 29 22:06:29 [18715] CIM Namespace: root/interop
> Aug 29 22:06:29 [18715] method or action: Subscribe
> Aug 29 22:06:29 [18715] create CIM_IndicationFilter() rc=0, msg=(null)
> Aug 29 22:06:29 [18715] create CIM_IndicationHandlerCIMXML() rc=0, msg=(null)
> Aug 29 22:06:29 [18715] create CIM_IndicationSubscription() rc=6, msg=Filter not found

Try the 'wsman subscribe' command with --namespace=root/cimv2.

>
> I search this openwsmand's error online. Please see the end of this page:
> http://sourceforge.net/mailarchive/forum.php?thread_name=129B50EE-5491-4496-AAB0-A8860DF38610%40informatik.haw-hamburg.de&forum_name=openwsman-devel
>
> Till meet the same problem, but the mail communication ends here.

This has been fixed in 2.2.1 about 4 years ago.

> Does it related to the "cim_client_frontend" configuration in openwsman.conf?

Yes, might well be. See my remark above.

>
> And here are the answer in your mail:
> 1. HP_AlertIndication is defined by us.
> 2. Our management software could do the subscription but it doesn't use wbemcli.

Try to create the filter, the handler, and the subscription with
wbemcli using the examples I posted before. When it runs with wbemcli,
proceed with wsman.

> 3. Online means the server could connected to the Internet.

Ah, this should be completely unrelated as long as cimom, openwsman,
wsman, and wseventsink can 'talk to each other'.

Klaus
--
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
Maxfeldstraße 5, 90409 Nürnberg, Germany

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Reply | Threaded
Open this post in threaded view
|

Re: Subscribe event over wsman

Klaus Kaempf
In reply to this post by Bai, Bin (ESSN-MCXS-CN)
* Bai, Bin (ESSN-MCXS-CN) <[hidden email]> [Aug 29. 2013 16:29]:
> And If I set
> cim_client_frontend = XML
> The output of openwsmand turn to
> -------------------
> Aug 29 22:26:34 [28513] CIM Subscription
> Aug 29 22:26:34 [28513] username: root, password: XXXXX
> Aug 29 22:26:34 [28513] Connecting using sfcc XML frontend
> Aug 29 22:26:34 [28513] *** Connection to CIMOM http://localhost:5989 failed with 1:?
> -------------------

By default, Openwsman talks 'https' on port 5989 to the CIMOM. Looks
as if your cimom only listens for 'http' on port 5988 ?!
Change this in the [cim] section of /etc/openwsman/openwsman.conf. Set
  port=5988
and
  ssl=no

Klaus
--
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
Maxfeldstraße 5, 90409 Nürnberg, Germany

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Reply | Threaded
Open this post in threaded view
|

Re: Subscribe event over wsman

Bai, Bin (ESSN-MCXS-CN)
Hello Klaus

I follow your suggestion, here is what I did:
1. uninstall sblim-sfcb, openwsman-server, openwsman-client, wsmancli, wseventsink.
2. install sblim-sfcb, and configure it to use HTTP, port 5988.
3. install openwsman-server, and openwsman-client, and use these settings, others are use as default:
        cim_client_frontend = XML
        ssl_cert_file = /etc/openwsman/servercert.pem
        ssl_key_file = /etc/openwsman/serverkey.pem
        ###digest_password_file = /etc/openwsman/digest_auth.passwd
        ###basic_password_file = /etc/openwsman/simple_auth.passwd
        basic_authenticator = libwsman_pam_auth.so
        basic_authenticator_arg = openwsman
4. Then I installed the sblim-indication_helper-0.4.2-129.17
5. Follow your guidance that manually try subscription.
        a). wbemcat -u root -pwd will SFCBCreateFilter.localhost.xml
        b). wbemcat -u root -pwd will SFCBCreateHandler.localhost.xml
        c). wbemcat -u root -pwd will SFCBCreateSubscription.localhost.xml
And they all passed.
6. run wseventsink
7. start sfcb and openwsmand
8. run wsman identify -u root -p will. And it passed.
9. run
wsman subscribe http://schemas.dmtf.org/wbem/wscim/1/* -x "SELECT * FROM CIM_Indication" -D "http://schemas.microsoft.com/wbem/wsman/1/WQL" -Z http://127.0.0.1:80/eventsink --namespace=root/interop -r 600 -H 2 -u root -p will localhost -G push -R
It failed. Output is:
-----------------------------------------------
<?xml version="1.0"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing">
  <s:Header>
    <wsa:Action s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe</wsa:Action>
    <wsa:To s:mustUnderstand="true">http://localhost:5985/wsman</wsa:To>
    <wsman:ResourceURI s:mustUnderstand="true">http://schemas.dmtf.org/wbem/wscim/1/*</wsman:ResourceURI>
    <wsa:MessageID s:mustUnderstand="true">uuid:a962b11f-e572-1572-8002-a0926d2fb5b4</wsa:MessageID>
    <wsa:ReplyTo>
      <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
    </wsa:ReplyTo>
    <wsman:SelectorSet>
      <wsman:Selector Name="__cimnamespace">root/interop</wsman:Selector>
    </wsman:SelectorSet>
  </s:Header>
  <s:Body>
    <wse:Subscribe>
      <wse:Delivery Mode="http://schemas.xmlsoap.org/ws/2004/08/eventing/DeliveryModes/Push">
        <wse:NotifyTo>
          <wsa:Address>http://127.0.0.1:80/eventsink</wsa:Address>
        </wse:NotifyTo>
        <wsman:Heartbeats>PT2.000000S</wsman:Heartbeats>
      </wse:Delivery>
      <wse:Expires>PT600.000000S</wse:Expires>
      <wsman:Filter Dialect="http://schemas.microsoft.com/wbem/wsman/1/WQL">SELECT * FROM CIM_Indication</wsman:Filter>
    </wse:Subscribe>
  </s:Body>
</s:Envelope>
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
  <s:Header>
    <wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
    <wsa:Action>http://schemas.xmlsoap.org/ws/2004/08/addressing/fault</wsa:Action>
    <wsa:RelatesTo>uuid:a962b11f-e572-1572-8002-a0926d2fb5b4</wsa:RelatesTo>
    <wsa:MessageID>uuid:a973f43a-e572-1572-8003-a0926d2fb5b4</wsa:MessageID>
  </s:Header>
  <s:Body>
    <s:Fault>
      <s:Code>
        <s:Value>s:Sender</s:Value>
        <s:Subcode>
          <s:Value>wsa:EndpointUnavailable</s:Value>
        </s:Subcode>
      </s:Code>
      <s:Reason>
        <s:Text xml:lang="en"/>
      </s:Reason>
    </s:Fault>
  </s:Body>
</s:Envelope>
Connection failed. response code = 400
----------------------------------------
And the log of openwsmand is
Sep  3 11:55:38 [12488] decide_what_to_do: [/wsman]
Sep  3 11:55:38 [12488] is_alias: aliases []
Sep  3 11:55:38 [12488] Done reading request
Sep  3 11:55:38 [12488] Inbound call...
Sep  3 11:55:38 [12488] uri: http://schemas.dmtf.org/wbem/wscim/1/*, action: http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe
Sep  3 11:55:38 [12488] namespace: http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd
Sep  3 11:55:38 [12488] namespace: http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2
Sep  3 11:55:38 [12488] namespace: http://schemas.dmtf.org/wbem/wscim/1
Sep  3 11:55:38 [12488] Processing Filters: inbound
Sep  3 11:55:38 [12488] Checking Message ID: uuid:a962b11f-e572-1572-8002-a0926d2fb5b4
Sep  3 11:55:38 [12488] wsen:Expires = PT600.000000S
Sep  3 11:55:38 [12488] [heartbeat interval = PT2.000000S]
Sep  3 11:55:38 [12488] timeout = 2
Sep  3 11:55:38 [12488] event sink: http://127.0.0.1:80/eventsink
Sep  3 11:55:38 [12488] CIM Subscription
Sep  3 11:55:38 [12488] username: root, password: XXXXX
Sep  3 11:55:38 [12488] Connecting using sfcc XML frontend
Sep  3 11:55:38 [12488] *** Connection to CIMOM http://localhost:5988 failed with 1:?
Sep  3 11:55:38 [12488] cimclient destroyed
Sep  3 11:55:38 [12488] Subscribe fault
Sep  3 11:55:38 [12488] Processing Filters: outbound
Sep  3 11:55:38 [12488] destroy op
Sep  3 11:55:38 [12488] Inbound call completed
Sep  3 11:55:38 [12488] Response status=400 (Bad request)
Sep  3 11:55:38 [12488] 4 (null) stopped. 840 of content data, 840 now in a buffer
Sep  3 11:55:38 [12488] Disconnecting 4 ()
-----------------------------------

My question is do I need do some other configure to use " cim_client_frontend = XML"?
If I set " cim_client_frontend = SfcbLocal"
The output of wsman is
------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
  <s:Header>
    <wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
    <wsa:Action>http://schemas.xmlsoap.org/ws/2004/08/addressing/fault</wsa:Action>
    <wsa:RelatesTo>uuid:bc0480ca-e572-1572-8002-a0926d2fb5b4</wsa:RelatesTo>
    <wsa:MessageID>uuid:bc15e7f7-e572-1572-8003-a0926d2fb5b4</wsa:MessageID>
  </s:Header>
  <s:Body>
    <s:Fault>
      <s:Code>
        <s:Value>s:Sender</s:Value>
        <s:Subcode>
          <s:Value>wsa:DestinationUnreachable</s:Value>
        </s:Subcode>
      </s:Code>
      <s:Reason>
        <s:Text xml:lang="en">Filter not found</s:Text>
      </s:Reason>
    </s:Fault>
  </s:Body>
</s:Envelope>
Connection failed. response code = 400
------------------------------------------------
And the output of openwsmand is
-----------------------------------------------
Sep  3 12:00:51 [12631] decide_what_to_do: [/wsman]
Sep  3 12:00:51 [12631] is_alias: aliases []
Sep  3 12:00:51 [12631] Done reading request
Sep  3 12:00:51 [12631] Inbound call...
Sep  3 12:00:51 [12631] uri: http://schemas.dmtf.org/wbem/wscim/1/*, action: http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe
Sep  3 12:00:51 [12631] namespace: http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd
Sep  3 12:00:51 [12631] namespace: http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2
Sep  3 12:00:51 [12631] namespace: http://schemas.dmtf.org/wbem/wscim/1
Sep  3 12:00:51 [12631] Processing Filters: inbound
Sep  3 12:00:51 [12631] Checking Message ID: uuid:bc0480ca-e572-1572-8002-a0926d2fb5b4
Sep  3 12:00:51 [12631] wsen:Expires = PT600.000000S
Sep  3 12:00:51 [12631] [heartbeat interval = PT2.000000S]
Sep  3 12:00:51 [12631] timeout = 2
Sep  3 12:00:51 [12631] event sink: http://127.0.0.1:80/eventsink
Sep  3 12:00:51 [12631] CIM Subscription
Sep  3 12:00:51 [12631] username: root, password: XXXXX
Sep  3 12:00:51 [12631] Connecting using sfcc SfcbLocal frontend
logger not started--- Using /etc/sfcb/sfcb.cfg
logger not started--- Using /etc/sfcb/sfcb.cfg
Sep  3 12:00:51 [12631] new cimclient: 0x  62f5d0
Sep  3 12:00:51 [12631] new cimclient: 1
Sep  3 12:00:51 [12631] text: __cimnamespace
Sep  3 12:00:51 [12631] method or action: Subscribe
Sep  3 12:00:51 [12631] CIM Namespace: root/interop
Sep  3 12:00:51 [12631] method or action: Subscribe
Sep  3 12:00:51 [12631] create CIM_IndicationFilter() rc=0, msg=(null)
Sep  3 12:00:51 [12631] create CIM_IndicationHandlerCIMXML() rc=0, msg=(null)
Sep  3 12:00:51 [12631] create CIM_IndicationSubscription() rc=6, msg=Filter not found
Sep  3 12:00:51 [12631] selectors destroyed
Sep  3 12:00:51 [12631] cimclient destroyed
Sep  3 12:00:51 [12631] Subscribe fault
Sep  3 12:00:51 [12631] Processing Filters: outbound
Sep  3 12:00:51 [12631] destroy op
Sep  3 12:00:51 [12631] Inbound call completed
Sep  3 12:00:51 [12631] Response status=400 (Bad request)
Sep  3 12:00:51 [12631] 4 (null) stopped. 859 of content data, 859 now in a buffer
Sep  3 12:00:51 [12631] Disconnecting 4 ()
-----------------------------------------
But the I can find the class CIM_IndicationSubscription in root/interop:
bl460c-g8-8:/home/baibin/workspace/story/wsman-event # wbemcli ec http://root:will@localhost:5988/root/interop | grep CIM_IndicationSubscription
localhost:5988/root/interop:CIM_IndicationSubscription SubscriptionInfo=,LastIndicationProductionDateTime=,LastIndicationIdentifier=,AlertOnStateChange=,RepeatNotificationCount=,RepeatNotificationGap=,RepeatNotificationInterval=,OtherRepeatNotificationPolicy=,RepeatNotificationPolicy=,SubscriptionTimeRemaining=,SubscriptionStartTime=,SubscriptionDuration=,TimeOfLastStateChange=,OtherSubscriptionState=,SubscriptionState=,FailureTriggerTimeInterval=,OtherOnFatalErrorPolicy=,OnFatalErrorPolicy=,Filter=,Handler=

I don't know why all the path are blocked to me...

Regards,
Bai, Bin



-----Original Message-----
From: Klaus Kaempf [mailto:[hidden email]]
Sent: 2013年8月29日 23:35
To: Bai, Bin (ESSN-MCXS-CN)
Cc: [hidden email]
Subject: Re: [Openwsman-devel] Subscribe event over wsman

* Bai, Bin (ESSN-MCXS-CN) <[hidden email]> [Aug 29. 2013 16:29]:
> And If I set
> cim_client_frontend = XML
> The output of openwsmand turn to
> -------------------
> Aug 29 22:26:34 [28513] CIM Subscription Aug 29 22:26:34 [28513]
> username: root, password: XXXXX Aug 29 22:26:34 [28513] Connecting
> using sfcc XML frontend Aug 29 22:26:34 [28513] *** Connection to
> CIMOM http://localhost:5989 failed with 1:?
> -------------------

By default, Openwsman talks 'https' on port 5989 to the CIMOM. Looks as if your cimom only listens for 'http' on port 5988 ?!
Change this in the [cim] section of /etc/openwsman/openwsman.conf. Set
  port=5988
and
  ssl=no

Klaus
--
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Maxfeldstraße 5, 90409 Nürnberg, Germany
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Reply | Threaded
Open this post in threaded view
|

Re: Subscribe event over wsman

Klaus Kaempf
* Bai, Bin (ESSN-MCXS-CN) <[hidden email]> [Sep 03. 2013 06:06]:
> 9. run
> wsman subscribe http://schemas.dmtf.org/wbem/wscim/1/* -x "SELECT * FROM CIM_Indication" -D "http://schemas.microsoft.com/wbem/wsman/1/WQL" -Z http://127.0.0.1:80/eventsink --namespace=root/interop -r 600 -H 2 -u root -p will localhost -G push -R

Change the --namespace to root/cimv2 as shown in
https://github.com/Openwsman/openwsman/wiki/using-ws-eventing.

> Sep  3 11:55:38 [12488] Connecting using sfcc XML frontend
> Sep  3 11:55:38 [12488] *** Connection to CIMOM http://localhost:5988 failed with 1:?

Openwsman cannot reach sfcbd at port 5988. What is the value of 'ssl'
in /etc/openwsman/openwsman.conf ? It should be 'no'.

> But the I can find the class CIM_IndicationSubscription in root/interop:

These might be leftovers from the wbemcli calls. Did you also run the
respective SCFBDelete* calls as described in
http://sourceforge.net/p/sblim/cmpi-base/ci/master/tree/README.INDICATION ?

Hth,

Klaus
--
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
Maxfeldstraße 5, 90409 Nürnberg, Germany

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Reply | Threaded
Open this post in threaded view
|

Re: Subscribe event over wsman

Bai, Bin (ESSN-MCXS-CN)
Hi Klaus,

If I use --namespace=root/cimv2 in the wsman, or specify "indication_source_namespace = root/cimv2" in openwsman.conf, or both. The output of wsman is
<?xml version="1.0"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing">
  <s:Header>
    <wsa:Action s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe</wsa:Action>
    <wsa:To s:mustUnderstand="true">http://localhost:5985/wsman</wsa:To>
    <wsman:ResourceURI s:mustUnderstand="true">http://schemas.dmtf.org/wbem/wscim/1/*</wsman:ResourceURI>
    <wsa:MessageID s:mustUnderstand="true">uuid:c6aaa878-e575-1575-8002-a0926d2fb5b4</wsa:MessageID>
    <wsa:ReplyTo>
      <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
    </wsa:ReplyTo>
    <wsman:SelectorSet>
      <wsman:Selector Name="__cimnamespace">root/cimv2</wsman:Selector>
    </wsman:SelectorSet>
  </s:Header>
  <s:Body>
    <wse:Subscribe>
      <wse:Delivery Mode="http://schemas.xmlsoap.org/ws/2004/08/eventing/DeliveryModes/Push">
        <wse:NotifyTo>
          <wsa:Address>http://127.0.0.1:80/eventsink</wsa:Address>
        </wse:NotifyTo>
        <wsman:Heartbeats>PT2.000000S</wsman:Heartbeats>
      </wse:Delivery>
      <wse:Expires>PT600.000000S</wse:Expires>
      <wsman:Filter Dialect="http://schemas.microsoft.com/wbem/wsman/1/WQL">SELECT * FROM CIM_Indication</wsman:Filter>
    </wse:Subscribe>
  </s:Body>
</s:Envelope>
Connection failed. response code = 0
Server returned nothing (no headers, no data)
-----------------------------------------
And the log of openwsmand is:
-----------------------------------------
logger not started--- Using /etc/sfcb/sfcb.cfg
Sep  3 15:38:34 [36087] new cimclient: 0x  6247b0
Sep  3 15:38:34 [36087] new cimclient: 1
Sep  3 15:38:34 [36087] text: __cimnamespace
Sep  3 15:38:34 [36087] method or action: Subscribe
Sep  3 15:38:34 [36087] CIM Namespace: root/cimv2
Sep  3 15:38:34 [36087] method or action: Subscribe
Sep  3 15:38:34 [36087] create CIM_IndicationFilter() rc=5, msg=Class not found
Sep  3 15:38:34 [36087] selectors destroyed
Sep  3 15:38:34 [36087] cimclient destroyed
Sep  3 15:38:34 [36087] Subscribe fault
Sep  3 15:38:34 [36087] Processing Filters: outbound
Sep  3 15:38:34 [36087] destroy op
Sep  3 15:38:34 [36087] Inbound call completed
Sep  3 15:38:34 [36087] Response status=400 (Bad request)
Sep  3 15:38:34 [36087] 0 (null) stopped. 1052 of content data, 1052 now in a buffer
Sep  3 15:38:34 [36087] 0 (null) stopped. 1344 of content data, 0 now in a buffer
Sep  3 15:38:34 [36087] Disconnecting 0 ()
------------------------------------------------
It looks like the Classes for indication is not under root/cimv2 at all.

>> Openwsman cannot reach sfcbd at port 5988. What is the value of 'ssl'
>> in /etc/openwsman/openwsman.conf ? It should be 'no'.
I can't find any configuration named "ssl", what do you mean?

>> These might be leftovers from the wbemcli calls. Did you also run the respective SCFBDelete* calls as described in
>> http://sourceforge.net/p/sblim/cmpi-base/ci/master/tree/README.INDICATION ?
I tried to delete process. The following two is OK:
        SFCBDeleteFilter.localhost.xml
        SFCBDeleteHandler.localhost.xml
However the output of "wbemcat SFCBDeleteSubscription.localhost.xml " is
<?xml version="1.0" encoding="utf-8" ?>
<CIM CIMVERSION="2.0" DTDVERSION="2.0">
<MESSAGE ID="4711" PROTOCOLVERSION="1.0">
<SIMPLERSP>
<IMETHODRESPONSE NAME="DeleteInstance">
<ERROR CODE="6" DESCRIPTION="The requested object could not be found"/>
</IMETHODRESPONSE>
</SIMPLERSP>
</MESSAGE>
</CIM>


Thanks and Regards,
Bai, Bin



-----Original Message-----
From: Klaus Kaempf [mailto:[hidden email]]
Sent: 2013年9月3日 15:15
To: Bai, Bin (ESSN-MCXS-CN)
Cc: [hidden email]
Subject: Re: [Openwsman-devel] Subscribe event over wsman

* Bai, Bin (ESSN-MCXS-CN) <[hidden email]> [Sep 03. 2013 06:06]:
> 9. run
> wsman subscribe http://schemas.dmtf.org/wbem/wscim/1/* -x "SELECT *
> FROM CIM_Indication" -D
> "http://schemas.microsoft.com/wbem/wsman/1/WQL" -Z
> http://127.0.0.1:80/eventsink --namespace=root/interop -r 600 -H 2 -u
> root -p will localhost -G push -R

Change the --namespace to root/cimv2 as shown in https://github.com/Openwsman/openwsman/wiki/using-ws-eventing.

> Sep  3 11:55:38 [12488] Connecting using sfcc XML frontend Sep  3
> 11:55:38 [12488] *** Connection to CIMOM http://localhost:5988 failed with 1:?

Openwsman cannot reach sfcbd at port 5988. What is the value of 'ssl'
in /etc/openwsman/openwsman.conf ? It should be 'no'.

> But the I can find the class CIM_IndicationSubscription in root/interop:

These might be leftovers from the wbemcli calls. Did you also run the respective SCFBDelete* calls as described in http://sourceforge.net/p/sblim/cmpi-base/ci/master/tree/README.INDICATION ?

Hth,

Klaus
--
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Maxfeldstraße 5, 90409 Nürnberg, Germany
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Reply | Threaded
Open this post in threaded view
|

Re: Subscribe event over wsman

Klaus Kaempf
* Bai, Bin (ESSN-MCXS-CN) <[hidden email]> [Sep 03. 2013 09:51]:
> Hi Klaus,
>
> If I use --namespace=root/cimv2 in the wsman, or specify "indication_source_namespace = root/cimv2" in openwsman.conf, or both. The output of wsman is

Leave indication_source_namespace untouched.

> It looks like the Classes for indication is not under root/cimv2 at all.

They are. I verified
https://github.com/Openwsman/openwsman/wiki/using-ws-eventing to be
accurate before posting.

>
> >> These might be leftovers from the wbemcli calls. Did you also run the respective SCFBDelete* calls as described in
> >> http://sourceforge.net/p/sblim/cmpi-base/ci/master/tree/README.INDICATION ?
> I tried to delete process. The following two is OK:
> SFCBDeleteFilter.localhost.xml
> SFCBDeleteHandler.localhost.xml
> However the output of "wbemcat SFCBDeleteSubscription.localhost.xml " is

You didn't follow
http://sourceforge.net/p/sblim/cmpi-base/ci/master/tree/README.INDICATION !

On creation, you start with the filter, then the handler, then the subscription
to create an association between the filter and the handler.

Deletion must be done in reverse order. First delete the subscription, then the
handler, then the filter.

Please also test the following:

1. Enumeration via cim/xml works
     wbemcli ecn http://<user>:<pass>@localhost:5988/root/cimv2:CIM_ComputerSystem
   This should output
     localhost:5988/root/cimv2:Linux_ComputerSystem
     
   (Replace <user> and <pass> with your credentials !)

2. Enumeration via Openwsman works
     wsman enumerate -u <user> -p <pass> http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem
   This should output something like
     <wsen:PullResponse>
       <wsen:EnumerationContext>ae5395c1-e576-1576-8006-3da9f9201300</wsen:EnumerationContext>
         <wsen:Items>
           <n1:Linux_ComputerSystem>
             <n1:Caption>Computer System</n1:Caption>
             <n1:CommunicationStatus xsi:nil="true"/>
             <n1:CreationClassName>Linux_ComputerSystem</n1:CreationClassName>
             ...
     
   (Replace <user> and <pass> with your credentials !)

Only if both steps are working, your cimom is running ok and Openwsman can
actually connect to the cimom.

Hth,

Klaus
--
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
Maxfeldstraße 5, 90409 Nürnberg, Germany

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Reply | Threaded
Open this post in threaded view
|

Re: Subscribe event over wsman

Bai, Bin (ESSN-MCXS-CN)
Hello Klaus

>> Leave indication_source_namespace untouched.
Done

>> On creation, you start with the filter, then the handler, then the subscription to create an association between the filter and the handler.
>> Deletion must be done in reverse order. First delete the subscription, then the handler, then the filter.
Done. These 6 steps all passed.

>> Please also test the following:
Done, These 2 steps are all passed, the result is right.

Then I back to call
wsman subscribe http://schemas.dmtf.org/wbem/wscim/1/* -x "SELECT * FROM CIM_Indication" -D "http://schemas.microsoft.com/wbem/wsman/1/WQL" -Z http://127.0.0.1:80/eventsink --namespace=root/interop -r 600 -H 2 -u root -p will localhost -G push -R

The output is:
------------------------------------
<?xml version="1.0"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing">
  <s:Header>
    <wsa:Action s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe</wsa:Action>
    <wsa:To s:mustUnderstand="true">http://localhost:5985/wsman</wsa:To>
    <wsman:ResourceURI s:mustUnderstand="true">http://schemas.dmtf.org/wbem/wscim/1/*</wsman:ResourceURI>
    <wsa:MessageID s:mustUnderstand="true">uuid:f4aff2b7-e576-1576-8002-a0926d2fb5b4</wsa:MessageID>
    <wsa:ReplyTo>
      <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
    </wsa:ReplyTo>
    <wsman:SelectorSet>
      <wsman:Selector Name="__cimnamespace">root/interop</wsman:Selector>
    </wsman:SelectorSet>
  </s:Header>
  <s:Body>
    <wse:Subscribe>
      <wse:Delivery Mode="http://schemas.xmlsoap.org/ws/2004/08/eventing/DeliveryModes/Push">
        <wse:NotifyTo>
          <wsa:Address>http://127.0.0.1:80/eventsink</wsa:Address>
        </wse:NotifyTo>
        <wsman:Heartbeats>PT2.000000S</wsman:Heartbeats>
      </wse:Delivery>
      <wse:Expires>PT600.000000S</wse:Expires>
      <wsman:Filter Dialect="http://schemas.microsoft.com/wbem/wsman/1/WQL">SELECT * FROM CIM_Indication</wsman:Filter>
    </wse:Subscribe>
  </s:Body>
</s:Envelope>
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
  <s:Header>
    <wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
    <wsa:Action>http://schemas.xmlsoap.org/ws/2004/08/addressing/fault</wsa:Action>
    <wsa:RelatesTo>uuid:f4aff2b7-e576-1576-8002-a0926d2fb5b4</wsa:RelatesTo>
    <wsa:MessageID>uuid:f4c153a6-e576-1576-8003-a0926d2fb5b4</wsa:MessageID>
  </s:Header>
  <s:Body>
    <s:Fault>
      <s:Code>
        <s:Value>s:Sender</s:Value>
        <s:Subcode>
          <s:Value>wsa:DestinationUnreachable</s:Value>
        </s:Subcode>
      </s:Code>
      <s:Reason>
        <s:Text xml:lang="en">Filter not found</s:Text>
      </s:Reason>
    </s:Fault>
  </s:Body>
</s:Envelope>
Connection failed. response code = 400
--------------------------------------------------------------
The log of openwsmand is:
--------------------------------------------------------------
Sep  3 17:04:50 [38006] Sock 0 accepted
Sep  3 17:04:50 [38006] Active sockets: 0, Thread Number: 0
Sep  3 17:04:50 [38006] ::1:5985 connected (socket 0)
Sep  3 17:04:51 [38006] Conn 0: parsing request: [POST /wsman HTTP/1.1
Host: localhost:5985
Accept: */*
Content-Type: application/soap+xml;charset=UTF-8
User-Agent: openwsman 2.2.3
Content-Length: 1346
Expect: 100-continue

]
Sep  3 17:04:51 [38006] parsing headers (len 160): [Host: localhost:5985
Accept: */*
Content-Type: application/soap+xml;charset=UTF-8
User-Agent: openwsman 2.2.3
Content-Length: 1346
Expect: 100-continue

]
Sep  3 17:04:51 [38006] decide_what_to_do: [/wsman]
Sep  3 17:04:51 [38006] is_alias: aliases []
Sep  3 17:04:51 [38006] 0 (null) stopped. 0 of content data, 150 now in a buffer
Sep  3 17:04:51 [38006] Disconnecting 0 ()
Sep  3 17:04:51 [38006] Sock 4 accepted
Sep  3 17:04:51 [38006] Active sockets: 0, Thread Number: 0
Sep  3 17:04:51 [38006] ::1:5985 connected (socket 4)
Sep  3 17:04:52 [38006] Conn 4: parsing request: [POST /wsman HTTP/1.1
Authorization: Basic cm9vdDp3aWxs
Host: localhost:5985
Accept: */*
Content-Type: application/soap+xml;charset=UTF-8
User-Agent: openwsman 2.2.3
Content-Length: 1346
Expect: 100-continue

]
Sep  3 17:04:52 [38006] parsing headers (len 195): [Authorization: Basic cm9vdDp3aWxs
Host: localhost:5985
Accept: */*
Content-Type: application/soap+xml;charset=UTF-8
User-Agent: openwsman 2.2.3
Content-Length: 1346
Expect: 100-continue

]
Sep  3 17:04:52 [38006] decide_what_to_do: [/wsman]
Sep  3 17:04:52 [38006] is_alias: aliases []
Sep  3 17:04:52 [38006] Done reading request
Sep  3 17:04:52 [38006] Inbound call...
Sep  3 17:04:52 [38006] uri: http://schemas.dmtf.org/wbem/wscim/1/*, action: http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe
Sep  3 17:04:52 [38006] namespace: http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd
Sep  3 17:04:52 [38006] namespace: http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2
Sep  3 17:04:52 [38006] namespace: http://schemas.dmtf.org/wbem/wscim/1
Sep  3 17:04:52 [38006] Processing Filters: inbound
Sep  3 17:04:52 [38006] Checking Message ID: uuid:fb3865a3-e576-1576-8002-a0926d2fb5b4
Sep  3 17:04:52 [38006] wsen:Expires = PT600.000000S
Sep  3 17:04:52 [38006] [heartbeat interval = PT2.000000S]
Sep  3 17:04:52 [38006] timeout = 2
Sep  3 17:04:52 [38006] event sink: http://127.0.0.1:80/eventsink
Sep  3 17:04:52 [38006] CIM Subscription
Sep  3 17:04:52 [38006] username: root, password: XXXXX
Sep  3 17:04:52 [38006] Connecting using sfcc SfcbLocal frontend
logger not started--- Using /etc/sfcb/sfcb.cfg
logger not started--- Using /etc/sfcb/sfcb.cfg
Sep  3 17:04:52 [38006] new cimclient: 0x  62d080
Sep  3 17:04:52 [38006] new cimclient: 1
Sep  3 17:04:52 [38006] text: __cimnamespace
Sep  3 17:04:52 [38006] method or action: Subscribe
Sep  3 17:04:52 [38006] CIM Namespace: root/interop
Sep  3 17:04:52 [38006] method or action: Subscribe
Sep  3 17:04:52 [38006] create CIM_IndicationFilter() rc=0, msg=(null)
Sep  3 17:04:52 [38006] create CIM_IndicationHandlerCIMXML() rc=0, msg=(null)
Sep  3 17:04:52 [38006] create CIM_IndicationSubscription() rc=6, msg=Filter not found
Sep  3 17:04:52 [38006] selectors destroyed
Sep  3 17:04:52 [38006] cimclient destroyed
Sep  3 17:04:52 [38006] Subscribe fault
Sep  3 17:04:52 [38006] Processing Filters: outbound
Sep  3 17:04:52 [38006] destroy op
Sep  3 17:04:52 [38006] Inbound call completed
Sep  3 17:04:52 [38006] Response status=400 (Bad request)
Sep  3 17:04:52 [38006] 4 (null) stopped. 859 of content data, 859 now in a buffer
Sep  3 17:04:52 [38006] Disconnecting 4 ()
-------------------------------------------------
So, nothing changed...
By the way, the "cim_client_frontend = SfcbLocal" is set. Or Openwsman cannot reach sfcbd at port 5988

Thanks and Regards,
Bai, Bin

-----Original Message-----
From: Klaus Kaempf [mailto:[hidden email]]
Sent: 2013年9月3日 16:47
To: Bai, Bin (ESSN-MCXS-CN)
Cc: [hidden email]
Subject: Re: [Openwsman-devel] Subscribe event over wsman

* Bai, Bin (ESSN-MCXS-CN) <[hidden email]> [Sep 03. 2013 09:51]:
> Hi Klaus,
>
> If I use --namespace=root/cimv2 in the wsman, or specify
> "indication_source_namespace = root/cimv2" in openwsman.conf, or both.
> The output of wsman is

Leave indication_source_namespace untouched.

> It looks like the Classes for indication is not under root/cimv2 at all.

They are. I verified
https://github.com/Openwsman/openwsman/wiki/using-ws-eventing to be accurate before posting.

>
> >> These might be leftovers from the wbemcli calls. Did you also run
> >> the respective SCFBDelete* calls as described in http://sourceforge.net/p/sblim/cmpi-base/ci/master/tree/README.INDICATION ?
> I tried to delete process. The following two is OK:
> SFCBDeleteFilter.localhost.xml
> SFCBDeleteHandler.localhost.xml
> However the output of "wbemcat SFCBDeleteSubscription.localhost.xml "
> is

You didn't follow
http://sourceforge.net/p/sblim/cmpi-base/ci/master/tree/README.INDICATION !

On creation, you start with the filter, then the handler, then the subscription to create an association between the filter and the handler.

Deletion must be done in reverse order. First delete the subscription, then the handler, then the filter.

Please also test the following:

1. Enumeration via cim/xml works
     wbemcli ecn http://<user>:<pass>@localhost:5988/root/cimv2:CIM_ComputerSystem
   This should output
     localhost:5988/root/cimv2:Linux_ComputerSystem
     
   (Replace <user> and <pass> with your credentials !)

2. Enumeration via Openwsman works
     wsman enumerate -u <user> -p <pass> http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem
   This should output something like
     <wsen:PullResponse>
       <wsen:EnumerationContext>ae5395c1-e576-1576-8006-3da9f9201300</wsen:EnumerationContext>
         <wsen:Items>
           <n1:Linux_ComputerSystem>
             <n1:Caption>Computer System</n1:Caption>
             <n1:CommunicationStatus xsi:nil="true"/>
             <n1:CreationClassName>Linux_ComputerSystem</n1:CreationClassName>
             ...
     
   (Replace <user> and <pass> with your credentials !)

Only if both steps are working, your cimom is running ok and Openwsman can actually connect to the cimom.

Hth,

Klaus
--
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Maxfeldstraße 5, 90409 Nürnberg, Germany
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Reply | Threaded
Open this post in threaded view
|

Re: Subscribe event over wsman

Klaus Kaempf
* Bai, Bin (ESSN-MCXS-CN) <[hidden email]> [Sep 03. 2013 11:07]:
>
> Then I back to call
> wsman subscribe http://schemas.dmtf.org/wbem/wscim/1/* -x "SELECT * FROM CIM_Indication" -D "http://schemas.microsoft.com/wbem/wsman/1/WQL" -Z http://127.0.0.1:80/eventsink --namespace=root/interop -r 600 -H 2 -u root -p will localhost -G push -R

Man, you still got the --namespace wrong !

> By the way, the "cim_client_frontend = SfcbLocal" is set. Or Openwsman cannot reach sfcbd at port 5988

Stay with cim_client_frontend=XML for now. I haven't tested
indications with SfcbLocal.


Klaus
--
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
Maxfeldstraße 5, 90409 Nürnberg, Germany

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Reply | Threaded
Open this post in threaded view
|

Re: Subscribe event over wsman

Bai, Bin (ESSN-MCXS-CN)
I tested with --namespace=root/cimv2
The output of wsman is :
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">
  <s:Header>
    <wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
    <wsa:Action>http://schemas.xmlsoap.org/ws/2004/08/addressing/fault</wsa:Action>
    <wsa:RelatesTo>uuid:bd0b3ae0-e577-1577-8002-a0926d2fb5b4</wsa:RelatesTo>
    <wsa:MessageID>uuid:bd1e807c-e577-1577-8003-a0926d2fb5b4</wsa:MessageID>
  </s:Header>
  <s:Body>
    <s:Fault>
      <s:Code>
        <s:Value>s:Sender</s:Value>
        <s:Subcode>
          <s:Value>wsa:DestinationUnreachable</s:Value>
        </s:Subcode>
      </s:Code>
      <s:Reason>
        <s:Text xml:lang="en">Class not found</s:Text>
      </s:Reason>
      <s:Detail>
        <wsman:FaultDetail>http://schemas.dmtf.org/wbem/wsman/1/wsman/faultDetail/InvalidResourceURI</wsman:FaultDetail>
      </s:Detail>
    </s:Fault>
  </s:Body>
</s:Envelope>
Connection failed. response code = 400



The log of openwsmand is
Sep  3 17:59:03 [38880] decide_what_to_do: [/wsman]
Sep  3 17:59:03 [38880] is_alias: aliases []
Sep  3 17:59:03 [38880] Done reading request
Sep  3 17:59:03 [38880] Inbound call...
Sep  3 17:59:03 [38880] uri: http://schemas.dmtf.org/wbem/wscim/1/*, action: http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe
Sep  3 17:59:03 [38880] namespace: http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd
Sep  3 17:59:03 [38880] namespace: http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2
Sep  3 17:59:03 [38880] namespace: http://schemas.dmtf.org/wbem/wscim/1
Sep  3 17:59:03 [38880] Processing Filters: inbound
Sep  3 17:59:03 [38880] Checking Message ID: uuid:bd0b3ae0-e577-1577-8002-a0926d2fb5b4
Sep  3 17:59:03 [38880] wsen:Expires = PT600.000000S
Sep  3 17:59:03 [38880] [heartbeat interval = PT2.000000S]
Sep  3 17:59:03 [38880] timeout = 2
Sep  3 17:59:03 [38880] event sink: http://127.0.0.1:80/eventsink
Sep  3 17:59:03 [38880] CIM Subscription
Sep  3 17:59:03 [38880] username: root, password: XXXXX
Sep  3 17:59:03 [38880] Connecting using sfcc XML frontend
Sep  3 17:59:03 [38880] new cimclient: 0x  62bde0
Sep  3 17:59:03 [38880] new cimclient: 1
Sep  3 17:59:03 [38880] text: __cimnamespace
Sep  3 17:59:03 [38880] method or action: Subscribe
Sep  3 17:59:03 [38880] CIM Namespace: root/cimv2
Sep  3 17:59:03 [38880] method or action: Subscribe
Sep  3 17:59:03 [38880] create CIM_IndicationFilter() rc=5, msg=Class not found
Sep  3 17:59:03 [38880] selectors destroyed
Sep  3 17:59:03 [38880] cimclient destroyed
Sep  3 17:59:03 [38880] Subscribe fault
Sep  3 17:59:03 [38880] Processing Filters: outbound
Sep  3 17:59:03 [38880] destroy op
Sep  3 17:59:03 [38880] Inbound call completed
Sep  3 17:59:03 [38880] Response status=400 (Bad request)
Sep  3 17:59:03 [38880] 4 (null) stopped. 1052 of content data, 1052 now in a buffer
Sep  3 17:59:03 [38880] Disconnecting 4 ()


The good news is that " cim_client_frontend=XML" can work now.
Which command can help me to check if these classes is really in root/cimv2?


Thanks and Regards,
Bai, Bin


-----Original Message-----
From: Klaus Kaempf [mailto:[hidden email]]
Sent: 2013年9月3日 17:32
To: Bai, Bin (ESSN-MCXS-CN)
Cc: [hidden email]
Subject: Re: [Openwsman-devel] Subscribe event over wsman

* Bai, Bin (ESSN-MCXS-CN) <[hidden email]> [Sep 03. 2013 11:07]:
>
> Then I back to call
> wsman subscribe http://schemas.dmtf.org/wbem/wscim/1/* -x "SELECT *
> FROM CIM_Indication" -D
> "http://schemas.microsoft.com/wbem/wsman/1/WQL" -Z
> http://127.0.0.1:80/eventsink --namespace=root/interop -r 600 -H 2 -u
> root -p will localhost -G push -R

Man, you still got the --namespace wrong !

> By the way, the "cim_client_frontend = SfcbLocal" is set. Or Openwsman
> cannot reach sfcbd at port 5988

Stay with cim_client_frontend=XML for now. I haven't tested indications with SfcbLocal.


Klaus
--
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Maxfeldstraße 5, 90409 Nürnberg, Germany
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Reply | Threaded
Open this post in threaded view
|

Re: Subscribe event over wsman

Bai, Bin (ESSN-MCXS-CN)
In reply to this post by Klaus Kaempf
Hi Klaus,

I think the following test shows that the classes used by indication don't exist in root/cimv2

bl460c-g8-8:/home/baibin/workspace/story/wsman-event # wbemcli gc http://root:will@localhost:5988/root/interop:CIM_IndicationFilter
localhost:5988/root/interop:CIM_IndicationFilter Generation=,ElementName=,Description=,Caption=,InstanceID=,SystemCreationClassName=,SystemName=,CreationClassName=,Name=,SourceNamespace=,SourceNamespaces=,IndividualSubscriptionSupported=,Query=,QueryLanguage=,TemplateVariable=

bl460c-g8-8:/home/baibin/workspace/story/wsman-event # wbemcli gc http://root:will@localhost:5988/root/cimv2:CIM_IndicationFilter
*
* wbemcli: Cim: (6) CIM_ERR_NOT_FOUND: The requested object could not be found
*
bl460c-g8-8:/home/baibin/workspace/story/wsman-event #

Should I manually install then under root/cimv2 ?.

Regards,
Bai, Bin.


-----Original Message-----
From: Klaus Kaempf [mailto:[hidden email]]
Sent: 2013年9月3日 17:32
To: Bai, Bin (ESSN-MCXS-CN)
Cc: [hidden email]
Subject: Re: [Openwsman-devel] Subscribe event over wsman

* Bai, Bin (ESSN-MCXS-CN) <[hidden email]> [Sep 03. 2013 11:07]:
>
> Then I back to call
> wsman subscribe http://schemas.dmtf.org/wbem/wscim/1/* -x "SELECT *
> FROM CIM_Indication" -D
> "http://schemas.microsoft.com/wbem/wsman/1/WQL" -Z
> http://127.0.0.1:80/eventsink --namespace=root/interop -r 600 -H 2 -u
> root -p will localhost -G push -R

Man, you still got the --namespace wrong !

> By the way, the "cim_client_frontend = SfcbLocal" is set. Or Openwsman
> cannot reach sfcbd at port 5988

Stay with cim_client_frontend=XML for now. I haven't tested indications with SfcbLocal.


Klaus
--
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Maxfeldstraße 5, 90409 Nürnberg, Germany
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Reply | Threaded
Open this post in threaded view
|

Re: Subscribe event over wsman

Klaus Kaempf
* Bai, Bin (ESSN-MCXS-CN) <[hidden email]> [Sep 03. 2013 12:09]:
> Hi Klaus,
>
> I think the following test shows that the classes used by indication don't exist in root/cimv2

No worries, Openwsman knows which classes reside in the interop
namespace.

Once the wbemcli examples from README.INDICATION work, try the
examples from the "Run wsmancli to subscribe" section of
https://github.com/Openwsman/openwsman/wiki/using-ws-eventing

Klaus
--
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
Maxfeldstraße 5, 90409 Nürnberg, Germany

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Reply | Threaded
Open this post in threaded view
|

Re: Subscribe event over wsman

Bai, Bin (ESSN-MCXS-CN)
Hi Klaus,

I'm sorry my problem trouble you so much. This is the status that I follow he "Run wsmancli to subscribe" section of https://github.com/Openwsman/openwsman/wiki/using-ws-eventing:
        1. If I set XML as cim_client_frontend=XML, Openwsman can't connected to SFCB. But it turns to work after I installed some devel package. I'm not sure which devel package make it work, I guess it's sfcc-devel package.
        2. With namespace=root/cimv2, Openwsman said CIM_IndicationFilter not found, wsman said
                ---- <s:Value>wsa:DestinationUnreachable</s:Value>
                ---- <s:Text xml:lang="en">Class not found</s:Text>
                ---- <wsman:FaultDetail>http://schemas.dmtf.org/wbem/wsman/1/wsman/faultDetail/InvalidResourceURI</wsman:FaultDetail>
        Openwsman said:
                ---- create CIM_IndicationFilter() rc=5, msg=Class not found


        3. With namespace=root/interop, wsman said
                ----" <s:Value>wsa:ActionNotSupported</s:Value>" " <s:Text xml:lang="en">No supported indication classes in filter query or no provider found</s:Text>"
        Openwsman said:
                ----"create CIM_IndicationSubscription() rc=7, msg=No supported indication classes in filter query or no provider found"


After so many tests, I think my problem have no relationship with namespace argument in command line.


Thanks and Regards,
Bai, Bin


-----Original Message-----
From: Klaus Kaempf [mailto:[hidden email]]
Sent: 2013年9月3日 21:19
To: Bai, Bin (ESSN-MCXS-CN)
Cc: [hidden email]
Subject: Re: [Openwsman-devel] Subscribe event over wsman

* Bai, Bin (ESSN-MCXS-CN) <[hidden email]> [Sep 03. 2013 12:09]:
> Hi Klaus,
>
> I think the following test shows that the classes used by indication
> don't exist in root/cimv2

No worries, Openwsman knows which classes reside in the interop namespace.

Once the wbemcli examples from README.INDICATION work, try the examples from the "Run wsmancli to subscribe" section of https://github.com/Openwsman/openwsman/wiki/using-ws-eventing

Klaus
--
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Maxfeldstraße 5, 90409 Nürnberg, Germany
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Reply | Threaded
Open this post in threaded view
|

Re: Subscribe event over wsman

Klaus Kaempf
* Bai, Bin (ESSN-MCXS-CN) <[hidden email]> [Sep 04. 2013 04:33]:
> Hi Klaus,
>
> I'm sorry my problem trouble you so much. This is the status that I follow he "Run wsmancli to subscribe" section of https://github.com/Openwsman/openwsman/wiki/using-ws-eventing:
> 1. If I set XML as cim_client_frontend=XML, Openwsman can't connected to SFCB. But it turns to work after I installed some devel package. I'm not sure which devel package make it work, I guess it's sfcc-devel package.

Ah, yes, I remember. Later versions of Sfcc have better error
reporting for this.

Running this command

  wsman subscribe http://schemas.dmtf.org/wbem/wscim/1/* \
  -x "SELECT * FROM CIM_ProcessIndication" \
  -D "http://schemas.microsoft.com/wbem/wsman/1/WQL" \
  -Z http://127.0.0.1:80/eventsink  \
  --namespace=root/cimv2 \
  -r 600 \
  -H 2 \
  -h localhost -u wsman -p secret \
  -G push \
  –R

works without problems on my system. I currently have no idea what's
wrong on your side, sorry.


Klaus
--
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
Maxfeldstraße 5, 90409 Nürnberg, Germany

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Reply | Threaded
Open this post in threaded view
|

Re: Subscribe event over wsman

Klaus Kaempf
A new Wiki page is now available, explaining the internal actions
triggered by a "wsman subscribe" call, including 'wbemcli' commands to
check instances on the CIMOM side:

  https://github.com/Openwsman/openwsman/wiki/Debugging-WS-Eventing

Hth,

Klaus
--
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
Maxfeldstraße 5, 90409 Nürnberg, Germany

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Reply | Threaded
Open this post in threaded view
|

Re: Subscribe event over wsman

Bai, Bin (ESSN-MCXS-CN)
Hello Klaus,

I was finally be able to send indication over wsman, however I still have some problems, here are them.

1. While I try to enumerate instances across openwsman, I found it only workable at the first try, then I have to restart openwsmand to let it work again. I don't know why, do you have any idea? The log from openwsman at the same no matter is successful or not.
At the first try, the output of wsman only have the following part:

<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration">
  <s:Header>
    <wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
    <wsa:Action>http://schemas.xmlsoap.org/ws/2004/09/enumeration/EnumerateResponse</wsa:Action>
    <wsa:RelatesTo>uuid:7b729770-e5b1-15b1-8002-a0926d2fb5b4</wsa:RelatesTo>
    <wsa:MessageID>uuid:7b8a200e-e5b1-15b1-8021-a0926d2fb5b4</wsa:MessageID>
  </s:Header>
  <s:Body>
    <wsen:EnumerateResponse>
      <wsen:EnumerationContext>7b8a158c-e5b1-15b1-8020-a0926d2fb5b4</wsen:EnumerationContext>
    </wsen:EnumerateResponse>
  </s:Body>
</s:Envelope>
Connection failed. response code = 0
Server returned nothing (no headers, no data)

It looks like the response are omitted.


2. If I would like to enumerate instance, I have to set "cim_client_frontend = SfcbLocal" in the openwsman.conf. If I would like to let indication work, I have to set "cim_client_frontend = XML". I don't know why. And if I set "cim_client_frontend = SfcbLocal", I have to install "sblim-sfcc-devel". But this rpm is not always available for customer.
If I set "cim_client_frontend = XML" while enumerate instance. The error comes from wsman and openwsman are both "Failure when receiving data from the peer"
If I set"cim_client_frontend = SfcbLocal" and let CIMON work on port 5989 for events delivering, The error from openwsmand is "create CIM_IndicationFilter() rc=1, msg=Failure when receiving data from the peer"


3. To enable events delivering, the setting must be
        a) cim_client_frontend = XML
        b) CIMOM must work on 5988.
To enable enumerating instances, the setting must be
        a) cim_client_frontend = SfcbLocal

It looks like there is a "session talk" between openwsman and SFCB. It also looks like HTTPS is not always workable. Do you have any idea about my environment?


Thanks and Regards,
Bai, Bin.


-----Original Message-----
From: Klaus Kaempf [mailto:[hidden email]]
Sent: 2013年9月4日 16:01
To: Bai, Bin (ESSN-MCXS-CN)
Cc: [hidden email]
Subject: Re: [Openwsman-devel] Subscribe event over wsman

A new Wiki page is now available, explaining the internal actions triggered by a "wsman subscribe" call, including 'wbemcli' commands to check instances on the CIMOM side:

  https://github.com/Openwsman/openwsman/wiki/Debugging-WS-Eventing

Hth,

Klaus
--
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Maxfeldstraße 5, 90409 Nürnberg, Germany
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
12