Module: discovery

A device discovery library for the Javascript Nashorn engine.

This library uses the "ping" and "arp" commands to discover devices connected to the local network. Command syntax is adjusted for OS differences.

It implements the discover(IPAddress) method required by the device discovery accessor, and returns a JSON object containing a list of device IP addresses, and names and MAC addresses when available.

Accessors overview: https://accessors.org/ Device discovery overview: http://www.terraswarm.org/testbeds/wiki/Main/DiscoverEthernetMACs

Author:
  • Elizabeth Latronico
Source: