Rex::Co...ventory(3)

πŸ“¦ version 1.14.3, in nixos 26.05, nixpkgs unstable

πŸ’– Rex::Commands::Inventory β€” get an inventory of your systems πŸ’–

okay so this page lives in the User Contributed Perl Documentation manual, section 3 (that's the Rex::Co...ventory(3) line up top, the title got squished by the terminal, iykyk). Bestie, it's honestly a small one and I'm obsessed with how chill it is.

✨ NAME ✨

Rex::Commands::Inventory β€” literally just here to hand you an inventory of your systems 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

With this module you can get an inventory of your system. That's the whole vibe. No cap.

A couple things you should know, and I'm being serious for one sec: all these functions will not be reported. Like, they don't show up in the reporting, okay? And they don't modify anything β€” they're read-only, they're the friend who comes over and doesn't touch your stuff πŸ’…

🌸 SYNOPSIS 🌸

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

That's the whole flow: pull the Data::Dumper module in, define a task called "inventory" that runs on "remoteserver", grab the inventory, dump it, and let it slay ✨

πŸ‘‘ EXPORTED FUNCTIONS πŸ‘‘

πŸŽ€ inventory

This function returns a hashref of all the gathered hardware. That's it, that's the function, main character energy fr fr. To actually see the structure, you use the Data::Dumper module β€” otherwise you're just staring at a hashref like 😭

task "get_inventory", sub {
  my $inventory = inventory();
  print Dumper($inventory);
};
πŸ’€ reminder: this function will not be reported, and it does not modify anything. Pure vibes, zero side effects.

and that's the page bestie, no more sections, go dump some hashes πŸ¦‹πŸ’œ

sign-off time πŸŽ€ β€” this little icon was brought to you by perl v5.42.3, dated 2023-08-05, from the User Contributed Perl Documentation collection. periodt βœ¨πŸ’…

πŸ“¦ where this page comes from