Community discussions

MikroTik App
 
metricmoose
newbie
Topic Author
Posts: 48
Joined: Sat Nov 21, 2015 2:03 am

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

Mon Jan 22, 2018 5:35 am

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.
 
th0massin0
Member Candidate
Member Candidate
Posts: 156
Joined: Sun May 11, 2014 4:16 am
Location: Poland

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

Mon Jan 22, 2018 10:14 am

I think that feauture is already paritial implemented in ROS. Some of boards have separate /flash directory.
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

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

Mon Jan 22, 2018 12:51 pm

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
 
metricmoose
newbie
Topic Author
Posts: 48
Joined: Sat Nov 21, 2015 2:03 am

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

Sun Jan 28, 2018 8:14 pm

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.
 
User avatar
ziegenberg
Frequent Visitor
Frequent Visitor
Posts: 53
Joined: Thu Mar 07, 2013 11:14 am
Location: Vienna
Contact:

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

Mon Jan 29, 2018 9:34 am

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
 
User avatar
genesispro
Member Candidate
Member Candidate
Posts: 283
Joined: Fri Mar 14, 2014 12:33 pm

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

Mon Jan 29, 2018 10:10 am

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!!!
 
metricmoose
newbie
Topic Author
Posts: 48
Joined: Sat Nov 21, 2015 2:03 am

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

Mon Jan 29, 2018 1:05 pm

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.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10195
Joined: Mon Jun 08, 2015 12:09 pm

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

Mon Jan 29, 2018 2:18 pm

That is nice, but I still would like to have a RAMdisk!

Who is online

Users browsing this forum: Ahrefs [Bot], itsbenlol and 69 guests