0.0.2 • Published 8 years ago

@hke/device-tracker v0.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
8 years ago

@hke/device-tracker

Scans the network for devices and checks if there is any device matching given conditions. Outputs the result in json format.

Installation

npm i -g @hke/device-tracker

Usage

tracker

Options

tracker --help

--config/-c

Specifies which config file is used. Default looks for a config.json in current working directory.

Result

{
  "devices": [
    {
      "status": "up",
      "mac": null,
      "ipv4": "192.168.178.1",
      "hostname": "fritz.box"
    }
  ],
  "found": true,
  "search": [
    {
      "hostname": "fritz.box"
    }
  ]
}

Requirements:

  • nmap in $PATH variable
  • root privileges for MAC addresses