Page 1 of 1

Feature Request: RAMDisk OR HTTP GET/POST Without Flash Writes

Posted: Mon Jan 22, 2018 5:35 am
by metricmoose
I would really like a way to use the "/tool fetch" command in scripts that will work directly in RAM and not write to flash. Many of the new Mikrotik routers have decent amounts of RAM, but low amounts of flash that I don't want to wear out.

I have a couple ideas on ways to solve this.
Rather than fetch, a separate tool that will output the results of an HTTP GET/POST so it can be stored in a variable. It would be nice if the HTTP response code is included somehow. Bonus points for somehow storing arrays / command outputs as JSON!

Alternatively, RouterOS can include a RAM Disk feature so we can allocate a few MB of storage to store the responses in RAM. It has been requested a few times here, but nothing ever came of it. This would be close to the bare minimum for my needs, though I could probably figure something out if this is added.

One project I was hoping to start was to build a cnMaestro-like tool that allows routers to connect to a remote webserver to "check in", push out stats (connected wifi clients, firmware versions, uptime, ect), grab configuration changes and act as a very basic internal DDNS. I'm afraid of wearing out the flash excessively by doing many HTTP requests every 5 minutes or so.

Re: Feature Request: RAMDisk OR HTTP GET/POST Without Flash Writes

Posted: Mon Jan 22, 2018 10:14 am
by th0massin0
I think that feauture is already paritial implemented in ROS. Some of boards have separate /flash directory.

Re: Feature Request: RAMDisk OR HTTP GET/POST Without Flash Writes

Posted: Mon Jan 22, 2018 12:51 pm
by jarda
That's the opposite approach not usable with normal flash equipped devices. The ramdisk is a must in such case or attaching of some external media to use it for excessive writing instead of internal flash. Please continue to this post and do not open new ones for such topic.
forum.mikrotik.com/viewtopic.php?t=121458

Re: Feature Request: RAMDisk OR HTTP GET/POST Without Flash Writes

Posted: Sun Jan 28, 2018 8:14 pm
by metricmoose
It looks like in this thread from way back in 2004, they added to some sort of list, but it never took off.

viewtopic.php?t=1392

RAM sure is cheap and plentiful now, I would love to see Mikrotik add ramdisk.

Re: Feature Request: RAMDisk OR HTTP GET/POST Without Flash Writes  [SOLVED]

Posted: Mon Jan 29, 2018 9:34 am
by ziegenberg
You have been heard, see the latest ROS 6.42rc15:
*) fetch - added "output" option for all modes in order to return result to file, variable or ignore it;
greetings, Daniel

Re: Feature Request: RAMDisk OR HTTP GET/POST Without Flash Writes

Posted: Mon Jan 29, 2018 10:10 am
by genesispro
You have been heard, see the latest ROS 6.42rc15:
*) fetch - added "output" option for all modes in order to return result to file, variable or ignore it;
greetings, Daniel
Cool.... !!! I, amongst others, needed that!!!

Re: Feature Request: RAMDisk OR HTTP GET/POST Without Flash Writes

Posted: Mon Jan 29, 2018 1:05 pm
by metricmoose
You have been heard, see the latest ROS 6.42rc15:
*) fetch - added "output" option for all modes in order to return result to file, variable or ignore it;
greetings, Daniel
Thanks Daniel, I didn't see that RC! This should tidy things up a lot.

Re: Feature Request: RAMDisk OR HTTP GET/POST Without Flash Writes

Posted: Mon Jan 29, 2018 2:18 pm
by pe1chl
That is nice, but I still would like to have a RAMdisk!