SystemManagement::GSP - Perl extension for GSP remote system management
use SystemManagement::GSP; my $manage=SystemManagement::GSP->new( host => 'hostname' ); my $rc = $manage->is_powered_on(); if (!defined($rc)) { die $manage->errmsg(); } elsif ($rc==0) { $manage->power_on(); } else { $manage->power_off(); }
SystemManagement::GSP is used to control GSP-based telnet interfaces found on Hewlett-Packard Management Processors. It can be used to control system power on the attached system.
Creates the management object. Valid parameters are:
host - IP or hostname to connect to (required) user - User to authenticate as (default: "Admin") password - Password to authenticate with (default: "Admin") timeout - Number of seconds to wait while connecting (default: 5) debug - Whether or not to report debugging info (default: 0) port - Port to connect to (default: "telnet(23)")
Reports any textual error messages from a previous function call that failed with an "undef" value.
Performs connection establishment, and returns "undef" if the connection fails. This is called automatically by any function that requires a session be established.
Returns "undef" on error, or "1" if power was turned on (or if power was already on).
Returns "undef" on error, or "1" if power was turned off (or if power was already off).
Returns "undef" on error, or "1" if power was cycled. Power can only be cycled if power is on to start with.
Returns "undef" on error, or the power state of the system.
None by default.
PowerEdge::Rac SystemManagement::ASMA
PowerEdge::Rac
SystemManagement::ASMA
Kees Cook, OSDL <kees@osdl.org>
Copyright (C) 2004 by Kees Cook, OSDL <kees@osdl.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.1 or, at your option, any later version of Perl 5 you may have available.
To install SystemManagement::GSP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SystemManagement::GSP
CPAN shell
perl -MCPAN -e shell install SystemManagement::GSP
For more information on module installation, please visit the detailed CPAN module installation guide.