Community discussions

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

"/tool fetch output=user" Example?

Sat Jul 21, 2018 5:10 am

Mikrotik updated fetch a few months ago with "output=user", which does the following:

Output ::= file | none | user
none -- do not store downloaded data
user -- return up to 63k bytes directly in 'data' variable without storing on disk
file -- store to file

Though the only way I can see the contents of the "data" variable is by running a fetch command directly, I haven't actually been able to grab the contents of the variable in a script and store it in a global variable to use later. I assume it's not fully implemented yet? It's kind of weird that Mikrotik would include an unfinished feature in the current and bugfix releases...
 
User avatar
eworm
Forum Guru
Forum Guru
Posts: 1071
Joined: Wed Oct 22, 2014 9:23 am
Location: Oberhausen, Germany
Contact:

Re: "/tool fetch output=user" Example?  [SOLVED]

Mon Oct 01, 2018 11:27 pm

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

Re: "/tool fetch output=user" Example?

Wed Oct 03, 2018 1:55 am

Thanks, I guess Mikrotik hadn't finished the feature at the time of my post. I've been messing around with it since the 6.43 update, it's a very powerful option.
 
User avatar
BlackVS
Member Candidate
Member Candidate
Posts: 174
Joined: Mon Feb 04, 2013 7:00 pm
Contact:

Re: "/tool fetch output=user" Example?

Thu Oct 04, 2018 9:29 am

It would be great to allow suppress annoying hard-coded messaging regarding each fetch operation to router's log (i.e. if you have script which fetching each ten seconds - now you get each 10 seconds info message in the log... as result log is full such messages which masking the rest ones). It is the main reason why I stopped to develop Telegram Bot hosted on router (now I'm developng hosted exetrnally bot which have access to router)

Who is online

Users browsing this forum: No registered users and 81 guests