---
name: "Rex::Commands::Inventory"
section: "3pm"
platform: "linux"
package: "rex"
version: "1.16.0-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Rex::Commands::Inventory"
---

# Rex::Commands::Inventory(3pm)

Get an inventory of your systems

## NAME

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

## DESCRIPTION

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

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

## SYNOPSIS

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

## EXPORTED FUNCTIONS

### 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);
 };
```
