Community discussions

Search found 29 matches

by airock
Wed Apr 30, 2014 2:12 pm
Forum: Scripting
Topic: [SCRIPTING] - Anomaly in using global "keyed" arrays
Replies: 3
Views: 1544

Re: [SCRIPTING] - Anomaly in using global "keyed" arrays

Hi again, boen_robot. Have you tried adding a delay before you reference the new array? I'm thinking maybe RouterOS doesn't make the new value available instantly, as it otherwise should, and when further attempts to reset it fail, the actual modification is delayed further and further. you know, f....
by airock
Mon Apr 28, 2014 4:08 pm
Forum: Scripting
Topic: [SCRIPTING] - Anomaly in using global "keyed" arrays
Replies: 3
Views: 1544

[SCRIPTING] - Anomaly in using global "keyed" arrays

While writing a small script to be scheduled at regular interval I discovered an anomaly in using global "keyed" (i.e. associative) arrays: according to the available documentation, entire array variables can be assigned with a single set command: :global MyArray :set MyArray {a=1; b=2; c=3} Well, s...
by airock
Sat Mar 22, 2014 6:59 pm
Forum: Scripting
Topic: API: position of .tag API-attribute-word in reply-sentences
Replies: 14
Views: 3069

Re: API: position of .tag API-attribute-word in reply-senten

Moving .tag to the top (just after !re, !done, !trap etc) in the answer form a router does make sense. It will be done.
Concise reply, excellent decision.

It would be great to have it also on "legacy" RouterOS versions (...well, at least on 5.x).

Thank you for your support.
rock
by airock
Mon Feb 24, 2014 1:48 pm
Forum: Scripting
Topic: API: position of .tag API-attribute-word in reply-sentences
Replies: 14
Views: 3069

Re: API: position of .tag API-attribute-word in reply-senten

I kindly asked you not to make any groundless assumption: I was not doing any assumption nor I was referring to any specific implementation detail. You assumed that I could not use "it": and you don't use it because you can't. and I assumed "it" refers to the scenario you're describing, which parti...
by airock
Sun Feb 23, 2014 11:40 pm
Forum: Scripting
Topic: API: position of .tag API-attribute-word in reply-sentences
Replies: 14
Views: 3069

Re: API: position of .tag API-attribute-word in reply-senten

(but, really, I cannot see anything leading to this in my messages). The latin "... not mature... bitter" bit is the primary thing that rubbed me the wrong way... It made it seem like you're cleverly implying "You can't use it... therefore you're saying it's bad and no one should use it and therefo...
by airock
Sun Feb 23, 2014 3:07 am
Forum: Scripting
Topic: API: position of .tag API-attribute-word in reply-sentences
Replies: 14
Views: 3069

Re: API: position of .tag API-attribute-word in reply-senten

First off, I should probably remind you that I support this idea. Whether or not I would/could/should personally leverage it is a completely different matter. Yes, it is clear to me: since your first message you acknowledged that the proposal is worthwhile to be supported. The fact that you might o...
by airock
Fri Feb 21, 2014 8:46 pm
Forum: Scripting
Topic: API: position of .tag API-attribute-word in reply-sentences
Replies: 14
Views: 3069

Re: API: position of .tag API-attribute-word in reply-senten

In my case, users can retrieve word contents into a "php://temp" stream. In PHP, these streams start writing to HDD as soon as their content reaches 2MB. That option is off by default for obvious reasons, but it's there precisely for those circumstances. Similar things could be done in other langua...
by airock
Fri Feb 21, 2014 6:27 pm
Forum: Scripting
Topic: API: position of .tag API-attribute-word in reply-sentences
Replies: 14
Views: 3069

Re: API: position of .tag API-attribute-word in reply-senten

If an API client is intertwining the response interpretation with the response marshaling, then yes, I agree that having an early peek at the .tag will be beneficial to its performance. For clients that separate the two stages, this makes no difference, so +1 for this suggestion from me . That said...
by airock
Fri Feb 21, 2014 2:25 pm
Forum: Scripting
Topic: API: position of .tag API-attribute-word in reply-sentences
Replies: 14
Views: 3069

API: position of .tag API-attribute-word in reply-sentences

This is a RouterOS-API feature-request/request-for-comments. An API-client is allowed to "tag" any command issued to a RouterOS device by specifying the .tag API-attribute-word with a given identifier: this is a critical feature in exploiting API's ability to issue multiple commands, expecially when...
by airock
Sun Jun 10, 2012 7:33 am
Forum: General
Topic: RB751G-2HnD (Router OS4), multiple VLANS,SSIDs and PPPoE ok?
Replies: 9
Views: 2351

Re: RB751G-2HnD (Router OS4), multiple VLANS,SSIDs and PPPoE

It can be both. Each interface can be separate or you can switch together ports 2-5. Just one note/question: On the RB751U-2HnD (the non-gigabit model) only ports ether2..ether5 can be switched together, while ether1 is a stand-alone ethernet port (to be used in L3/routing or to be, at most, L2/sof...
by airock
Tue Jun 05, 2012 12:10 am
Forum: General
Topic: RouterOS v5.16 released
Replies: 69
Views: 17912

Re: RouterOS v5.16 released

it's amazing Nstreme is still crippled. P Throughput never exceeds 55,000 even at data rates of 270/270. also random disconnects. I'm now forced to use NV2 for my PtP's, which give high jitter and latency compared to good old Nstreme. is anyone else REALLY not seeing this? I have over 10 PtP's that...
by airock
Wed May 09, 2012 2:53 pm
Forum: General
Topic: BUG: RouterOS packet sniffer shows messed up raw data
Replies: 1
Views: 1343

BUG: RouterOS packet sniffer shows messed up raw data

It seems that RouterOS embedded packet sniffer shows incorrect/messed up data into the "Raw data" window. In winbox: - select Tools/Packet Sniffer: the "Packet Sniffer Settings" window opens - with proper settings, start/stop capturing some packets - click "Packets": the "Packet Sniffer Packets" win...
by airock
Thu Apr 12, 2012 7:46 pm
Forum: General
Topic: using 2 antennas with MIMO cards...
Replies: 14
Views: 2180

Re: using 2 antennas with MIMO cards...

if you want both headers to work if 802.11a org is set, then you have to enable both HT chains for tx and rx. Then you can use so called antenna diversity and have interesting configurations, like omni on one header and grid on other to connect clients further away. Is this kind of diversity expect...
by airock
Sat Mar 17, 2012 7:20 am
Forum: Wireless Networking
Topic: Two RX SXT atation bridge - bridge. How to reach best speed?
Replies: 12
Views: 3612

Re: Two RX SXT atation bridge - bridge. How to reach best sp

I have configured units on bridge mode as per the configs, the tx/rx rate shows between 200/270 Mbps both tx and rx , tx/rx signal about -50/-50 but when i copy a file from the remote site i will hardly get 10 Mbps, can somebody explain why this scenario, distance is 2 Km May be it's more simple th...
by airock
Fri Mar 16, 2012 9:16 pm
Forum: Scripting
Topic: Writing interfaces address to a file
Replies: 6
Views: 1470

Re: Writing interfaces address to a file

/file print file=test the above prints the directory listing to file=test. You dont want that, you want to print the contents of the file, not write to it. Try something like: /file get "test.txt" contents (not exact syntax, but you get the idea) Sam Play it again, Sam. ...sorry for the joke, but i...
by airock
Thu Mar 15, 2012 9:17 pm
Forum: General
Topic: New features proposal: antenna management options.
Replies: 0
Views: 457

New features proposal: antenna management options.

I have two quite simple enhancement to submit. 1) Antenna selection Most wireless cards have two antenna connectors ( MAIN / AUX ); with non-"N" cards (i.e. "A/B/G"-mode cards), the single RF chain is switchable between the two connectors/antennas so to allow diversity selection: RouterOS never impl...
by airock
Tue Mar 13, 2012 9:39 pm
Forum: Scripting
Topic: Writing interfaces address to a file
Replies: 6
Views: 1470

Re: Writing interfaces address to a file

