logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Rex::Hardware - Base Class for hardware / information gathering

Class Methods

get(@modules)
       Returns a hash with the wanted information.

        task "get-info", "server1", sub {
          %hw_info = Rex::Hardware->get(qw/ Host Network /);
        };

       Or if you want to get all information

        task "get-all-info", "server1", sub {
          %hw_info = Rex::Hardware->get(qw/ All /);
        };

       Available modules:

       Host
       Kernel
       Memory
       Network
       Swap
       VirtInfo

perl v5.40.0                                       2025-02-06                                 Rex::Hardware(3pm)

Description

       This module is the base class for hardware/information gathering.

Name

       Rex::Hardware - Base Class for hardware / information gathering

Synopsis

        use Rex::Hardware;

        my %host_info = Rex::Hardware->get(qw/ Host /);
        my %all_info  = Rex::Hardware->get(qw/ All /);

See Also