1Rex::Hardware(3)      User Contributed Perl Documentation     Rex::Hardware(3)
2
3
4

NAME

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

DESCRIPTION

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

SYNOPSIS

12        use Rex::Hardware;
13
14        my %host_info = Rex::Hardware->get(qw/ Host /);
15        my %all_info  = Rex::Hardware->get(qw/ All /);
16

CLASS METHODS

18   get(@modules)
19       Returns a hash with the wanted information.
20
21        task "get-info", "server1", sub {
22          %hw_info = Rex::Hardware->get(qw/ Host Network /);
23        };
24
25       Or if you want to get all information
26
27        task "get-all-info", "server1", sub {
28          %hw_info = Rex::Hardware->get(qw/ All /);
29        };
30
31       Available modules:
32
33       Host
34       Kernel
35       Memory
36       Network
37       Swap
38       VirtInfo
39
40
41
42perl v5.30.0                      2019-07-24                  Rex::Hardware(3)
Impressum