Apparently it does not make sense, but actually does. See RouterOS scripting manual section 1.1.6 . There is a nice red warning waiting for you to read. (...and, yes, RouterOS scripting is HORRIBLE, but that's all we have right now; there was an attempt to support LUA scripting in the past but it wa...
by airock
Tue Mar 13, 2012 9:18 pm
Forum: Beginner Basics
Topic: DNS caching not working on second MK
Replies: 10
Views: 1241

Re: DNS caching not working on second MK

Does your second NS actually receive queries by some client? Try to "manually" send a query; assuming that its IP addess is 1.2.3.4: from a unix shell: dig @1.2.3.4 www.mikrotik.com from a windows command prompt: nslookup www.mikrotik.com 1.2.3.4 If everything works as expected you should receive a ...
by airock
Tue Mar 13, 2012 6:57 pm
Forum: Scripting
Topic: Writing interfaces address to a file
Replies: 6
Views: 1470

Re: Writing interfaces address to a file

Did you actually execute a script or just typed the commands above at the command-line prompt? If you are testing at the command-line, try this sequence: /file print file=test /file set test.txt contents="$[/ip address get [find interface="ether1-wan1"] address]" Let me know if it works as expected....
by airock
Tue Mar 13, 2012 3:34 pm
Forum: Wireless Networking
Topic: Two RX SXT atation bridge - bridge. How to reach best speed?
Replies: 12
Views: 3612

Re: Two RX SXT atation bridge - bridge. How to reach best sp

Please note that I have a limited experience with nv2, so what I'm going to say about it is mainly conceptual matter. I see no actual reasons, apart of some marginal latency improvement, to use a TDMA protocol (as nv2) in a Point-to-Point configuration like yours, where a proper nstreme setup tipica...
by airock
Tue Mar 13, 2012 2:25 pm
Forum: Wireless Networking
Topic: RouterOS Tx Power Issue with SENAO/EnGenius EMP-3601 radio
Replies: 1
Views: 1068

Re: RouterOS Tx Power Issue with SENAO/EnGenius EMP-3601 rad

Ok guys, may be my question was too stupid to deserve an answer or the matter so well known to everyone to require a comment: well, it was not for me, so I did my own measurement. I really don't believe that nobody is aware of this but, just in case, here are my results so to help anyone else should...
by airock
Mon Mar 12, 2012 11:06 pm
Forum: RouterBOARD hardware
Topic: Using R52Hn in 802.11a/b/g (non-"n") with dual chain/antenna
Replies: 4
Views: 2120

Re: Using R52Hn in 802.11a/b/g (non-"n") with dual chain/ant

Hi rmichael, and thank you for answering. Some comments: Transmit diversity feature would cause a over the air collision. In my hypothetical configuration no "over-the-air" collision is possible as the coverage areas are totally insulated: each station does not hear the other one. Yet it is still po...
by airock
Mon Mar 12, 2012 7:44 pm
Forum: RouterBOARD hardware
Topic: Using R52Hn in 802.11a/b/g (non-"n") with dual chain/antenna
Replies: 4
Views: 2120

Re: Using R52Hn in 802.11a/b/g (non-"n") with dual chain/ant

CyberT, your post is exactly the type of post I would not have read. I did not ask question just to answer myself: the first part of my (may be too long, I agree) post was just a summary of information based on my knowledge and understanding of how "11N" cards differs from previous generations, give...
by airock
Mon Mar 12, 2012 3:53 pm
Forum: Wireless Networking
Topic: What isn't matching??
Replies: 5
Views: 2010

Re: What isn't matching??

Ok, let's start from the beginning. In your description of the problem (your first message) when you say if I turn on "default authenticate" you DO NOT specify if you are referring to the AP or to the STATION. And the configurations you posted do not help as in both of them i see "default-authentica...
by airock
Sun Mar 11, 2012 11:51 pm
Forum: Wireless Networking
Topic: What isn't matching??
Replies: 5
Views: 2010

Re: What isn't matching??

Everything is working as expected. If you turn off "default authentication" (on the AP and/or on the station) then you have to provide proper access-list (on the AP) and/or connect-list (on the station): in other words, you're telling RouterOS to NOT establish a connection by default , and to only p...
by airock
Sun Mar 11, 2012 10:27 am
Forum: Scripting
Topic: Replace and Command with a Variable
Replies: 2
Views: 637

Re: Replace and Command with a Variable

Just a tip to show you the way:
:local item "pppoe-client"
:local command [:parse "/interface $item print"]
$command
The rest is left as an exercise for the reader. :D

Regards,
rock
by airock
Sun Mar 11, 2012 9:52 am
Forum: Scripting
Topic: Change ip address of specific interface
Replies: 4
Views: 35933

Re: Change ip address of specific interface

You need a "number" in order to identify the address to change because, generally, an interface might have more than one address. So the interface name is not a "key" to an unique address. If you are sure that your interface is assigned a single address you can use the following command: /ip address...
by airock
Sun Mar 11, 2012 9:10 am
Forum: Wireless Networking
Topic: RouterOS Tx Power Issue with SENAO/EnGenius EMP-3601 radio
Replies: 1
Views: 1068

RouterOS Tx Power Issue with SENAO/EnGenius EMP-3601 radio

I installed in a wifi AP/hotspot (802.11b/g) a SENAO/EnGenius EMP-3601 (EU2) LFP (chipset is Atheros AR5213) Card's datasheet declares the following TX powers (ETSI version): 802.11b - 1..11 Mbit: 20 dBm 802.11g - 6..48 Mbit: 20 dBm - 54 Mbit: 19 dBm When enabling the card, RouterOS reports the foll...
by airock
Sat Mar 10, 2012 7:26 am
Forum: RouterBOARD hardware
Topic: Using R52Hn in 802.11a/b/g (non-"n") with dual chain/antenna
Replies: 4
Views: 2120

Using R52Hn in 802.11a/b/g (non-"n") with dual chain/antenna

I have one question regarding the use of R52Hn cards in 802.11a/b/g modes (i.e. non-"n") with both chains enabled (and two different antennas, of course). This is something relatively new to me for this class of radio devices as, if I understood it correctly, it allows interesting applications that ...