Migrating devices to new Unifi controller

On a Windows server run this in an elevated cmd to open the ports that the controller requires for talking to the APs.

  • netsh advfirewall firewall add rule name=”Unifi Controller 8081″ dir=in action=allow protocol=TCP localport=8081
  • netsh advfirewall firewall add rule name=”Unifi Controller 8080″ dir=in action=allow protocol=TCP localport=8080
  • netsh advfirewall firewall add rule name=”Unifi Controller 8443″ dir=in action=allow protocol=TCP localport=8443
  • netsh advfirewall firewall add rule name=”Unifi Controller 8880″ dir=in action=allow protocol=TCP localport=8880
  • netsh advfirewall firewall add rule name=”Unifi Controller 8843″ dir=in action=allow protocol=TCP localport=8843
  • netsh advfirewall firewall add rule name=”Unifi Controller 3478″ dir=in action=allow protocol=TCP localport=3478
  • pause

To remove these firewall settings run these in elevated cmd

  • netsh advfirewall firewall delete rule name=”Unifi Controller 8081″
  • netsh advfirewall firewall delete rule name=”Unifi Controller 8080″
  • netsh advfirewall firewall delete rule name=”Unifi Controller 8443″
  • netsh advfirewall firewall delete rule name=”Unifi Controller 8880″
  • netsh advfirewall firewall delete rule name=”Unifi Controller 8843″
  • netsh advfirewall firewall delete rule name=”Unifi Controller 3478″
  • pause

1. Go to Settings > Site

2. Select the gray “Export Site” button in the bottom-right of the page. This will initiate the wizard.

3. In the first step, click “Download Backup File” to download the file that contains your configuration to be imported into the Controller you are migrating to.

4. Next, import this site into your new Controller. To do so, open up your second Controller, click “Current Site – (Site Name)” in top-right of the display. Within this drop-down box select “Import Site” as shown:

5. You will then need to give this site a name (it does not have to match the original site name). Once you have named the site, select “Choose file” and select the backup file that was just downloaded i.e. “5.4.11_default.unf”

6. Once the import has finished, you will get a confirmation that the site was imported. Once you have completed the import step, go back to the export Controller and click confirm.

7. Once you have completed the import step, click “Confirm”.

Now we’re ready to start migrating the devices. To do so:

8. First, find the URL or IP of the destination Controller This can literally be the IP of the DC – The APs will find the location as they are on the same network. In this case, I’m migrating to a UniFi Cloud Controller so I go to http://unifi.ubnt.com and select a Controller there and copy it to paste it into the migration field “Controller Inform URL”, keeping the inform port set to 8080 as shown:

9. Next, select the devices you want to migrate over by clicking the boxes next to one otherwise you can select the entire group.

10. Click “Migrate Devices”.

11. As the last step – you will now want to verify that all devices are connected to the new Controller and are visible on the devices page. Note this may take a few minutes. Once you have verified the devices are connected to the new Controller, you can then click “Forget Devices” which will conclude the migration process. The controller will show the AP as connected to the new controller. If it doesn’t then something is wrong and don’t forget the AP otherwise it will revert to default settings. DHCP and default username & password. ubnt & ubnt

Once you have completed the Site Export Wizard, you will be able to manage all of the devices from your previous Controller with the same configuration as before, only on your new Controller. 

Leave a Reply