jawbreaker.io

Streamline Your UniFi Device Setup with This Simple SSH Automation Trick


Listen Later

Welcome back to the Crosstalk Solutions podcast. If you’re hosting your UniFi controller in the cloud and you’ve ever spent hours SSH-ing into each device to run set-inform commands one by one, today’s tip will save you tons of time.

Here’s the idea: put all your device IPs into a simple text file called list.txt, then run a single command that loops through that list, SSHs in, sets the inform URL, and reboots the device. As the video puts it, “This easy for-loop batch script automates adoption of all your remote UniFi devices in one go.”

Your batch command looks something like this:

for /f "delims=" %%f in (list.txt) do ^
ssh -i secretkey.pem -o StrictHostKeyChecking=no ubnt@%%f ^
"mca-cli-op set-inform http://your-controller-address:8080/inform"

Once you hit enter, sit back and watch your devices report into your hosted controller automatically. For more great tips, subscribe to Crosstalk Solutions.
Link to Article

...more
View all episodesView all episodes
Download on the App Store

jawbreaker.ioBy jawbreaker.io