table of contents
other versions
- buster 1.6.0-1
- buster-backports 1.12.2-1~bpo10+1
- testing 1.13.2-1
- unstable 1.13.3-1
Rex::Hardware(3pm) | User Contributed Perl Documentation | Rex::Hardware(3pm) |
NAME¶
Rex::Hardware - Base Class for hardware / information gatheringDESCRIPTION¶
This module is the 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 /);
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
2020-09-18 | perl v5.28.1 |