Community discussions

MikroTik App

Search found 17 matches

by dany
Wed Apr 22, 2015 1:15 am
Forum: Scripting
Topic: Correction for Simple Queue to Address list?
Replies: 4
Views: 2159

Re: Correction for Simple Queue to Address list?

Thank you very much!
by dany
Sun Apr 19, 2015 9:32 pm
Forum: Scripting
Topic: Correction for Simple Queue to Address list?
Replies: 4
Views: 2159

Re: Correction for Simple Queue to Address list?

Thanks a lot, that is what I was looking for!! But now there is a problem when there are more queues with the same target address (but different Packet Marks). When "/ip firewall address-list add" encounters duplicate address it breaks the script with error "failure: already have such entry" and doe...
by dany
Sun Apr 19, 2015 1:54 pm
Forum: Scripting
Topic: Correction for Simple Queue to Address list?
Replies: 4
Views: 2159

Correction for Simple Queue to Address list?

I need to copy target addresses from Simple Queue to an Address list. \ In order to do that I use the following script: :foreach i in=[ /queue simple find ] do={ :local ip [/queue simple get value-name=target $i ] /ip firewall address-list add list=List address=$ip } The problem is that I have some ...
by dany
Wed Jan 15, 2014 4:26 pm
Forum: Scripting
Topic: Help with script for DNS lookups and address lists
Replies: 23
Views: 9588

Re: Help with script for DNS lookups and address lists

This time it runs through with no problem. Even when I runnit for the second time immediately after the first run it still doesn't get aborted and runs through to the end. One funny thing, when I run it, the first run, it showed 30 of those "DNSCACHE: Error" errors, and that's exactly how many entri...
by dany
Wed Jan 15, 2014 11:22 am
Forum: Scripting
Topic: Help with script for DNS lookups and address lists
Replies: 23
Views: 9588

Re: Help with script for DNS lookups and address lists

It gives me the following error:
expected variable name (line 39 column 26)
by dany
Tue Jan 14, 2014 9:46 pm
Forum: Scripting
Topic: Help with script for DNS lookups and address lists
Replies: 23
Views: 9588

Re: Help with script for DNS lookups and address lists

Thank you for the modified version as well. I have upgraded OS to v6.7 in the meantime and the original script now works without any modification. However, when I run if for the second time (soon after the first run) it ends up in error. Please have a look: DNSCACHE: Error on r4---sn-nvm-cxbe.google...
by dany
Mon Jan 13, 2014 9:36 pm
Forum: Scripting
Topic: Help with script for DNS lookups and address lists
Replies: 23
Views: 9588

Re: Help with script for DNS lookups and address lists

Oh, I see.. I've tried it on a router with 6.3 version.
I don't want to bother you more than I have already, I will just upgrade the OS to a higher version.
Thanks again!
by dany
Mon Jan 13, 2014 9:26 pm
Forum: Scripting
Topic: Help with script for DNS lookups and address lists
Replies: 23
Views: 9588

Re: Help with script for DNS lookups and address lists

Thank you very very much Efaden!!! The script works like a charm. I had to takeout the following part of the script though, as it was giving me an error, but that doesn't decrease its usefulness at all! timeout=$myTimeout } on-error={ :put "DNSCACHE: Error on $myName $myData $myType" }
by dany
Sun Jan 12, 2014 9:29 pm
Forum: Scripting
Topic: Help with script for DNS lookups and address lists
Replies: 23
Views: 9588

Re: Help with script for DNS lookups and address lists

Here is the exact script I'm running on the router at the moment: :foreach i in=[/ip dns cache find] do={ :local bNew "true"; :local cacheName [/ip dns cache all get $i name] ; # :put $cacheName; :if (([:find $cacheName "youtube"] != 0) || ([:find $cacheName "googlevideo"] != 0)) do={ :local tmpAddr...
by dany
Sun Jan 12, 2014 5:38 pm
Forum: Scripting
Topic: Help with script for DNS lookups and address lists
Replies: 23
Views: 9588

Re: Help with script for DNS lookups and address lists

I have tried merging it but with no success.
It's not a pressing matter so if you could do it in a two weeks time,
when you have free time it would be great.

Best regards!
by dany
Sun Jan 12, 2014 1:28 pm
Forum: Scripting
Topic: Help with script for DNS lookups and address lists
Replies: 23
Views: 9588

Re: Help with script for DNS lookups and address lists

Thank you very much!
by dany
Sun Jan 12, 2014 1:14 pm
Forum: Scripting
Topic: Help with script for DNS lookups and address lists
Replies: 23
Views: 9588

Help with script for DNS lookups and address lists

I'm using the script from http://adminsline.wordpress.com/2012/08/03/mikrotik-youtube/ in order to make address list with YouTube video server IPs from DNS cache so I can make some redirections. I wish to use the same script so I could grab IP addresses of some other video streaming sites, like vime...
by dany
Wed Sep 04, 2013 3:21 pm
Forum: Scripting
Topic: Removing an address from a address-list
Replies: 3
Views: 1981

Re: Removing an address from a address-list

So simple when you know what to do! ;)
Thank you very much!!
by dany
Wed Sep 04, 2013 2:11 pm
Forum: Scripting
Topic: Removing an address from a address-list
Replies: 3
Views: 1981

Removing an address from a address-list

I'm trying to make a script which would allow me to remove an address from Address Lists. As one needs the number of the address entry to be able to remove the address, I thought of using something like this (lets say 192.168.205.13 is the address I want removed): :put ([:pick [/ip firewall address-...
by dany
Mon May 20, 2013 4:33 pm
Forum: General
Topic: RouterOS v6.0rc13 released
Replies: 81
Views: 30300

Re: RouterOS v6.0rc13 released

I confirm problem with 6.0rc14 (as well as rc13) on CCR1016 where SNMP
readings could only be read every few tries. It makes monitoring with Cacti
(or any other software for that matter) unusable.

I hope we could expect fix sometime soon...
by dany
Wed Apr 24, 2013 10:22 am
Forum: The Dude
Topic: No graph when hoover the mouse over a link
Replies: 1
Views: 1149

Re: No graph when hoover the mouse over a link

The problem solved! I had a program started (a kind of a news ticker service) that was interfering somehow with the Dude.
When I exit the program the pop-ups in the Dude show correctly. Who would have thought?!
by dany
Mon Apr 22, 2013 4:23 pm
Forum: The Dude
Topic: No graph when hoover the mouse over a link
Replies: 1
Views: 1149

No graph when hoover the mouse over a link

Hello, I would be much gratefull if anyone with more experience has a suggestion how to resolv the problem I have with the Dude. When I hoover the mouse over a link I don't get a pop-up graph as I'm supposed to. I've been looking around hoping that I would find a hint that would push me in a right d...