Community discussions

Search found 22 matches

by icosasupport
Wed Jul 24, 2019 6:22 am
Forum: Announcements
Topic: v6.45.2 [stable] is released!
Replies: 206
Views: 35924

Re: v6.45.2 [stable] is released!

My CCR1009-7G-1C after upgraded to 6.45.x, it rebooted every night.
The logs says
"router was rebooted without proper shutdown, probaly kernel failure.
Kernel failure in previous boot."

Any solutions?
Welcome to the club! No fix afaik.
by icosasupport
Mon Jul 22, 2019 2:02 am
Forum: Announcements
Topic: v6.45.2 [stable] is released!
Replies: 206
Views: 35924

Re: v6.45.2 [stable] is released!

Is there any chance to login with MAC Telnet ?
it's a known issue with winbox. Try upgrading it to 3.19
by icosasupport
Sat Jul 20, 2019 1:38 am
Forum: Announcements
Topic: v6.45.2 [stable] is released!
Replies: 206
Views: 35924

Re: v6.45.2 [stable] is released!

Dear Mikrotik, When are you going to start testing your releases? I'm guessing never, since that would be a huge workflow change internally. When I see this in the patch notes "*) ospf - fixed possible busy loop condition when accessing OSPF LSAs;" and my routers are experiencing that problem, I won...
by icosasupport
Thu Mar 28, 2019 7:43 pm
Forum: General
Topic: Running IPv6 on Mikrotik? You're out of business in 12 days time
Replies: 32
Views: 15443

Re: Running IPv6 on Mikrotik? You're out of business in 12 days time

Don't worry you can use kid control on your core routers to block them. :P

Seriously though, what is up over @ MT ?
by icosasupport
Wed Dec 20, 2017 9:37 pm
Forum: Scripting
Topic: Howto use a single script for multiple HW boards ? [SOLVED]
Replies: 8
Views: 684

Re: Howto use a single script for multiple HW boards ? [SOLVED]

Hi Martin,

Glad to hear that works for you!.

I break the code up like that to keep repetition down, just in case something needs to change there's a single place to change it.

Cheers,
Icosa.
by icosasupport
Tue Dec 12, 2017 5:42 pm
Forum: Scripting
Topic: Howto use a single script for multiple HW boards ? [SOLVED]
Replies: 8
Views: 684

Re: Howto use a single script for multiple HW boards ? [SOLVED]

Hi Martin, This sounds like a job for dynamic scripting. It's a bit more advanced, however it looks like it can be used to solve your problem. Please be careful of the spaces at the end of the strings, they are required. Make sure to replace the default-name of your wireless interface if it's differ...
by icosasupport
Thu Dec 07, 2017 6:45 pm
Forum: Scripting
Topic: Howto use a single script for multiple HW boards ? [SOLVED]
Replies: 8
Views: 684

Re: Howto use a single script for multiple HW boards ? [SOLVED]

I've tried embedding the error catching as you have described, but I still have the same issue. I've also upgraded the RouterOS to the latest on the "Metal 2SHPn" just in case and the same result... Any other idea ? I don't want to start breaking out this script into many small one, say { Core func...
by icosasupport
Thu Nov 30, 2017 6:25 pm
Forum: Scripting
Topic: Howto use a single script for multiple HW boards ? [SOLVED]
Replies: 8
Views: 684

Re: Howto use a single script for multiple HW boards ? [SOLVED]

We are using 2 types of radios: "BaseBox 2" & "Metal 2SHPn" We'd like to write a single script to configure them, but the problem is that the OS tries to interpret the lines that will NOT be executed and fails Ex: :global Board [/system resource get board-name]; ... :if ($Board = "BaseBox 2") do={ ...
by icosasupport
Wed Nov 22, 2017 7:11 pm
Forum: Scripting
Topic: Functions and function parameters
Replies: 38
Views: 23421

Re: Functions and function parameters

how do you call the Functions* after running this script? Do I have to use
 /system script run "Functions"
or there is another fancy way( for ex.
:local testfunc $Functions
)
I have some examples of that here viewtopic.php?f=9&t=40507#p627016

Icosa.
by icosasupport
Tue Nov 21, 2017 11:52 pm
Forum: Scripting
Topic: script that warned me by email that a user has been added to my DHCP server
Replies: 5
Views: 2383

Re: script that warned me by email that a user has been added to my DHCP server

Hello, I want a script that warned me by email that a user has been added to my DHCP server. Not as a wireless user but as an intruder on my network. I have a fixed number of devices on the router board. If there is still a device, I want this script to warn me. Does anyone have experience with tha...
by icosasupport
Fri Nov 17, 2017 9:27 pm
Forum: Scripting
Topic: Turning off and on rule
Replies: 1
Views: 284

Re: Turning off and on rule

Hi, The scheduler provide an Interval setting which allow the scrip to execute every XXXX amount of time. https://wiki.mikrotik.com/wiki/Manual:System/Scheduler /system scheduler add interval=30s name=Repeat-Rule on-event="[INSERT SCRIPT TO RUN HERE]" start-date=Jan/01/2000 start-time=00:00:00 Icosa.
by icosasupport
Tue Nov 14, 2017 2:50 am
Forum: Scripting
Topic: Extract timeout from ping command and write it to variable.
Replies: 1
Views: 689

