SIMPLE SOLUTIONS

REX::HARDWARE(3PM) - Linux man page online | Library functions

Base Class for hardware / information gathering.

Chapter
2018-02-01
Rex::Hardware(3pm) User Contributed Perl Documentation Rex::Hardware(3pm)

NAME

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

DESCRIPTION

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
perl v5.26.1 2018-02-01 Rex::Hardware(3pm)
Download raw manual
Index User Contributed Perl Documentation (+23303) perl v5.26.1 (+10548) № 3 (+68044)
Go top