Update mikrotik router5/2/2023 ![]() My expect scripts process the text file, if a Mikrotik pings, then continue. Expect script ( a for line in text file do a ( telnet/ssh, login, do some commands ) A text file of each IP address of mikrotiks you manage. Update/upgrade the ROS version on all Mikrotiks everywhere. Get information from remote Mikrotiks ( anything I want, version, signal strength, ROS version, export ), save results on my Linux server. site survey ( including site-survey on remote wireless client Mikrotiks ), save results on my Linux server. To mass upgrade thousands of Mikrotiks with the push of a button, I do this: The associated "discover" program isn't really written to produce output suitable for parsing in a script, but it's a pretty trivial shell around the actual "mndp" library. ![]() ![]() I hear the devops crowd likes Go, so this particular implemnentation may be of special interest since it gives you a golang library you can use to write your own program with. The reply also includes a version string you can use to decide which routers need an upgrade and which to skip. The MNDP reply message doesn't appear to include the CPU type string in the form that MikroTik uses in naming firmware upgrade packages, but it does have a "Board" string you can map to the CPU type, which then tells you which file to send. Perhaps your existing Ansible setup will suffice for this.Īlternately, there are MNDP (MikroTik Neighbor Discovery Protocol) programs which give output you can use to drive the upgrade loop. The tricky bit is sending the right version of the firmware to each subset of boxes that has a different CPU, or needs a different version than the others, and so on. Putting this into a loop to iterate over all available routers is not difficult. That will reboot that one router, which will see an *.npk file on boot at the root of its file system, and so will automatically upgrade to that version. Create a user on each MT box that has a full-capability user with an authorized SSH key.I want to create a local firmware mirror that can be scripted.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |