Community discussions

MikroTik App
 
mtutgk
just joined
Topic Author
Posts: 5
Joined: Thu Mar 20, 2014 8:22 pm

Fetch command to upload file

Thu Mar 20, 2014 8:30 pm

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
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Fetch command to upload file

Fri Mar 21, 2014 4:05 pm

/tool fetch upload=yes 
see wiki.mikrotik.com for more details
 
mtutgk
just joined
Topic Author
Posts: 5
Joined: Thu Mar 20, 2014 8:22 pm

Re: Fetch command to upload file

Fri Mar 21, 2014 4:13 pm

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?
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Fetch command to upload file

Mon Mar 24, 2014 10:15 am

yes, you have to repeat the command for every upload. Just create the script and run fetch in succession it several times.
 
MSapogov
just joined
Posts: 3
Joined: Mon Nov 28, 2016 1:21 pm

Re: Fetch command to upload file

Thu May 25, 2017 7:58 pm

/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.
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Fetch command to upload file

Fri May 26, 2017 11:03 am

latest RouterOS versions '/tool fetch' have other methods for HTTP.
 
MSapogov
just joined
Posts: 3
Joined: Mon Nov 28, 2016 1:21 pm

Re: Fetch command to upload file

Fri May 26, 2017 12:00 pm

Who is online

Users browsing this forum: phcooper and 27 guests