Project

miab

0.0
No commit activity in last 3 years
No release in over 3 years
Message in a bottle (MIAB) is designed to execute remote commands through SSH for system maintenance purposes.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.2.0, ~> 0.2
>= 6.1.0, ~> 6.1
 Project Readme

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