From 73a26df5cce6752036d506a32a0832f52760d039 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Wed, 15 Apr 2009 06:19:02 +0000 Subject: [PATCH 01/54] Initialize branch F-11 for wsmancli --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..25c7708 --- /dev/null +++ b/branch @@ -0,0 +1 @@ +F-11 From 9dd9b23dc71f985aa5e073ad1a18691b1b6f002b Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Mon, 27 Jul 2009 07:29:21 +0000 Subject: [PATCH 02/54] - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild --- wsmancli.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wsmancli.spec b/wsmancli.spec index 6a3cc10..e606e65 100644 --- a/wsmancli.spec +++ b/wsmancli.spec @@ -1,6 +1,6 @@ Name: wsmancli Version: 2.1.0 -Release: 2%{dist} +Release: 3%{dist} License: BSD Url: http://www.openwsman.org/ Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 @@ -35,6 +35,9 @@ rm -rf %{buildroot} %doc COPYING README %changelog +* Mon Jul 27 2009 Fedora Release Engineering - 2.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + * Wed Feb 25 2009 Fedora Release Engineering - 2.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild From a3578169be12e06aa89e2a93a4304f028188093e Mon Sep 17 00:00:00 2001 From: Praveen K Paladugu Date: Thu, 12 Nov 2009 18:10:57 +0000 Subject: [PATCH 03/54] Linked pthread in a Makefile to prevent build failures. --- missing-pthread-symbols.patch | 12 ++++++++++++ wsmancli.spec | 6 +++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 missing-pthread-symbols.patch diff --git a/missing-pthread-symbols.patch b/missing-pthread-symbols.patch new file mode 100644 index 0000000..79da4b3 --- /dev/null +++ b/missing-pthread-symbols.patch @@ -0,0 +1,12 @@ +diff -up wsmancli-2.1.0/examples/cpp/Makefile.in.old wsmancli-2.1.0/examples/cpp/Makefile.in +--- wsmancli-2.1.0/examples/cpp/Makefile.in.old 2009-11-06 10:29:49.000000000 -0600 ++++ wsmancli-2.1.0/examples/cpp/Makefile.in 2009-11-06 10:29:20.000000000 -0600 +@@ -158,7 +158,7 @@ target_alias = @target_alias@ + top_builddir = @top_builddir@ + top_srcdir = @top_srcdir@ + LDADD = \ +- -lwsman -lwsman_clientpp ++ -lwsman -lpthread -lwsman_clientpp + + EnumInstance_SOURCES = \ + EnumInstance.cpp diff --git a/wsmancli.spec b/wsmancli.spec index e606e65..d54e08e 100644 --- a/wsmancli.spec +++ b/wsmancli.spec @@ -1,6 +1,6 @@ Name: wsmancli Version: 2.1.0 -Release: 3%{dist} +Release: 4%{dist} License: BSD Url: http://www.openwsman.org/ Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 @@ -8,6 +8,7 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXXX) Group: Applications/System BuildRequires: openwsman-devel >= 2.1.0 pkgconfig curl-devel Requires: openwsman curl +Patch0: missing-pthread-symbols.patch Summary: WS-Management-Command line Interface %description @@ -16,6 +17,7 @@ systems using Web Services Management protocol. %prep %setup -q +%patch0 -p1 %build %configure --disable-more-warnings @@ -35,6 +37,8 @@ rm -rf %{buildroot} %doc COPYING README %changelog +* Fri Nov 6 2009 Praveen K Paladugu - 2.1.0-4 +- Missing symbols from pthread library. * Mon Jul 27 2009 Fedora Release Engineering - 2.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild From f2d154b2dedd2a8990462b7eff5ca94391ee79c4 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 25 Nov 2009 22:43:17 +0000 Subject: [PATCH 04/54] Fix typo that causes a failure to update the common directory. (releng #2781) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 402db64..c888df5 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ # Makefile for source rpm: wsmancli -# $Id$ +# $Id: Makefile,v 1.1 2008/10/11 00:15:09 toshio Exp $ NAME := wsmancli SPECFILE = $(firstword $(wildcard *.spec)) define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) From 3d1d6dcddc5cd878ccf2b1316e1588c6340d3662 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 26 Nov 2009 01:19:09 +0000 Subject: [PATCH 05/54] Fix typo that causes a failure to update the common directory. (releng #2781) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 402db64..c888df5 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ # Makefile for source rpm: wsmancli -# $Id$ +# $Id: Makefile,v 1.1 2008/10/11 00:15:09 toshio Exp $ NAME := wsmancli SPECFILE = $(firstword $(wildcard *.spec)) define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) From 7410d48da041a125ae20184afd52b632d24d630f Mon Sep 17 00:00:00 2001 From: vcrhonek Date: Mon, 25 Jan 2010 13:51:31 +0000 Subject: [PATCH 06/54] Fix Source URL, Use tarball from upstream, Add COPYING, README and AUTHORS to sources (previously placed in the modified tarball) --- AUTHORS | 17 +++++ COPYING | 27 +++++++ README | 195 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 2 +- wsmancli.spec | 18 +++-- 5 files changed, 254 insertions(+), 5 deletions(-) create mode 100644 AUTHORS create mode 100644 COPYING create mode 100644 README diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..eb90a4e --- /dev/null +++ b/AUTHORS @@ -0,0 +1,17 @@ + +Maintainer: + Anas Nashif, Intel Corp. + +Developers: + Anas Nashif, Intel Corp. + Hou Liang, Intel Corp. + +Code originally from: + Eugene Yarmosh, Intel Corp. + +Contributions and Patches by: + Viktor Mihajlovski, IBM + Klaus Kaempf, Novell + + +If you think you name should be here and I forgot it, please let me know. diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..696121a --- /dev/null +++ b/COPYING @@ -0,0 +1,27 @@ +Copyright (C) 2004-2006 Intel Corp. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + - Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + - Neither the name of Intel Corp. nor the names of its + contributors may be used to endorse or promote products derived from this + software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL Intel Corp. OR THE CONTRIBUTORS +BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. diff --git a/README b/README new file mode 100644 index 0000000..1cddbac --- /dev/null +++ b/README @@ -0,0 +1,195 @@ +How to compile and run openwsman from Subversion? +=============================== + +After checking out the project from subversion run ./autoconfiscate in the TOP directory and +follow that by running ./configure . +If you download a packaged version, then there is no need to run ./autoconfiscate and you will +be able to run ./configure directly. + +Most likely you will need to install some of the packages, depending on the distribution +you are running. + +Packages and other software needed: + +- libxml2 +- sfcc (from the sblim project) +- swig and python for python binding support +- other development packages like autoconf, automake etc. + +After all packages are installed, compile everything and install. The server can run as +a daemon, which would require root access; But it can be run in the foreground with debugging +messages printed to stdout as well. This the help output when you run: + +% /usr/local/sbin/openwsmand --help +Usage: + openwsmand [OPTION...] WS-Management Server + +Help Options: + -?, --help Show help options + +Application Options: + -n, --no-plugins Do not load any plugins + -d, --debug Start daemon in foreground and turn on debugging + -s, --syslog=0-6 Set the verbosity of syslog output. + -c, --config-file= Alternate configuration file + + +Starting from version 0.1.1 a configuration file is needed. you can find an example in the +./etc directory. The configuration file has the following syntax: + +[server] +port = 8889 +#ssl_port = 8888 +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 +enum_idle_timeout = 5000 + +min_threads = 1 +max_threads = 1 + +#use_digest is OBSOLETED, see below. + +# +# Authentication backend for BASIC authentication. Default is to read a configuration file defined with 'basic_password_file' +# + +#basic_authenticator = libwsman_pam_auth.so +#basic_authenticator_arg = openwsman + + +[client] +port = 8889 +agent = openwsman 1.5.9 + +[cim] +default_cim_namespace = root/cimv2 + +# 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,Reef=http://reef.sblim.sf.net/wbem/wscim/1/cim-schema/2,CWS=http://cws.sblim.sf.net/wbem/wscim/1/cim-schema/2 + + +To be able to put the configuration files under /etc/openwsman, run the configure script +with the --sysconfdir option using the value /etc. If this option is not used, the default will +be under PREFIX (/usr/local/etc ). + +To run in SSL mode you need to enable the SSL port and create certificates and adapt the configuration +with the correct path to the files. + +To start the server in the foreground, run: + +% /usr/local/sbin/openwsmand -d + +You can also specify the configuration file to be used on the command line using the -c option. + + +On the client side, which has the following options + + % /usr/local/bin/wsman --help-all + +Usage: + wsman [Option...] + +Usage: + wsman [Option...] + +Help Options + -?, --help + --help-all Show help options + --help-enumeration Enumeration Options + --help-tests Test Cases + --help-cim CIM Options + --help-flags Request Flags + --help-event Subscription Options + +Enumeration + -m, --max-elements= Max Elements Per Pull/Optimized Enumeration + -o, --optimize Optimize enumeration results + -E, --estimate-count Return estimation of total items + -M, --enum-mode=epr|objepr Enumeration Mode + -U, --enum-context= Enumeration Context (For use with Pull and Release) + +Tests + -f, --from-file= Send request from file + -R, --print-request print request on stdout + -Q, --request Only output reqest. Not send it. + -S, --step Do not perform multiple operations (do not pull data when enumerating) + +CIM + -N, --namespace= CIM Namespace (default is root/cimv2) + -B, --binding-enum-mode=none|include|exclude CIM binding Enumeration Mode + -T, --cim-extensions Show CIM Extensions + -W, --references CIM References + -w, --associators CIM Associators + +Flags + -x, --filter= Filter + -D, --dialect= Filter Dialect + -t, --operation-timeout=