UniFi Device Search tool
Are you managing multiple sites on one or more UniFi controllers and have you ever spent too much time searching for a specific device? Or did you ever attempt to export the details and serial numbers of the devices you manage to an Excel sheet? That’s where our UniFi device search tool comes in handy and saves you time.
The UniFi Device Search tool was specifically developed to quickly find a single UniFi device, or a group of devices, across all sites on a UniFi controller by using multiple filters and a search option. The results can quickly be exported to CSV and Excel.
Please keep the following in mind:
- currently, versions 4.X.X, 5.X.X, and 6.X.X of the UniFi Controller software and UniFi OS consoles are supported (version 6.5.50 has been confirmed to work)
- we are looking to continuously add/improve the functionality and usability of this tool so suggestions/comments are very welcome. Please email us (email@example.com) or ping us on the Ubiquiti Community forums using @slooffmaster to share your ideas/questions.
- please read the Security Notice below before installing this tool!
Upgrading from 1.X to 2.X
Because the directory structure and the structure of the configuration file have changed, we recommend performing a fresh install when upgrading from 1.X to 2.X.
The UniFi Device Search tool offers the following features:
- quickly find a single UniFi device or a group of UniFi devices, across all sites on a UniFi controller by using multiple filters and the search option
- results can quickly be exported to CSV and Excel
- toggle column visibility
- reset all filters and search strings with a single button click
- easily switch between controllers that are set up in your configuration file
- switch between the default Bootstrap theme and the Bootswatch themes
- responsive UI which allows the tool to work well on mobile devices as well as large screens
- very easy setup with minimal dependencies
- debug mode to troubleshoot cURL connections (set
truein the config file to enable debug mode)
- a web server with PHP (version 7.2.5 or higher) and cURL (php-curl package) installed (confirmed to work on Apache with PHP Version 7.2.5 and cURL 7.60.0 and up to PHP 7.4.9 and cURL 7.60.0)
- network connectivity between this web server and the server (and port) where the UniFi controller is running (in case you are seeing errors, please check out this issue)
- clients using this tool should have internet access because several CSS and JS files are loaded from public CDNs.
Installation of this tool is quite straightforward. Simply download the zip file and unzip it in your directory of choice somewhere in the folder structure of your web server, then follow the configuration steps below.
- credentials for access to the UniFi Controller API need to be configured in a copy of the file named
config/config-template.phpwhich should be copied/renamed to
config/config.phpbefore using the UniFi Device Search tool
- you can store multiple controller configurations in the
- please refer to the comments in the
config/config-template.phpfile for further instructions
- after following these steps, you can open the tool in your web browser of choice (assuming you installed it in the root folder of your web server as suggested above) by going to this url:
http://<server IP address or FQDN>/<folder where you installed the tool>/
We highly recommend enabling the user name/password authentication feature by creating a
config/users.php based on the included
config/users-template.php file. When creating passwords and their SHA512 hashes for entry in the
config/users.php file, please make sure to use strong random passwords.
Please refer to the instructions in the
config/users-template.php file for further details
It is your own responsibility to implement the necessary additional controls in securing this application and preventing unwanted access.
- when a table column contains very long strings when using a wide browser window, column contents may overlap. Adjusting the browser window width sometimes fixes this.
- Bootstrap 4 https://getbootstrap.com
- Bootswatch themes https://bootswatch.com/
- Font-awesome icons https://fontawesome.github.io/Font-Awesome
- jQuery https://jquery.com
- jQuery Datatables https://datatables.net/
- JSZip https://stuk.github.io/jszip/
- lodash https://lodash.com
- nanobar https://github.com/jacoborus/nanobar
- Select2 https://select2.org/
- Moment.js https://momentjs.com/
- pdfmake http://pdfmake.org/
- Twig template engine https://twig.symfony.com
- UniFi Controller API client class https://github.com/Art-of-WiFi/UniFi-API-client