Adding script to Mikrotik

Hello,

I m trying to automatically update all my mikrotiks from the dude.

  • I found and adapted a script for my needs.
  • I placed it to the Dude and made a tool using “fetch” to add it to all Mikrotik ( around 60)
    Now I 'd like to import my script to /system script and find a way to schedule it’s execution. Or maybe just execute the script from the scheduler without import it from /system script.

With the Dude, I tried to made a command that look like to : “C:\Program Files\PuTTY\plink.exe” -ssh [Device.FirstAddress] -P 22 -l [Device.UserName] -pw [Device.Password] “/system script add name=test source=”## “”. But that didn’t worked. I’ve tried to add my script instead of ## but command generated too much error.
That why I m trying to play fetched scripts.

After that, I’ll want to do the same thing to export all my configurations to an ftp.

I spent too much hours by testing and googling before asking.

Thanks you for your help.

Vincent

Any news reg this? i wouldn’t mind have that script

Hello miochoice,

Finally that worked. But I used another way.
Instead of trying to import a fetched script, I made a new one with all required commands, I named it myscript.auto.rsc and I put it in Dude.
Now when script is fetched, it is automatically played and commands are added to Mikrotiks.
Please find the source script by following this link : https://github.com/massimo-filippi/mikrotik
Thanks to Massimo Filippi.


Vincent