Answer the question
In order to leave comments, you need to log in
How to write ssh script for ubnt?
There is a task - to change the country parameter on the working ubiquiti radio devices to set them to the compliance test mode.
In manual mode, it looks like this:
1. Ssh into the ubiquiti device and enter the following commands:
enable_ct
save
vi /tmp/system.cfg
"i"
look for the line radio.1.counrtycode=616 change to 511
look for the line radio.countrycode= 616 change to 511
"Esc"
wq
save
reboot
I would be grateful for the tips.
Answer the question
In order to leave comments, you need to log in
There is a more compact version in one line:
If you need to automate the execution of this task for many devices, then I would recommend writing / running a script on a linux machine. Which, in turn, would "go" via ssh to the necessary devices and execute the given command. Examples of such scripts can be found, for example, for backing up the configurations of many ubiquiti devices.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question