Constructor that takes a hash argument
containing key-value pairs.
The following example shows
the key-value pair syntax.
$client = WSMan::GenericOps->new(( address => 'http://www.abc.com/',
port => '80',
path => 'wsman',
username => 'wsman',
password => 'secret',
namespace => 'root/cimv2', #optional
timeout => ‘60’ #optional
));
Arguments
The constructor has the following arguments.
|
|
address
|
URL of the
WS-Management server. Specify the transport protocol by adding the
http prefix for HTTP (basic user-password
authentication) or the
https prefix for HTTP with SSL encryption.
|
port
|
Port on which
WS-Management listens for requests.
|
path
|
Path to the
WS-Management server. The path is combined with the address and port arguments
to form the complete URL of the WS-Management server in
http://address:port/path order.
|
username
|
User name for the
WS-Management server.
|
password
|
Password for the
WS-Management server.
|
namespace
|
Default CIM namespace.
Default is
root/cimv2.
If the namespace is not
root/cimv2, you
must pass in the namespace of the class in this argument.
|
timeout (optional)
|
Timeout for the HTTP
request, in case of slow servers.
|