Project

arpdb

0.0
No commit activity in last 3 years
No release in over 3 years
This is VERY raw, version 1.0.0 is expected to be first usable implementation.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
>= 0
>= 0
~> 10.0
>= 0

Runtime

~> 1.2
 Project Readme

Build Status Gem Version Coverage Status Code Climate

Arpdb

Arpdb is a Ruby gem for querying SNMP-enabled network devices for their ARP database.

Installation

Add this line to your application's Gemfile:

gem 'arpdb'

And then execute:

$ bundle

Or install it yourself as:

$ gem install arpdb

Usage

require 'arpdb'
include Arpdb

hosts = %w(10.40.5.1 10.43.5.1)
community = 'public'

adb = Arp.new( hosts.collect { |host| SNMPTransport.new(host, community) } ).scan

puts adb.mac_to_ip "7a70dec81b02"
puts adb.ip_to_mac "172.27.50.2"

puts adb.locate_mac "7a70dec81b02"
puts adb.locate_ip "172.27.50.2"

adb.rescan

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rspec spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/jkvalk/arpdb. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.