Community discussions

MikroTik App
 
imirsay
just joined
Topic Author
Posts: 22
Joined: Fri Jul 28, 2023 12:47 pm

reboot with FTP

Tue May 21, 2024 7:53 am

I want reboot 2 mikrotik chr with FTP.
I add a script on the sending server:
/tool fetch address=1.1.1.1 src-path=export/run-reboot.rsc user=* mode=ftp password=* dst-path=auto-rest
ore/run-reboot.auto.rsc upload=yes
/tool fetch address=2.2.2.2 src-path=export/run-reboot.rsc user=* mode=ftp password=* dst-path=auto-rest
ore/run-reboot.auto.rsc upload=yes
I have written this command inside this file: system/reboot
Only the first server is restarted!
When I enter the command in the terminal, it gives this message: no such item (4)
no such item (4)