ubnt-discover
Discover ubiquiti/ubnt devices on the network
Last updated 3 years ago by guerrerocarlos .
ISC · Original npm · Tarball · package.json
$ cnpm install ubnt-discover 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.5                                ...           latest (3 years ago)

4 Versions

  • 0.0.5                                ...           3 years ago
  • 0.0.4                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 1
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |