Rex::Hardware(3)
NAME π
Rex::Hardware(3) is the base class for hardware / information gathering, straight outta the User Contributed Perl Documentation corner of the universe. It's giving foundation energy, bestie. π«Ά
DESCRIPTION β¨
okay so this module is literally the base class for hardware/information gathering. That's the whole vibe. No cap. π
SYNOPSIS π¦
use Rex::Hardware;
my %host_info = Rex::Hardware->get(qw/ Host /);
my %all_info = Rex::Hardware->get(qw/ All /);
CLASS METHODS π
get(@modules) πΈ
Returns a hash with the wanted information. Slay. β¨
Like, if you want specific info from a server, you do this:
task "get-info", "server1", sub {
%hw_info = Rex::Hardware->get(qw/ Host Network /);
};
Or if you want to get all information, no crumbs left:
task "get-all-info", "server1", sub {
%hw_info = Rex::Hardware->get(qw/ All /);
};
Available modules:
HostKernelMemoryNetworkSwapVirtInfo
π that's the whole page! shoutout to perl v5.42.3, dated 2023-08-05. periodt. π
π¦ where this page comes from
- nixos 26.05: perl5.42.3-Rex 1.14.3
- nixpkgs unstable: perl5.42.3-Rex 1.14.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms