D
D
DenZel2017-01-18 20:27:29
PHP
DenZel, 2017-01-18 20:27:29

How to implement router Mikrotik autoconfiguration?

good evening!
Have a Mikrotik router with factory settings connected directly by cable to a laptop with Windows OS.
It is necessary to automate the process:
uploading new firmware, uploading a customized configuration file, and uploading login.html and js files.
I believe that the easiest way is to create a bat file in which the following algorithm will be written: run the ssh (telnet) program, log in, check the firmware, then re-upload if necessary, then upload the config and files via FTP.
Tell me who did this, and how best and easier to implement? Thank you all for your help!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ivan Arxont, 2017-01-19
@arxont

When I needed this, I came to use AutoIt. But there it was required to reset Mikrotiks, in addition to updating. And to connect to a zeroed Mikrotik, you need WinBox.
PS: You can also do everything through The Dude - there is a mass update of Mikrotik to the desired version + sending files and commands, also in bulk. But again, it cannot work with zeroed devices.
PS2: Perhaps the use of the TR-069 protocol will help you
https://ru.wikipedia.org/wiki/TR-069
wiki.mikrotik.com/wiki/Manual:TR069-client
It is just designed to update the firmware and configure the equipment .

G
Gregory, 2017-01-19
@Maxlinus

here is a presentation with mum of interaction between Ansible and RouterOS
mum.mikrotik.com/presentations/RU16/presentation_3...

I
Ivan Moiseev, 2017-01-20
@mo1seev

putty+sftp+bat

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question