Rex::Hardware - Base Class for hardware / information gathering
This module is the base class for hardware/information gathering.
use Rex::Hardware; my %host_info = Rex::Hardware->get(qw/ Host /); my %all_info = Rex::Hardware->get(qw/ All /);
Returns a hash with the wanted information.
task "get-info", "server1", sub { %hw_info = Rex::Hardware->get(qw/ Host Network /); };
Or if you want to get all information
task "get-all-info", "server1", sub { %hw_info = Rex::Hardware->get(qw/ All /); };
Available modules:
To install Rex, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Rex
CPAN shell
perl -MCPAN -e shell install Rex
For more information on module installation, please visit the detailed CPAN module installation guide.