0.0
No release in over 3 years
Low commit activity in last 3 years
A Simpe Ping Client for Ruby.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
~> 10.0
~> 3.0
 Project Readme

Overview

A Simpe Ping(ICMP) Client for Ruby. https://rubygems.org/gems/simple_ping

How to use

※ Need root privileges to run.

require "simple_ping"

ping_client = SimplePing::Client.new(src_ip_addr: "192.168.1.100")
ping_client.exec(dest_ip_addr: "192.168.1.101")

Specification

  • Number of executions: 1
  • Timeout Seconds: 10s
  • Does not support retries
  • Confirmed the operation with Ruby 2.7.1

What you can do

  • Return the success or failure of the ping (ICMP) result with true/false
  • Destination is IP address

What you can not do now

  • Addressing by FQDN
  • Retry
  • Customized transmission data (ID specification, data section specification, etc.)
  • Etc., etc

License

MIT