Skip to content

guerrerocarlos/ubnt-discover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Ubiquiti (ubnt.com) devices discovery for the cli

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published