nckrse / net-fping

Net-fping is an fping wrapper that allows fast ping checks on multiple remote hosts

Home Page:https://rubygems.org/gems/net-fping

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Net::Fping

A ruby gem to interface with fping.

Usage

Pretty straight forward:

require 'net/fping'

alive = Fping.alive(["10.0.0.1", "10.0.0.2", "10.0.0.3"])
> ["10.0.0.1", "10.0.0.3"]

alive = Fping.dead(["10.0.0.1", "10.0.0.2", "10.0.0.3"])
> ["10.0.0.2"]

alive = Fping.alive_in_subnet("192.168.0.0/24")
> ["192.168.0.1", "192.168.0.100", "192.168.0.254"]

alive = Fping.alive_in_range("192.168.0.0", "192.168.0.200")
> ["192.168.0.1", "192.168.0.100"]

About

Net-fping is an fping wrapper that allows fast ping checks on multiple remote hosts

https://rubygems.org/gems/net-fping


Languages

Language:Ruby 100.0%