DOKK / manpages / debian 11 / rex / Rex::Commands::Inventory.3pm.en
Rex::Commands::Inventory(3pm) User Contributed Perl Documentation Rex::Commands::Inventory(3pm)

Rex::Commands::Inventory - Get an inventory of your systems

With this module you can get an inventory of your system.

All these functions will not be reported. These functions don't modify anything.

 use Data::Dumper;
 task "inventory", "remoteserver", sub {
   my $inventory = inventory();
   print Dumper($inventory);
 };

This function returns a hashRef of all gathered hardware. Use the Data::Dumper module to see its structure.

 task "get_inventory", sub {
   my $inventory = inventory();
   print Dumper($inventory);
 };
2021-03-05 perl v5.32.1