Всем привет
нужна помощь. использую около 30 маршрутизаторов
Есть ли способ распространить скрипты и задачи в планировщик из центра?
не подключаясь на каждый.
Я понимаю, что скрипты на всех маршрутизаторах будут одинаковыми, меня это устраивает.
Hello
need help. I use about 30 routers
Is there a way to distribute scripts and tasks to the scheduler from the centre?
without connecting to each.
I understand that the script on all routers will be identical, it suits me.
However, keep in that that in this fashion, you’re potentially vulnerable to man-in-the-middle attacks (which in this case could prove to be fatal, as the attacker creates their own admin username via injected code in the script, and that way completely takes over your router). You’d need to set up a separate device as an HTTPS server (with a valid certificate) to not be.
The easiest way is to simply setup a shared file location on a webserver
Then run
/tool fetch url=http://yourdomain.com/files/data.txt[code]
Every script I run also has the following at the top
[code]
# Printing local time for Log purposes ...
:local CurrentTime [/system clock get time];
:log warning "Script run at Current Time = $CurrentTime. . ."
What I have done is I actually run a script that fetches a new script which is the one I update to list all the files we want to then get and run.
So first Script grabs a script to fetch any and all scripts I want as well as deletes any scripts we do not want on our systems any longer.
I run the script once per day - and it makes things pretty good.
Now - one other option ~ look into the API and do some magic for PHP