Re: Extract timeout from ping command and write it to variable.

Hi skubriev, This may do what you require. You can add any additional stats you require from the flood-ping tool. Cheers, Icosa. # IP ADDRESS TO PING :local ipping 8.8.8.8 # PING COUNT SET :local cnt 1 :local rtt :local avgrtt [:tool flood-ping address=$ipping count=$cnt do={ :if ($sent=$cnt) do={ :...
by icosasupport
Tue Nov 14, 2017 2:16 am
Forum: Scripting
Topic: if condition for array
Replies: 1
Views: 650

Re: if condition for array

Hi erizetael, This should be close to what you wish to achieve. Cheers, Icosa. :local names [:toarray "name1,name2,name3,name4,name5"] :local profile "800menit" /tool user-manager :foreach user in=$names do={ if([:tool user-manager user [find username=$user]] = "") do={ [:tool user-manager user add ...
by icosasupport
Sat Nov 11, 2017 1:07 am
Forum: General
Topic: Howto join several VLANs on a Bridge?
Replies: 5
Views: 4630

Re: Howto join several VLANs on a Bridge?

Hi, - Is the ARP request tagged and the reply too? (Yes, all traffic is encapsulated in the VLAN) - The MAC address shall be the same of the physical port or not? (Not Always) - If we have a VLAN on a bridge, having assigned to it an IP address, the MAC is always the same (for VLAN, bridge and physi...
by icosasupport
Thu Nov 09, 2017 8:57 pm
Forum: General
Topic: Howto join several VLANs on a Bridge?
Replies: 5
Views: 4630

Re: Howto join several VLANs on a Bridge?

I see here http://www.icplus.com.tw/pp-IP178C.html that it supports VLAN's to some degree. "Support port base VLAN & tag VLAN" You problem will be if you want different ports on the switch to access different VLANs on the router you HAVE to untag them on the switch if the device is NOT capable of VL...
by icosasupport
Thu Nov 09, 2017 7:35 pm
Forum: General
Topic: Howto join several VLANs on a Bridge?
Replies: 5
Views: 4630

Re: Howto join several VLANs on a Bridge?

Hi, First off I'm going to make some presumptions about your environment since you haven't specified model numbers or OS versions. Your diagram #2 shows some weird addressing, that doesn't match with the config given, again I'll presume it's a typo. When attempting to do what you want from a router,...
by icosasupport
Wed Nov 08, 2017 9:26 pm
Forum: Scripting
Topic: Useful scripts
Replies: 52
Views: 92081

Re: Useful scripts

Hey all, Need to calculate your IP subnets but don't have access to the internet? How about as part of scripts? Maybe to create dynamic IP pools? Here's our IP subnet calculator function. It's probably not optimized in the calculation part, but it does work so we're just using it 'as is' We make thi...
by icosasupport
Wed Nov 08, 2017 8:05 pm
Forum: Scripting
Topic: Useful scripts
Replies: 52
Views: 92081

Re: Useful scripts

Hey all, Here's an advanced function that will add a device to Observium http://docs.observium.org/api/#adding-a-device via the REST API call. You do however need the licensed version to use the API calls . This has not been fully tested in the latest version! (17.9.xxx) so some adjustments may have...
by icosasupport
Wed Nov 08, 2017 7:31 pm
Forum: Scripting
Topic: Useful scripts
Replies: 52
Views: 92081

Re: Useful scripts

Hey all, Here's a simple function that will replace a single character in a string of text with another To call the function simply reference it in your code. The first parameter is the string to replace a character in Parameter 2 is the character to find Parameter 3 is the "replacement" character :...
by icosasupport
Wed Nov 08, 2017 7:22 pm
Forum: Scripting
Topic: Useful scripts
Replies: 52
Views: 92081

Re: Useful scripts

Hey all, Here's a script that reads a "config" file, parses it as a key:value pair and returns an array of key:value pairs with the K:V pair as an array also. Each line of the config file represents the index value of the main array, and then each key:value pair in the array can be indexed as positi...
by icosasupport
Wed Nov 08, 2017 6:57 pm
Forum: Scripting
Topic: Useful scripts
Replies: 52
Views: 92081

Re: Useful scripts

Hi all, Here's a script to convert strings to upper or lower To call it simply reference the function in your code and call it: :local replace [:parse [:system script get replace-upper-lower source]] :set $var [$replace "convert me to upper" ] OR :set $var [$replace "CONVERT ME TO LOWER" 1 ] Just ca...
by icosasupport
Wed Nov 08, 2017 5:12 pm
Forum: Scripting
Topic: UPPER / LOWER STRING
Replies: 3
Views: 1533

Re: UPPER / LOWER STRING

Hi all, I saw this and decided to re-write it, to be used as a function. I used proper arrays so the reference could be indexed instead with the index call ($array->$index) To call it simply reference the function in your code and call it: :local replace [:parse [:system script get replace-upper-low...