Rex::Commands::Inventory - Inventor your systems
With this module you can get an inventory of your system.
All these functions will not be reported. These functions don't change things.
use Data::Dumper; task "inventory", "remoteserver", sub { my $inventory = inventor(); print Dumper($inventory); };
This function returns an hashRef of all gathered hardware. Use the Data::Dumper module to see its structure.
task "get-inventory", sub { my $inventory = inventory(); print Dumper($inventory); };
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.