https://github.com/guerrerocarlos/ubnt-discover
Ubiquiti (ubnt.com) devices discovery for the cli
https://github.com/guerrerocarlos/ubnt-discover
Last synced: about 2 months ago
JSON representation
Ubiquiti (ubnt.com) devices discovery for the cli
- Host: GitHub
- URL: https://github.com/guerrerocarlos/ubnt-discover
- Owner: guerrerocarlos
- Created: 2016-06-11T21:20:34.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-15T20:27:31.000Z (about 9 years ago)
- Last Synced: 2025-04-03T06:42:07.431Z (3 months ago)
- Language: JavaScript
- Size: 17.6 KB
- Stars: 25
- Watchers: 4
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# ubnt-discover [](https://travis-ci.org/guerrerocarlos/ubnt-discover)
> List ubiquiti/ubnt devices in your network right from the cli
Unofficial fork of the mechanism used by the [official chrome extension](https://chrome.google.com/webstore/detail/ubiquiti-device-discovery/hmpigflbjeapnknladcfphgkemopofig)
## Install
```
$ npm install --global ubnt-discover
```## Usage
```
$ ubnt-discover --helpDiscover 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](https://carlosguerrero.com)