Skip to content

A simple CLI script to update a group of MikroTik devices

License

Notifications You must be signed in to change notification settings

cperezabo/mikrotik-updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e30c694 Β· Jan 10, 2024

History

15 Commits
Apr 24, 2018
Apr 24, 2018
Apr 24, 2018
Feb 16, 2023
Jan 10, 2024

Repository files navigation

MikroTik Updater

Just a simple script to update a group of MikroTik devices automatically ✨

How to use it? πŸ€”

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 device
  • username: The username linked to the public RSA key.
  • hosts: An array of the devices to be updated.

You can find a demo file inside sources 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 a demo 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

About

A simple CLI script to update a group of MikroTik devices

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages