NAME
Rex::Commands::Gather - Hardware and Information gathering
DESCRIPTION
With this module you can gather hardware and software information.
SYNOPSIS
operating_system_is("SuSE");
EXPORTED FUNCTIONS
- operating_system_is($string)
-
Will return 1 if the operating system is $string.
task "is_it_suse", "server01", sub { if( operating_system_is("SuSE") ) { say "This is a SuSE system."; } };
- network_interfaces
-
Return an HashRef of all the networkinterfaces and their configuration.
task "get_network_information", "server01", sub { my $net_info = network_interfaces(); };
- memory
-
Return an HashRef of all memory information.
task "get_memory_information", "server01", sub { my $memory = memory(); };