run script after reset not working

Hi,

I have created new .rsc files to install a lot of my devices.
I have several locations and use PtP connections. I also need to reconfigure the PtP devices remotely.
Now I try this in a test lab but when I put the new configuration on the device and reset the device and choose to run a script after it, it is not working.
If I connect to the device directly and choose to reset it with no default configuration and than when the device has boot I do this:
import file-name=new-config.rsc than it is working.
But I need to do this remotely on the PtP device.

Any Idea?

That is a known problem and it broke a long time ago. You can look in the WiKi to see if these workflows help you. Please give feedback if you are successful or unsuccessfully so that we also known that the given suggestions work.

https://wiki.mikrotik.com/wiki/Manual:Configuration_Management#Import_troubleshooting

Hi,

I have still no success.
It is running a bit of the script but not all.
Below a little bit for the script (only the beginning).
It change the identity and add a bridge but not add ports to the bridge. (see screenshot

Installatie Ring 227 SW09

#STATION:

Geef het apparaat een identitiet

/system identity set name=“Ring 227 SW09”

/interface bridge
add name=BRIDGE-225-227 vlan-filtering=no
/interface bridge port
add bridge=BRIDGE-225-227 interface=ether1
add bridge=BRIDGE-225-227 interface=wlan1
/interface bridge vlan
add bridge=BRIDGE-225-227 tagged=ether1,wlan1,BRIDGE-225-227 vlan-ids=9
/interface vlan
add name=VLAN_LAN_MGMT interface=BRIDGE-225-227 vlan-id=9
hAP-log.JPG

you can add

:delay 15s

http://forum.mikrotik.com/t/netinstall-defaul-configuration/118190/1

Great,
The :delay 15s helps me a lot

Je hebt de…sorry in English now, you have missed the startup delay and when I understand the two postings above you can put as first line in the config.rsc :delay 15s and that would do it.

Then is my question why not put this delay as default on export of a config.rsc so that tantrums are spared to keepers of Mikrotik routers. One line can make the config.rsc loved again like it was before.

If I want to add SSL certificates it is also going wrong.
Allso If I add an :delay 2m for example

If I add this at the top of my .rsc file and than a delay and than the rest of the script (the rest of the script is not executed).

/certificate
add name=NameOfSSL common-name=172.16.0.1 country=NL days-valid=3650 key-size=4096 organization=“Verheij Systems” state=“Zuid Holland” locality=Pernis
/certificate sign NameOfSSL
:delay 2m
/system identity set name=“Ring-225-SW04”





The certificate is created and signed but the system identity is not set (and also all rest of the script is not executed.