XAS::Lib::WS::Base - A class for the XAS environment
use XAS::Lib::WS::Base; my $wsman = XAS::Lib::WS::Base->new( -username => 'username', -password => 'password', -url => 'http://windowserver:5985/wsman', -auth_method => 'any', ); my ($protocol, $vendor, $version) = $wsman->identify(); printf("vendor: %s\n", $vendor); printf("version: %s\n", $version); printf("protocol: %s\n", $protocol);
This package initilaizes and provides some basic methods for using WS-Manage functionality.
This class inherits from XAS::Lib::Curl::HTTP and uses the same parameters.
This method makes an identify call to the server and returns the following values.
$vendor - the vendor of the remote servers $protocol - the protocol the remote server is using $version - the version of that protocol
my ($protocol, $vendor, $version) = $wsman->indentify;
This method returns TRUE or FALSE on wither it can connect to the remote server.
Kevin L. Esteb, <kevin@kesteb.us>
Copyright (c) 2012-2016 Kevin L. Esteb
This is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. For details, see the full text of the license at http://www.perlfoundation.org/artistic_license_2_0.
To install XAS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XAS
CPAN shell
perl -MCPAN -e shell install XAS
For more information on module installation, please visit the detailed CPAN module installation guide.