Community discussions

MikroTik App

Search found 27 matches

by tabraham
Tue Oct 10, 2023 8:54 pm
Forum: Scripting
Topic: String Split to array
Replies: 2
Views: 2709

String Split to array

Hi I was wondering is there is a prebuild function or a script which can split strings to arrays for a given operator? ex: "5489->12->59->15663" this will have the split operator "->" and the output will be an array of { 5489 12 59 15663 } More complex (array of array) ex: "...
by tabraham
Wed Aug 30, 2023 10:07 am
Forum: Scripting
Topic: Persistent Environment Variables [SOLVED]
Replies: 50
Views: 40384

Re: Persistent Environment Variables [SOLVED]

I see. Then could you please confirm that the code above is the final version written by you works for arrays too?
by tabraham
Tue Aug 29, 2023 11:06 am
Forum: Scripting
Topic: Persistent Environment Variables [SOLVED]
Replies: 50
Views: 40384

Re: Persistent Environment Variables [SOLVED]

Hi Rex. The code seams to break in ROS 7.11 stable. for the store script
:if ($vvalue~"^(\(code\)|;\\(eva\?l )") do={:set $vvalue "(code)"};
The break is mainly in the regex part. could you please double check? Thanks
by tabraham
Fri Aug 25, 2023 11:08 pm
Forum: Scripting
Topic: Script input from console ... works!
Replies: 9
Views: 7514

Re: Script input from console ... works!

Thanks for the ideas but I think I failed to explain properly. I have a script which takes the input and sets as a global variable before doing further things. The scripts works perfectly when I run it from the terminal. But I want the script to run using scheduler too. When the scheduler runs the s...
by tabraham
Thu Aug 24, 2023 9:46 pm
Forum: Scripting
Topic: Script input from console ... works!
Replies: 9
Views: 7514

Re: Script input from console ... works!

Hi the whole thing works for be but I did not get the part where you said Put it like this with a starting "{" and a ending "}" in terminal. When using in script and schedule as stated earlier. . The script where I use the input (if there is nothing set in the global environment)...
by tabraham
Sun Jul 02, 2023 7:11 pm
Forum: General
Topic: SFTP no authentication if any private SSH key is imported
Replies: 2
Views: 1079

Re: SFTP no authentication if any private SSH key is imported

Can anyone confirm if the issue has been solved in the latest release?
by tabraham
Wed May 31, 2023 6:57 pm
Forum: General
Topic: SFTP no authentication if any private SSH key is imported
Replies: 2
Views: 1079

SFTP no authentication if any private SSH key is imported

Hello everyone, I believe there is a bug in the fetch SFTP mode for ROS 7.9.1 I found out that SFTP fetch download or Upload does not work when there is a SSH Public key is present. The issue persists even if the SFTP username is different from the imported SSH key and password is provided. Findings...
by tabraham
Fri May 12, 2023 12:07 pm
Forum: General
Topic: SSH-EXEC not working on ROS v7.9
Replies: 0
Views: 595

SSH-EXEC not working on ROS v7.9

