M
M
metaltuman2017-08-31 11:22:55
bash
metaltuman, 2017-08-31 11:22:55

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

2 answer(s)
N
nafigat, 2017-08-31
@metaltuman

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.

M
metaltuman, 2017-08-31
@metaltuman

Thanks to.
This line has simplified the task at times.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question