Need a quote? A specific configuration, a project? Contact us on 02 51 99 13 03 .

Deploy MILESIGHT Devicehub, a deployment management solution for your MILESIGHT devices

Déployer MILESIGHT Devicehub, une solution de gestion de déploiement de vos appareils MILESIGHT

Equipe Sparwan |

I - Prerequisites

Without WINSCP or ftp/sftp client:

  • A machine (virtual or not) under Ubuntu 20.04 desktop version

With WINSCP or ftp/sftp client:

  • A machine (virtual or not) under Ubuntu 20.04 server version
  • A Windows machine with the following software:
    • WinSCP, filezilla… (ftp/sftp client)
    • Putty, cmd… (ssh client)

II - Installation

  • Without WINSCP or ftp/sftp client:

1 - Go to the Ubuntu machine and download the following package:

https://www.milesight-iot.com/software-download/

2 - Run the following command:

  • sudo apt update && sudo apt -y install net-tools
  • sudo apt install -y ./milesight_device_hub_x.xx-r1_amd64.deb

This will update the machine, install net tools (package helping with network configuration) and launch the DeviceHub installation by installing and configuring all the necessary dependencies. During the installation you will simply be asked to indicate which network interface to use (in my example: ens18).

3 - Once the installation is complete, go to the installation web page ( http://localhost/install/ ):

In administrator account : simply enter the administrator credentials you want to create to access DeviceHub

In outgoing mail smtp : enter or not your mail server if you have one.

  • With WINSCP or ftp/sftp client:

1 - Go to the Ubuntu machine and download the following package:

https://www.milesight-iot.com/software-download/

2 - Connect to the server via the ftp client (in my case filezilla)

(Remember to configure or disable the firewall correctly so that the connection can be made).

3 - Upload DeviceHub to the server

4 - Connect to the server in shh

(Run: sudo apt update && sudo apt -y install net-tools if needed).

5 - Go to the correct directory (in my case /home/user)

(As you can see here, I use the "ls" command to display the files present in the directory. Remember to always check, otherwise you will not be able to start the installation).

6 - Update and launch device hub installation

  • sudo apt update
  • sudo apt -y install ./milesight_devicehub_3.0.1-r1_amd64.d



During installation, you will be asked to enter the correct network card.

In my case it is the “ens18” interface.

After this, the installation will complete itself in 5 minutes maximum.

7 - Go to the web interface to finish the installation, to do this go to your

Windows machine and type " https://ip/install /" which for me gives " https://10.0.0.57/install/ »

In administrator account : simply enter the administrator credentials you want to create to access DeviceHub.

In outgoing mail smtp : enter or not your mail server if you have one.

III - Device usage and provisioning

1 - Go to the router (personally in web interface on a milesight UR35) and go to system>device management

  • In server address: the IP of the device hub server
  • In activation method: choose By Account Name

Next, enter the information of the root user you created earlier in Account Name and Password.

Press connect (remember to connect the router to the internet beforehand) and the connection will be made.

2 - Go to the devicehub web interface in device>my device and you should be able to see your device added.

3 - Once your devices are connected, select them then click on provisioning .

Provisioning will allow us to upload a router configuration to other routers.

To deploy a configuration, simply select a device and click deploy .

You can of course simply use provisioning to change the configuration of a router by editing the settings and clicking deploy while having selected the correct router beforehand.