I can run a **script **on a sxt RouterBoard without even open the graphical interface via ssh, at the beginning or after reset?
whenever I open at the start the graphical interface sxt routerboar asks if I want to accept the factory setting, this prevents running script?
I’m a developer
So the script is already present in /system script?
You could add it to the scheduler:
/system scheduler
add name=startupItems on-event="/system script run myScript" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive start-time=startup
-Chris
If the router has been factory reset, then there is nothing on the router. Files are however not deleted.
You can make the router import a script file after resetting the configuration. Similar to the “/import” command.
For example:
/system reset-configuration run-after-reset=test.rsc
Where “test.rsc” is a script file. But remember that if the script file contains script errors, the whole import will fail.
For more information, see the following manual pages: