Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Rex::Hardware(3)      User Contributed Perl Documentation     Rex::Hardware(3)

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.32.0			  2020-08-05		      Rex::Hardware(3)

NAME | DESCRIPTION | SYNOPSIS | CLASS METHODS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Rex::Hardware&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help