Page 1 of 1

Fetch command to upload file

Posted: Thu Mar 20, 2014 8:30 pm
by mtutgk
Hello,
I need your help about fetch. Basically I want to use fetch to upload the configuration files for massive device at one time and then reboot them from other route. How to use fetch to do for a list address.

Thanks

Re: Fetch command to upload file

Posted: Fri Mar 21, 2014 4:05 pm
by janisk
/tool fetch upload=yes 
see wiki.mikrotik.com for more details

Re: Fetch command to upload file

Posted: Fri Mar 21, 2014 4:13 pm
by mtutgk
Thanks. I know fetch command works.However what I want is to upload files for a list of address in one command or script. Do I have to repeatedly use fetch one by one for each address?

Re: Fetch command to upload file

Posted: Mon Mar 24, 2014 10:15 am
by janisk
yes, you have to repeat the command for every upload. Just create the script and run fetch in succession it several times.

Re: Fetch command to upload file

Posted: Thu May 25, 2017 7:58 pm
by MSapogov
/tool fetch upload=yes 
see wiki.mikrotik.com for more details
upload=yes - for FTP only.

I need upload test.xml file to my IP-camera via Mikotik.
[admin@Bee-GW] > /tool fetch url="http://admin:12345678@192.168.11.51:80/Video/inputs/channels/1/overlays/text" http-data="test.xml"
  status: failed

failure: closing connection: <400 Bad Request> 192.168.11.51:80 (4)
Please help me.

Re: Fetch command to upload file

Posted: Fri May 26, 2017 11:03 am
by janisk
latest RouterOS versions '/tool fetch' have other methods for HTTP.

Re: Fetch command to upload file

Posted: Fri May 26, 2017 12:00 pm
by MSapogov