ubnt-discover

0.0.5 • Public • Published

ubnt-discover Build Status

List ubiquiti/ubnt devices in your network right from the cli

Unofficial fork of the mechanism used by the official chrome extension

Install

$ npm install --global ubnt-discover

Usage

$ ubnt-discover --help

Discover ubiquiti devices on the network

 Usage
     $ ubnt-discover
 Options
     -v1, Search for V1 devices
     -v2, Search for V2 devices
     --notable Don't show as a table
 Examples
     $ ubnt-discover -v2
$ ubnt-discover
╔═════════════╤═════════════╤════════════════╤═══════════════════╤═══════════════════════════════════════╗
║ Device Type │ Name        │ Host           │ Mac               │ Firmware                              ║
╟─────────────┼─────────────┼────────────────┼───────────────────┼───────────────────────────────────────╢
║ NVR         │ UniFi-Video │ 192.168.10.XXX │ 68217XXXXX523XXXX │ NVR.x86_64.v3.2.2.8ff52ec.160415.0002 ║
╚═════════════╧═════════════╧════════════════╧═══════════════════╧═══════════════════════════════════════╝
Waiting for more... (Ctrl+C to exit)

API

const ubnt = require('ubnt-discover');

Use the version of devices to search as the index, example:

ubnt['1']()

or

ubnt['2']()

The 'new' event will trigger when devices are found:

ubnt.events.on('new', function(device){
    console.log(device)
}

License

MIT © Carlos Guerrero

Readme

Keywords

none

Package Sidebar

Install

npm i ubnt-discover

Weekly Downloads

5

Version

0.0.5

License

ISC

Last publish

Collaborators

  • guerrerocarlos