Every language has its peculiarities. Java is very like C++. C++ is an extension of C so very similar. PHP has a very C-like syntax and uses much of the C library. It also borrows extensively from Java and C++. JavaScript is kind of similar to Java. Fortran, Cobol, and Forth are like nothing else, e...
Mikrotik scripting language is a strange beast, nothing like C, C++, C#, Java, PHP, JavaScript, Fortran, Cobol, Forth, 8086, M68k, 6800, TMS740, TMS720, 8051, or any of the other languages I know.
$q comes from the lines I didn't include in order to keep things concise to the problem: :local qid; :local qplan 0; :local qq; :local qpm; :foreach q in=[/queue simple find parent!=none] do={ The Queue names are things like V05_172.16.20.5, W03_172.16.20.14, H07_172.16.20.5, X10_172.16.20.15, B18_1...
I have client addresses mapped to 172.20.100.0/22. Every now and again, I want to redirect them, one at a time, to a server where they'll be asked to update their information. That server is at 172.21.100.4 As an example, I have /ip firewall nat chain=dstnat src-address=172.20.100.8 action=dst-nat t...
This shouldn't be complicated but I'm not sure how to do this. I'm writing a script that reconfigures a variety of 5-port routers to how we actually use them, which is nothing like the default configuration. I want one part of the script to work like this: IF ether3 has poe-out available, set poe-ou...
That works! Corrected script: { :local todate [/system clock get date]; # $day is a string. It may have a preceeding 0. :local day [:tonum [:pick $todate 4 6]]; # $month = 3-letter month name; $mon = month number. :local months {"jan";"feb";"mar";"apr";"m...
Here is my script: { :local todate [/system clock get date]; # $day is a string. It may have a preceeding 0. :local day [:tonum [:pick $todate 4 6]]; # $month = 3-letter month name; $mon = month number. :local months ("jan","feb","mar","apr","may",&q...
I need something different than the usual hotspot and I'm having difficulty figuring how to do it. This is going into a seasonal trailer park. Currently clients arrive in the spring, power up their CPE, call us up to tell us they have no internet, we then ask what the last day of their intended stay...
I want a temperature sensor that can plug into the USB port on an RB750UP and allow me to, via a script, read the temperature. Primarily, I want to read the temperature inside the equipment shed at a remote tower to make sure it hasn't gotten too cold (meaning the heater is busted) or too hot (meani...
I managed to solved the dead LED issue by going to the /system LED menu and creating entries for each LED on each ether and setting the type to interface activity.
I am having the same problem. I found this thread because the LEDs on one of the RB750r2s we got didn't light when in use. They light when the unit is powered up, but when you plug a cable into a port and a connection is made, they stay dark. On a second RB750r2, they behaved the way they did on the...
I suppose I could do that, have a script with ugly output run once a minute and set the globals I need, and then grab the globals from the script that is called by SSH. That might be the only workable solution. Thanks for the idea.
What you gave me gives me the exact same problem I was complaining about. /system script run script1 name: ether1 rx-packets-per-second: 244 rx-bits-per-second: 232.1kbps rx-drops-per-second: 0 rx-errors-per-second: 0 tx-packets-per-second: 32 tx-bits-per-second: 38.0kbps tx-drops-per-second: 0 tx-e...
I haven't had this problem before so I'm asking for a bit of help. Here's my script so far: :local tx; :local rx; /interface monitor [/interface find name="ether1"] once do={ :set tx $"tx-bits-per-second"; :set rx $"rx-bits-per-second" }; put "{\tTxRate: $tx,\r\n\t...
I realised last night as I nodded off to sleep that I could run the script and replace the put instruction with a fetch instruction which would then send the data to a web-server script which would then store it into a database for me, which is where I want it to end up anyways. I had also thought a...
I have this simple script6 which works: :local i :foreach i in=[/queue simple find name!="AllQueues"] do={:put ( "IP: " . [/queue simple get $i target-addresses] . "\tBytes: " . [/queue simple get $i bytes] . "\t");} It generates a chart with the target-addres...
I have one RB750 and two RB751U. Got the RB750 first with it running 5.14. Eth1 was WAN with Eth2 through Eth5 being on a bridge with a wire going to each room. Powered by the brick it came with. No PoE. It ran great for 3 months. Then it just suddenly, for no apparent reason, stopped working on Eth...
After some delays, the RB493G is installed with its Vantec Go-2.0 USB hub. And it kind-of talks to the new APC Back-UP ES 750. The only thing it is actually able to see is the Serial Number: 4B1023P45521. However, while installing the box in its new home, I took my EeePC 901 Netbook with me. The net...
We have an RB450G with rOS 5.14 sitting between our 24-port switch and the wireless connection to the next building where we have another RB450G acting as our internet gateway and firewall. The switch is on Ether5 and the wireless connection is on Ether4 and the two are ports on bridge1 . In order t...
Mine is a Vantec Go-2.0 powered USB hub. The APC I tried it with is an older one. I'll be trying it with a new APC tomorrow. I'll post on that after I'm done.
[quote="Radek"]Janis: I tryed to add new ups trough Terminal. Now I was succesfull. But I can't still change the port. I can see only choice serial0 despite of USB in menu System Resources is printed. Have I to set up the USB? There is possible to see the possibilities for setup. I am havi...
I'm using an RB450G. Version 5.13 seems to have bug in MLPPP where one line connects with 8 connections and the remaining 4 don't connect at all. I thought I'd try 4.17 just in case.
I opened a new terminal and typed in "/system package downgrade" and it worked fine.
Here's my situation: I have 300 users and I want to set up a system where the MT will do the following: 1) auto-generate an outbound/inbound queue for each active user 2) load-balance all of the users so that none is hogging the bandwidth. 3) split the outbound traffic into 2 so that it can be load-...
I'm trying to set up a 1:1 NAT for a single client. Their LAN IP address is 192.168.102.109. Their public IP address is 69.165.166.225. In Firewall-NAT, I've set the following: Chain: dstnat dst address: 69.165.166.225 in.Interface: pppoe-out1 action: dst-nat To Addresses: 192.168.102.109 Chain: src...
So here's how it's set up: Security profile is set up. wlan2 is set to station pseudobrdige. bridge1 is created. ether1 is added to bridge1 wlan2 is added to bridge1 IP address is added to bridge1. Tweaking a bit of the security profile finally gets wlan2 to connect. Yes, it works. wlan1 is set to a...
I already looked at that before my first post. It describes what you were describing in your previous email, creating a bridge from 2 radios, an interesting concept for sure. I'm just trying to create a bridge across one board.
The head-end is not Mikrotik and I'm not about to change a dozen radios up there to make this work.
The head-end is using just normal 802.11a radios in AP mode which bridge between their radio and ethernet sides. To be precise, the one I want to connect to happens to be a Tranzeo TR5PLUS.
I'm trying to build a repeater station. My unit has 2 wireless cards, wlan1 and wlan2. wlan2 is the backhaul radio which connects to the head-end. wlan1 is the AP which clients are suppose to connect to. eth1 is the ethernet port which the person hosting the repeater station can use to surf the inte...
if the ISP supports it, you could use MLPPP: http://forum.mikrotik.com/viewtopic.php?f=13&t=30559&p=150448& RouterOS MLPPP There is now Multilink PPP support in PPPoE client, starting with v3.10. PPPoE client “interface” property has been changed to “interfaces”, and new property in sta...