Just a simple script to update a group of MikroTik devices automatically ✨
You need to create a source file inside the sources
folder and fill up the following variables:
private_key
: The private RSA key used to connect to each deviceusername
: The username linked to the public RSA key.hosts
: An array of the devices to be updated.
You can find a
demo
file insidesources
for a quickstart.
After having created the source file, simply execute the script 🤓
$ bash updater.sh demo
It will look under the
sources
folder for ademo
file
or you can specify an absolute path
$ bash updater.sh /path/to/sources/demo
You are done! 👍🏻
Additionally you can create a global alias for the updater
$ alias mikrotik-updater 'bash /path/to/updater.sh'
and execute it simply as
$ mikrotik-updater demo