Introduction Milesight DeviceHub provides a high-efficency, low maintenance On-Premises solution to allow easily deployment of Milesight IoT devices across multiple locations, reducing complexity and increasing productivity. This guide will describe how to install DeviceHub program. (*Milesight routers and gateways compatibility are under development.)
Operation Guide Requirements Ubuntu Server DeviceHub Installation Package: downloaded from Milesight Website WinSCP Putty (or other SSH tool) DeviceHub Installation Note: Take “Devicehubv2_ubuntu22.04-1.0.1.tar.gz” as an example in providing the the commands below, please use the commands according to real installation package name.
Page 6
4. Log in the server via Putty or other SSH tools. 5. Ensure the network tool is installed in the server. You can type ifconfig to double check. If not found, execute apt install net-tools to install it. 6. Navigate to the path including DeviceHub installation package to unzip it: tar -zxvf Devicehubv2_ubuntu22.04-1.0.1.tar.gz...
Page 7
7. Navigate to the DeviceHub folder, execute the deploy script: Devicehubv2_ubuntu22.04-1.0.1 ./deploy.sh Select option 7 to install docker. If the server has already installed docker, skip this step. After installing, the following message will show. 8. Execute the deploy script again, select option 1 to install DeviceHub. After installing, the following message will appear.
Page 8
Users can also use command below to check if the DeviceHub is installed well. 9. After installing, log in the DeviceHub with IP address http://xx.xx.xx.xx. The default login info: Username: admin Password: password...
DeviceHub Uninstallation 1. Navigate to the DeviceHub folder, execute the deploy script: cd /var/lib/devicehubv2/ ./deploy.sh Select option 6 to uninstall the DeviceHub. After uninstalling, the following message will appear. Type “yes” to continue uninstalling docker or “no” to complete the devicehub uninstallation. Users can also use below command to check if the DeviceHub is removed.
Backup and Restore When transferring the DeviceHub program from one server to another, please refer below steps to backup the data from old server and restore it to the new server. 1. Navigate to the DeviceHub folder of old server, execute the deploy script: cd /var/lib/devicehubv2/ ./deploy.sh Select option 4 to backup the data.
5. Navigate to the DeviceHub folder of new server, execute the deploy script: cd /var/lib/devicehubv2/ ./deploy.sh Select option 5 to restore the data, type the path of backup data file, then click Enter to restore the data. Export Log DeviceHub program supports exporting logs for troubleshooting. 1.
cd /var/lib/devicehubv2/ ./deploy.sh Select option 3 to export the log files. After exporting, the following message will appear. 2. Export the log files via WinSCP or other tool: Services and Ports In order to ensure the secured communication, here are some ports for the services: Port Protocol Description...
Need help?
Do you have a question about the DeviceHub V2 and is the answer not in the manual?
Questions and answers