Introducing the Miab gem
Usage
require 'miab'
puts Miab.new("temperature", domain: 'home', user: 'james',
target: %w(pero primo tito olga fortina ottavia aldo sol),
password: 'secret').cast
The above example uses the Miab gem to log into each Raspberry Pi with the username james and with the same password for each host. It then queries the CPU temperature for each Pi.
Output
{"pero.home"=>{:temperature=>"44008"}, "primo.home"=>{:temperature=>"45084"}, "tito.home"=>{:temperature=>"48312"}, "olga.home"=>{:temperature=>"47616"}, "fortina.home"=>{:temperature=>"49230"}, "ottavia.home"=>{:temperature=>"42236"}, "aldo.home"=>{:temperature=>"44388"}, "sol.home"=>{:temperature=>"41698"}}
Resources
miab ssh gem netssh rpi temperature