I am not sure if it is indeed a bug or i am doing something wrong. So I explain the steps I did. Created the SSH key from the CHR which will be connecting to the other Mikrotiks via Local (LAN) / Wireguard (no filters) Imported the Private key in the CHR (/user/ssh-keys/private/ import user=$SystemU...
by tabraham
Tue May 09, 2023 1:31 pm
Forum: Scripting
Topic: Nested DO ON-ERROR scripts
Replies: 17
Views: 5896

Re: Nested DO ON-ERROR scripts

Thanks but i got some questions.
  • What is the default timeout? 2 minutes? As far as I have checked its about 1 minute. Is it possible to change the timeout?
  • Is it possible to have the whole script inside another mother :DO loop?
by tabraham
Tue May 09, 2023 11:36 am
Forum: Scripting
Topic: Nested DO ON-ERROR scripts
Replies: 17
Views: 5896

Re: Nested DO ON-ERROR scripts

Already so it is not compatible with v6... And I repeat that it is better that I do not comment on the desire to use it on such old versions full of hacks already known by everyone (except those who use them, apparently) worldwide.... Hahaha true... then I guess I will stick to 7.x only but then al...
by tabraham
Tue May 09, 2023 11:09 am
Forum: Scripting
Topic: Nested DO ON-ERROR scripts
Replies: 17
Views: 5896

Re: Nested DO ON-ERROR scripts

YOU wrote that you tested the script from version 6.2... Don't you read what you post? I see the script is in development mode still and thus the default header. When you said about wrong scripting, I thought the main content of the script. One more reason why on-error is not necessary, just write ...
by tabraham
Tue May 09, 2023 10:48 am
Forum: Scripting
Topic: Nested DO ON-ERROR scripts
Replies: 17
Views: 5896

Re: Nested DO ON-ERROR scripts

I am sorry I did not get you properly? Is it you using 6.2 or you are saying I am? I am using 7.9 and CHR on could. The script is supposed to run there.

I also checked the time required for the keys to be generated and they are close to a minute only.
by tabraham
Tue May 09, 2023 1:30 am
Forum: Scripting
Topic: Nested DO ON-ERROR scripts
Replies: 17
Views: 5896

Nested DO ON-ERROR scripts

Hello everyone. I am trying to implement a nested :do {} on-error{} script. The idea is to have a mother do loop to check if the script fails or not and then inside the child do and on-error loop is used to prevent the script action timeout error while signing the certificates. The problem is if som...
by tabraham
Sun Apr 30, 2023 1:34 am
Forum: The User Manager
Topic: User Manager V7.8 custom error messages
Replies: 4
Views: 6863

User Manager V7.8 custom error messages

Hello all, I am using the ne user manager in the cloud CHR to allow users to authenticate to multiple sites. The sites are connected to the could CHR via wire guard. Everything works fines. Now i am redesigning the login page so that I can have custom error messages. This was working with the v6.8 b...
by tabraham
Thu Mar 23, 2023 12:04 pm
Forum: General
Topic: Express VPN OVPN on mikrotik
Replies: 7
Views: 4182

Re: Express VPN OVPN on mikrotik

Anyone any update? I am also having the TLS handshake error for OVPN at ROS7
by tabraham
Tue Aug 27, 2019 2:24 am
Forum: General
Topic: The Dude 6.45.3 database imported but nothing in the clients side
Replies: 0
Views: 863

The Dude 6.45.3 database imported but nothing in the clients side

Hello, I recently had to reinstall my CHR due to disk failure. I have automated scripts running to make backup for the CHR as well as the DUDE database. Now in the new installation the system was successfully restored from the MikroTik backup file but when I import the DUDE database file, it says su...
by tabraham
Tue Aug 27, 2019 1:54 am
Forum: The Dude
Topic: The Dude 6.45.3 database imported but nothing in the clients side
Replies: 0
Views: 2524

The Dude 6.45.3 database imported but nothing in the clients side

Hello, I recently had to reinstall my CHR due to disk failure. I have automated scripts running to make backup for the CHR as well as the DUDE database. Now in the new installation the system was successfully restored from the MikroTik backup file but when I import the DUDE database file, it says su...
by tabraham
Mon Mar 18, 2019 6:13 pm
Forum: General
Topic: Strange Enviornment Variables in CHR everytime after restart
Replies: 0
Views: 766

Strange Enviornment Variables in CHR everytime after restart

Hello everyone. Is there anyone out there who is getting the same strange variables as me in CHR? These variables are created automatically after CHR restart. FYI I got not schedulers or scripts running but still after each restart these variables arrive. If i delete them manually, they are gone unt...
by tabraham
Tue Jan 01, 2019 5:46 am
Forum: Scripting
Topic: Calculate the difference between two dates
Replies: 7
Views: 10376

Re: Calculate the difference between two dates

Hello could you please validate the code? I am getting some errors. :local myfunc [:parse [/system script get date_compare source]]; \ :put [$myfunc date1="dec/31/2018 09:00:00" date2="jan/01/2018 09:30:00"] The script gets into an infinite loop :local myfunc [:parse [/system scr...
by tabraham
Wed Oct 18, 2017 8:09 pm
Forum: The Dude
Topic: Active Hotspot User Graph
Replies: 0
Views: 1244

Active Hotspot User Graph

Hello guys. I am new with the DUDE thing. Could you please guide me step by step on how can we get a graph for the active hotspot users for a Mikrotik device connected with CHR dude? we have several Mikrotik devices connected in several locations and all the devices have PPTP connection to our centr...
by tabraham
Wed Oct 18, 2017 8:04 pm
Forum: The Dude
Topic: Graph total active users in a hotspot with Dude and Cacti
Replies: 10
Views: 12799

Re: Graph total active users in a hotspot with Dude and Cacti

Hello guys.

I am new with the DUDE thing. Could you please guide me step by step on how can we get a graph for the active hotspot users for a Mikrotik device connected with CHR dude?
by tabraham
Sat Mar 25, 2017 6:32 pm
Forum: General
Topic: ROUTE BETWEEN MULTIPLE VPN CONN.
Replies: 1
Views: 948

Re: ROUTE BETWEEN MULTIPLE VPN CONN.

Can you post your route table, address list, firewall Nat, and firewall mangle?

I can give it a try... I have similar configuration but not over PPTP. My one is under different LAN and subnets
by tabraham
Thu Mar 23, 2017 1:33 pm
Forum: General
Topic: [SOLVED] Epson WF-3460 network printer not working
Replies: 5
Views: 5664

Re: Epson WF-3460 network printer not working

SOLVED after doing lots of trial and error finally i managed to solve the problem. now the printer is discover-able from both computers and mobile phones, even iOS AirPrint (Bonjour) is also working. all I did was to set an addesses list for my local subnets and use the NOT function for dst-address...
by tabraham
Thu Mar 23, 2017 1:25 pm
Forum: General
Topic: route all netflix traffic to ISP instead of VPN
Replies: 0
Views: 1571

route all netflix traffic to ISP instead of VPN

Hello everyone, I have L2TP vpn tunnel set up for my local subnets. Unfortunately, when using NETFLIX, the detects that I am using VPN and blocks me. I want to route all NETFLIX traffic without VPN and all other traffics through VPN. Can anyone guide me please? My current setup /ip route> print /ip ...
by tabraham
Tue Mar 21, 2017 11:47 am
Forum: General
Topic: [SOLVED] Epson WF-3460 network printer not working
Replies: 5
Views: 5664

Re: Epson WF-3460 network printer not working

hello Bryan, since all your devices are in same subnet, you can try setting a static DHCP IP or Static IP for the printer. My printer (wifi connected) IP had 100ms+ latency when pinged from mikrotik itself but later when I changed to LAN connection, the latency fell to 1ms. You can try putting a cab...
by tabraham
Mon Mar 20, 2017 7:51 pm
Forum: General
Topic: l2tp client issue- connecting
Replies: 9
Views: 10291

Re: l2tp client issue- connecting

schedule this script to run every 5-10 minutes (Or you can also schedule to run this script to run only in startup). I have scheduled to run it every 10 mins. The script checks the L2TP and does nothing if it is running, but if the connection is not running, it disables the interface and waits for 5...
by tabraham
Sun Mar 19, 2017 8:13 pm
Forum: General
Topic: [SOLVED] Epson WF-3460 network printer not working
Replies: 5
Views: 5664

[SOLVED] Epson WF-3460 network printer not working

Hello everyone, I have been struggling on successfully setting up my WF3640 multi-functioning printer so that the local clients can use it. Some unsuccessful tests which I ran are pointed below. *one important information, the clients are routed through L2TP VPN so that they don't receive my real pu...