Rex::C...entory(3pm)
π Rex::Commands::Inventory β aka Rex::C...entory(3pm) π
okay bestie, so this is a page from the User Contributed Perl Documentation and it's literally all about getting a peek at what's actually living on your machines. no cap.
β¨ NAME β¨
Rex::Commands::Inventory β get an inventory of your systems π¦
π DESCRIPTION π
With this module you can get an inventory of your system. it's giving "tell me everything you own" energy and honestly? obsessed. π
okay and here's the important part, so listen up:
- all these functions will not be reported π
- these functions don't modify anything π ββοΈ
so like, they're safe. they're read-only. they're the friend who just looks and doesn't touch. π«Ά
πΈ 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 β like, it's the magnifying glass for the vibe check πβ¨
task "get_inventory", sub {
my $inventory = inventory();
print Dumper($inventory);
};
π heads up bestie: the structure is a hashRef, so if you justData::Dumperis your bestie here. periodt.
and that's the whole page!! short and slay β¨
written for perl v5.40.1 and dated 2025-10-03 β mwah, love u, go inventory your servers πππ¦π
π¦ where this page comes from
- ubuntu resolute: rex 1.16.1-1 Β· Apache-2.0
- ubuntu stonking: rex 1.16.1-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms