wsman 1 wsman openwsman command-line client /usr/bin/wsman action resource uri Description Openwsman provides a command-line tool, wsman, to perform basic operations on the command-line. These operations include Get, Put, Invoke, Identify, Delete, Create, and Enumerate. The command-line tool also has several switches to allow for optional features of the WS-Management specification and Testing. Options All wsman operations require and action and a group of options. The resource uri is required for the Identify action, otherwise it is required for all actions. Support Actions get Creates and sends a Get request to the specified remote system. In most cases this action requires a resource uri with a set of selectors which can be specfied as query paramters in the URI (See below for examples). The result of this action is an XML output of the envelope with the resource and its properties. put Creates and sends a Put request to the specified remote system. In most cases this action requires a resource uri with a set of selectors which can be specfied as query paramters in the URI (See below for examples). This action also requires input which can be specified either as properties or as an XML input representing the new resource. The result of this action is an XML output of the envelope with the new resource and its properties. invoke Creates and sends a request with a custom action to the specified remote system. In most cases this action requires a resource uri with a set of selectors which can be specfied as query paramters in the URI (See below for examples). This action also requires input which can be specified either as properties or as an XML input representing the arguments of the custom action. The result of this action is an XML output of the envelope with the output of the custom action. enumerate Creates and sends an Enumeration request to the specified remote system. This action also peforms Pull actions using the enumeration context provided by the enumeration response and following pull responses. The result of this action is an XML output of the envelope with the resource or resources and its/their properties. identify Creates and sends an Identify request to the specified remote system. The result of this action is an XML output with properties of the services defined by the specification. Basic Startup Options -u username, --username username User name -c filename, --cafile=filename Certificate file for SSL connections -g path, --path=path URL path of the service, for example /wsman. -p password, --password=password User password. -J filename, --input=filename File with resource for Create and Put operations in XML, can be a SOAP envelope -d 1-6, --debug=1-6 Debug level -h hostname, --hostname=hostname Hostname of the remote machine. -P port, --port=port Port of the service -X proxy, --proxy=proxy Remote proxy address -Y user:pass, --proxyauth=user:pass Remote proxy credentials -y basic|digest|gss, --auth=basic|digest|gss Authentication method to be used. By default the method is selected automatically depending on the challange from the server. This options is used to force an authentication method. -a custom method, --method=custom method Custom method name. -k key=val, --prop=key=val A key/value pair to pass properties for custom methods and put action. -C config file, --config-file=config file Alternate configuration file. -O filename, --out-file=filename Redirect output to a file instead of console. -V, --noverifypeer Do not verify peer certificate with SSL connections Enumeration Options Request flags and options CIM Options Test and Internal Options