Help to start wsman with Python

View: New views
6 Messages — Rating Filter:   Alert me  

Help to start wsman with Python

by Ravi Papisetti -X (rpapiset - HCL at Cisco) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi,

 

I am new to wsman.

 

Can someone provide some pointers where to start using wsman package on linux using python.

 

Does this protocol will have any wsdl kind of file from where I can generate stubs and work on? How does it work?

 

Appreciate your help.

 

Thanks,

Ravi Kumar P.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Openwsman-devel mailing list
Openwsman-devel@...
https://lists.sourceforge.net/lists/listinfo/openwsman-devel

Re: Help to start wsman with Python

by Klaus Kaempf :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ravi,

welcome to openwsman.

* Ravi Papisetti -X (rpapiset - HCL at Cisco) <rpapiset@...> [Oct 23. 2009 18:37]:
>
> Can someone provide some pointers where to start using wsman package on
> linux using python.
>
Start with the openwsman-python bindings which are included in the
openwsman release.
See
http://www.openwsman.org/trac/browser/openwsman/trunk/bindings/python/tests
for some example code.

>
> Does this protocol will have any wsdl kind of file from where I can
> generate stubs and work on? How does it work?
>

WS-Management is a set of protocols based on the WS-* standards.
Read http://www.openwsman.org/ws-management and follow the links to
http://www.dmtf.org/standards/wsman.

Feel free to come back to this list asking for help. The Python
bindings aren't widely used yet, proceed with caution ;-)

Klaus
---
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Openwsman-devel mailing list
Openwsman-devel@...
https://lists.sourceforge.net/lists/listinfo/openwsman-devel

Re: Help to start wsman with Python

by Ravi Papisetti -X (rpapiset - HCL at Cisco) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks a lot Klaus. I have been going through at below given references.


Couple of questions to begin with:
1. Is there any user guide that explains how to use openwsman and python bindings?
2. Should I install  openwsman-2.2.0 on my Linux box if I want to talk to any wsman provider (ex: winrm)? Or just these python bindings should be sufficient to make calls to wsman provider?
3. Is there any standard wsdl exposed to support wsman operations? Does each WSMAN provider exposes any wsdl file?
4. Is there any proxy utility available to capture traffic between client and target managed entity? (ex: like tcpmon for SOAP)
5. Can these python bindings be used to talk to any wsman implementations like winrm etc or limited to any providers?

Please bear with me. Thanks for your time to answer my questions.

Thanks,
Ravi Kumar P.

-----Original Message-----
From: Klaus Kaempf [mailto:kkaempf@...]
Sent: Saturday, October 24, 2009 2:33 AM
To: Ravi Papisetti -X (rpapiset - HCL at Cisco)
Cc: openwsman-devel@...
Subject: Re: [Openwsman-devel] Help to start wsman with Python

Ravi,

welcome to openwsman.

* Ravi Papisetti -X (rpapiset - HCL at Cisco) <rpapiset@...> [Oct 23. 2009 18:37]:
>
> Can someone provide some pointers where to start using wsman package on
> linux using python.
>
Start with the openwsman-python bindings which are included in the
openwsman release.
See
http://www.openwsman.org/trac/browser/openwsman/trunk/bindings/python/tests
for some example code.

>
> Does this protocol will have any wsdl kind of file from where I can
> generate stubs and work on? How does it work?
>

WS-Management is a set of protocols based on the WS-* standards.
Read http://www.openwsman.org/ws-management and follow the links to
http://www.dmtf.org/standards/wsman.

Feel free to come back to this list asking for help. The Python
bindings aren't widely used yet, proceed with caution ;-)

Klaus
---
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Openwsman-devel mailing list
Openwsman-devel@...
https://lists.sourceforge.net/lists/listinfo/openwsman-devel

Re: Help to start wsman with Python

by Klaus Kaempf :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

* Ravi Papisetti -X (rpapiset - HCL at Cisco) <rpapiset@...> [Oct 27. 2009 04:38]:
> Thanks a lot Klaus. I have been going through at below given references.
>
>
> Couple of questions to begin with:
> 1. Is there any user guide that explains how to use openwsman and python bindings?

I'm afraid no. But as the bindings are generated, function and class
names are the same across languages. You can look at Perl and Ruby
examples. And there's also http://www.suse.de/~kkaempf/openwsman/ ;-)

> 2. Should I install openwsman-2.2.0 on my Linux box if I want to talk
> to any wsman provider (ex: winrm)? Or just these python bindings should
> be sufficient to make calls to wsman provider?

