wsman1wsmanopenwsman command-line client/usr/bin/wsmanactionresource uriDescription
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 ActionsgetCreates 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.putCreates 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.invokeCreates 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.enumerateCreates 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.identifyCreates 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=pathURL 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=hostnameHostname of the remote machine.-P port, --port=portPort 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|gssAuthentication 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=valA key/value pair to pass properties for custom methods and put action.-C config file, --config-file=config fileAlternate configuration file.-O filename, --out-file=filename
Redirect output to a file instead of console.
-V, --noverifypeerDo not verify peer certificate with SSL connectionsEnumeration OptionsRequest flags and optionsCIM OptionsTest and Internal Options