# How to compile and run openwsman from GIT ? After checking out the project from git, create a build directory with mkdir build cd into it cd build cmake .. make See `package/openwsman.spec.in` for running cmake in 'release' mode Most likely you will need to install some of the packages, depending on the distribution you are running. Pre-build (RPM) packages for many distributions are available at [the openSUSE build service](https://build.opensuse.org/package/show/systemsmanagement:wbem/openwsman) ## Packages and other software needed: * libxml2 * sblim-sfcc (from the sblim project) * swig and python for python binding support * other development packages like cmake, gcc, 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/sbin/openwsmand --help Usage: openwsmand [Option...] WS-Management Server Help Options -?, --help Application Options -S, --ssl Use SSL port -q, --version Display application version -d, --debug Start daemon in foreground and turn on debugging -s, --syslog=0-6 Set the verbosity of syslog output. -e, --enum-idle-timeout=default 100 Enumeration Idle timeout in secs -c, --config-file= Alternate configuration file -p, --pid-file= PID file -r, --subscription-repository-location= Subscription Repository Location -a, --auth-dir= Authentication plugin dir (testing) -b, --basic-password-file= Basic password file (testing) -P, --plugin-dir= Dispatcher plugins directory (testing) ### Running with SSL enabled openwsmand requires a certificate when running in SSL mode (`-S` option). This can be created by running the `owsmangencert.sh` script available in `./etc` (after build) resp. `/etc/openwsman` (after install). ## 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 = 5985 #ssl_port = 5986 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 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 = 5988 agent = openwsman 2.2.4 [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 ## Running openwsman server To start the server in the foreground, run: /usr/sbin/openwsmand -d You can also specify the configuration file to be used on the command line using the -c option. ## Running openwsman client `wsman` is the client command line tool for executing WSMAN requests against the openwsman server: /usr/bin/wsman --help-all 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=