openwsman has a client and a server part. The bindings are
client-side, so you'd need the python-bindings plus openwsman-client
to e.g. talk to winrm.

> 3. Is there any standard wsdl exposed to support wsman operations? Does each WSMAN provider exposes any wsdl file?

Not that I know of. Check at www.dmtf.org for eventually published
wsdl files.

> 4. Is there any proxy utility available to capture traffic between client and target managed entity? (ex: like tcpmon for SOAP)

You can use the "debug" facility to increase openwsman debug level.
Additionally, Openwsman::ClientOptions provides 'set_dump_request()'
which dumps the outgoing SOAP request.

> 5. Can these python bindings be used to talk to any wsman implementations like winrm etc or limited to any providers?

openwsman should be compatible to the released WS-Management specs
(modulo bugs ;-)). It has been tested against winrm and Intels iAMT
chipset (see http://www.openamt.org/).

Klaus
---
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Openwsman-devel mailing list
Openwsman-devel@...
https://lists.sourceforge.net/lists/listinfo/openwsman-devel

Re: Help to start wsman with Python

by Ravi Papisetti -X (rpapiset - HCL at Cisco) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Klaus.

Where can I get " python-bindings plus openwsman-client".

Does "http://www.openwsman.org/trac/browser/pywsman/trunk" has both client and bindings?

Thanks,
Ravi Kumar P.


-----Original Message-----
From: Klaus Kaempf [mailto:kkaempf@...]
Sent: Tuesday, October 27, 2009 5:42 AM
To: Ravi Papisetti -X (rpapiset - HCL at Cisco)
Cc: openwsman-devel@...
Subject: Re: [Openwsman-devel] Help to start wsman with Python

* Ravi Papisetti -X (rpapiset - HCL at Cisco) <rpapiset@...> [Oct 27. 2009 04:38]:
> Thanks a lot Klaus. I have been going through at below given references.
>
>
> Couple of questions to begin with:
> 1. Is there any user guide that explains how to use openwsman and python bindings?

I'm afraid no. But as the bindings are generated, function and class
names are the same across languages. You can look at Perl and Ruby
examples. And there's also http://www.suse.de/~kkaempf/openwsman/ ;-)

> 2. Should I install openwsman-2.2.0 on my Linux box if I want to talk
> to any wsman provider (ex: winrm)? Or just these python bindings should
> be sufficient to make calls to wsman provider?

openwsman has a client and a server part. The bindings are
client-side, so you'd need the python-bindings plus openwsman-client
to e.g. talk to winrm.

> 3. Is there any standard wsdl exposed to support wsman operations? Does each WSMAN provider exposes any wsdl file?

Not that I know of. Check at www.dmtf.org for eventually published
wsdl files.

> 4. Is there any proxy utility available to capture traffic between client and target managed entity? (ex: like tcpmon for SOAP)

You can use the "debug" facility to increase openwsman debug level.
Additionally, Openwsman::ClientOptions provides 'set_dump_request()'
which dumps the outgoing SOAP request.

> 5. Can these python bindings be used to talk to any wsman implementations like winrm etc or limited to any providers?

openwsman should be compatible to the released WS-Management specs
(modulo bugs ;-)). It has been tested against winrm and Intels iAMT
chipset (see http://www.openamt.org/).

Klaus
---
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Openwsman-devel mailing list
Openwsman-devel@...
https://lists.sourceforge.net/lists/listinfo/openwsman-devel

Re: Help to start wsman with Python

by Klaus Kaempf :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

* Ravi Papisetti -X (rpapiset - HCL at Cisco) <rpapiset@...> [Oct 27. 2009 18:11]:
> Thanks Klaus.
>
> Where can I get " python-bindings plus openwsman-client".

Follow the link from http://www.openwsman.org/openwsman-220-released
This will download the openwsman 2.2.0 release tarball. Extract it and
build with 'cmake' (preferred) or autotools.

There are also binary package available (e.g. through http://build.opensuse.org)
but I would suggest building from source so you can quickly apply
bugfixes.

>
> Does "http://www.openwsman.org/trac/browser/pywsman/trunk" has both client and bindings?

'pywsman' is an old release of python-only bindings for openwsman.
Look at http://www.openwsman.org/trac/browser/openwsman/trunk/bindings
for the current version of SWIG (www.swig.org) generated bindings.

Klaus
---
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Openwsman-devel mailing list
Openwsman-devel@...
https://lists.sourceforge.net/lists/listinfo/openwsman-devel