Net::OpenNebula::Host - Access OpenNebula Host Information.
Query the Hoststatus of an OpenNebula host.
use Net::OpenNebula; my $one = Net::OpenNebula->new( url => "http://server:2633/RPC2", user => "oneadmin", password => "onepass", ); my ($host) = grep { $_->name eq "one-sandbox" } $one->get_hosts(); for my $vm ($host->vms) { ... }
To install Net::OpenNebula, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::OpenNebula
CPAN shell
perl -MCPAN -e shell install Net::OpenNebula
For more information on module installation, please visit the detailed CPAN module installation guide.