Community discussions

Search found 17 matches

by warez
Thu Jun 13, 2019 3:40 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 148
Views: 36094

Re: C# API - tik4net on GitHub

Hello! Help please, how i can make execute simple line in C# for remove all sms in inbox /tool sms inbox remove [find] i do ITikCommand cmd = connection.CreateCommand("/tool/sms/inbox/remove"); connection.CreateParameter("numbers", "[find]"); cmd.ExecuteNonQuery(); or ITikCommand cmd = connection.Cr...
by warez
Mon Oct 31, 2016 11:17 pm
Forum: Scripting
Topic: Add element to associate array with custom key from variable: x {$key=$val};
Replies: 10
Views: 1872

Re: Add element to associate array with custom key from variable: x {$key=$val};

Great MikroTik Support! Please help with this code: :global ggg do={ :local x ({}); :set ($x->$arg) $arg; :return $x; } :put [$ggg arg=1]; :put [$ggg arg=2]; :put [$ggg arg=3]; Attention output: [admin@Work] > :put [$ggg arg=1]; 1=1 [admin@Work] > :put [$ggg arg=2]; 1=1;2=2 [admin@Work] > :put [$ggg...
by warez
Mon Oct 31, 2016 8:07 pm
Forum: Scripting
Topic: Add element to associate array with custom key from variable: x {$key=$val};
Replies: 10
Views: 1872

Re: Add element to associate array with custom key from variable: x {$key=$val};

Frozer HA-HA! It's so easy! Add dynamic elements with :set command, when key doesn't exist! { :local key1 "MyKey1"; :local key2 "MyKey2"; :local val1 "MyValue1"; :local val2 "MyValue2"; :local a ({}); #Add dynamic elements! :set ($a->$key1) $val1; :set ($a->$key2) $val2; :put $a; :put [:len $a]; :p...
by warez
Thu Oct 27, 2016 9:43 am
Forum: Scripting
Topic: Add element to associate array with custom key from variable: x {$key=$val};
Replies: 10
Views: 1872

Re: Add element to associate array with custom key from variable: x {$key=$val};

ThanX Frozer! I have answer from Mikrotik support thats now it imposible! I goto analog solution with :parse :global Pair do={ :global gRet ""; :local str ":global gRet; :set gRet {\"$1\"=\"$2\"};"; :local func [:parse $str]; $func; :return $gRet; } and use it: { :local key "MySuperKey"; :local val ...
by warez
Wed Oct 26, 2016 8:53 am
Forum: Scripting
Topic: Add element to associate array with custom key from variable: x {$key=$val};
Replies: 10
Views: 1872

Re: Add element to associate array with custom key from variable: x {$key=$val};

I found hard solution with global fuction: :global Pair do={ :global gRet ""; :local str ":global gRet; :set gRet {\"$1\"=\"$2\"};"; :local func [:parse $str]; $func; :return $gRet; } Use it: { :local key "MySuperKey"; :local val "MyValue"; :local x [$Pair $key $val]; :put $x; :put [typeof $x]; :put...
by warez
Tue Oct 25, 2016 9:19 am
Forum: Scripting
Topic: Add element to associate array with custom key from variable: x {$key=$val};
Replies: 10
Views: 1872

Add element to associate array with custom key from variable: x {$key=$val};

Hello! How i can set associate array element with key from variable? Work code: { :local key "key"; :local val "value"; :local x {key=$val}; :put $x; :put ($x->$key); :foreach k,v in=$x do={:put ("$k=$v")} } output ok: key=value value key=value i want setup key in runtime :local x { $key =$val}; It'...
by warez
Mon Oct 17, 2016 11:28 am
Forum: The Dude
Topic: What IP Source for Dude use to monitor hosts?
Replies: 3
Views: 1122

What IP Source for Dude use to monitor hosts?

I have Dude on CHR. In system have severals IP Addresses
What IP address Source the Dude use to monitor hosts?
How i can setup this?
by warez
Wed Aug 28, 2013 11:15 am
Forum: Forwarding Protocols
Topic: Two or more route table with equal networks on Mikrotik
Replies: 4
Views: 1960

Re: Two or more route table with equal networks on Mikrotik

I think about it. But has some problems.
Can you get simple example for VRF with TWO EQUAL IP NETWORKS.
by warez
Tue Aug 27, 2013 8:18 am
Forum: Forwarding Protocols
Topic: Two or more route table with equal networks on Mikrotik
Replies: 4
Views: 1960

Re: Two or more route table with equal networks on Mikrotik

I use RB951G, RB2011xxx. and planned use x86 PC router or CCR.
Traffic: 10-30Mbit
But question about of soft config, and not hardware equipment.
by warez
Mon Aug 26, 2013 3:09 pm
Forum: Forwarding Protocols
Topic: Two or more route table with equal networks on Mikrotik
Replies: 4
Views: 1960

Two or more route table with equal networks on Mikrotik

Hello! Purpose: make VPN for different companies (green and red on pictures) and get internet for him. (netwoks companies must be isolated) 1) Sheme: http://s1.ipicture.ru/uploads/20130315/v4ARWXmz.jpg 2) Sheme http://s1.ipicture.ru/uploads/20130315/7J1O4qHX.jpg 1) In first case, i configurate diffe...
by warez
Tue Nov 13, 2012 7:07 am
Forum: General
Topic: NAT bug after bakcup channel activity
Replies: 3
Views: 949

Re: NAT bug after bakcup channel activity

please help! :( It's seems as bug of ROS NAT. I test it on v.5.21 and 4.17 versions.
by warez
Mon Nov 12, 2012 2:04 pm
Forum: General
Topic: NAT bug after bakcup channel activity
Replies: 3
Views: 949

NAT bug after bakcup channel activity

I have NAT trouble after jump to backup ISP channel. I have two ISP channels by ether1 & ether2 interfaces with static IP. IF first main channel - down, traffic must go to second interface. ether1 = x1.x2.x3.x4 ether2 = y1.y2.y3.y4 I write two IP addresses to Mikrotik Router and two SRC-NAT rule fo...
by warez
Mon Jul 04, 2011 10:59 pm
Forum: General
Topic: Why in RouterOS v4.17 in Queue Tree no comment command?
Replies: 7
Views: 846

Re: Why in RouterOS v4.17 in Queue Tree no comment command?

what you are asking makes no sense. you can already add comments with the "set" command
it's exists in v5.x

ROS v4.xx not has this property
by warez
Sun Jul 03, 2011 10:57 pm
Forum: General
Topic: RouterOS v5.4 released
Replies: 118
Views: 31688

Re: RouterOS v5.4 released

Hello. Problem with pppoe and openvpn on RB750G, firmware 5.4. When connected router to internet through pppoe client and then connect ovpn client, router drop pppoe connection. After reboot and established pppoe CPU load 100%, ovpn could not connect. That problem was in 5.1, 5.2 and 5.4. I mail su...
by warez
Sun Jul 03, 2011 8:28 pm
Forum: General
Topic: Why in RouterOS v4.17 in Queue Tree no comment command?
Replies: 7
Views: 846

Re: Why in RouterOS v4.17 in Queue Tree no comment command?

Do you plan to implement this feature (Queue Tree Comment Property) in the following OS version 4.xx?

Very useful property :) for peoples and scripts
by warez
Sun Jul 03, 2011 1:55 pm
Forum: General
Topic: Why in RouterOS v4.17 in Queue Tree no comment command?
Replies: 7
Views: 846

Why in RouterOS v4.17 in Queue Tree no comment command?

Why in RouterOS v4.17 in Queue Tree no "comment" command?
queue tree comment
bad command name comment (line 1 column 12)
P.S. ROS v5.5 so non stable, than I will downgrade to v4.17.
by warez
Tue Jun 28, 2011 1:58 pm
Forum: General
Topic: keep-alive bug
Replies: 2
Views: 1109

Re: keep-alive bug

I have probably this bug too in RouterOS v5.4.
Now upgrade to v5.5. I shall test