Community discussions

MikroTik App

Search found 35 matches

by VincentL
Mon Jan 08, 2024 1:28 pm
Forum: Virtualization
Topic: Zerotier packages for CHR ? [SOLVED]
Replies: 3
Views: 14973

Re: Zerotier packages for CHR ? [SOLVED]

Hello,

We 'd like to use ZeroTier on CHR without need to use a container.
One year after the original post, did you have a plan to release a native package for this plateform ?

Regards,

Vincent
by VincentL
Mon May 23, 2022 8:38 pm
Forum: Scripting
Topic: [SMS] Timestamp, system date and case sensitive [SOLVED]
Replies: 13
Views: 2604

Re: [SMS] Timestamp, system date and case sensitive [SOLVED]

@rextended, It's just awesome ! I have a lot to learn, especially doing thing more simple. I've read, understood and used both of your examples, and finally, the second fit perfectly to my needs. For other people that fall in this thread : :local phoneNumber "+XXyourPhoneNumber" :local inM...
by VincentL
Mon May 23, 2022 6:34 pm
Forum: Scripting
Topic: [SMS] Timestamp, system date and case sensitive [SOLVED]
Replies: 13
Views: 2604

Re: [SMS] Timestamp, system date and case sensitive [SOLVED]

Thank you for your help and patience.
As it seems to be impossible to get only the timestamp from /tool/sms/inbox and compare to current date, I ll find another way to send me a SMS from my provider when he warn me that I'm over quota.

Regards,
Vincent
by VincentL
Mon May 23, 2022 3:19 pm
Forum: Scripting
Topic: [SMS] Timestamp, system date and case sensitive [SOLVED]
Replies: 13
Views: 2604

Re: [SMS] Timestamp, system date and case sensitive [SOLVED]

To be more precise, how does it $arrMonths find the correct value when $input 1 3 does not contains 3 characteres)

Vincent
by VincentL
Mon May 23, 2022 3:05 pm
Forum: Scripting
Topic: [SMS] Timestamp, system date and case sensitive [SOLVED]
Replies: 13
Views: 2604

Re: [SMS] Timestamp, system date and case sensitive [SOLVED]

Rextended,

I don't understand this line == :local intMonth ([:tonum ($arrMonths->[:pick $input 1 3])] * 100)
How does it works ?

Regards,

Vincent
by VincentL
Mon May 23, 2022 2:44 pm
Forum: Scripting
Topic: [SMS] Timestamp, system date and case sensitive [SOLVED]
Replies: 13
Views: 2604

Re: [SMS] Timestamp, system date and case sensitive [SOLVED]

(And, I see, I can't compare strings)
by VincentL
Mon May 23, 2022 2:42 pm
Forum: Scripting
Topic: [SMS] Timestamp, system date and case sensitive [SOLVED]
Replies: 13
Views: 2604

Re: [SMS] Timestamp, system date and case sensitive [SOLVED]

Rextended,

Thank you so much for your help.
I even didn't know how to do a function for rOS.
I 'll study it and apply. I'm working on a script that ll send me a SMS when I' ll receive a warn from my provider.

Regards,

Vincent
by VincentL
Mon May 23, 2022 2:03 pm
Forum: Scripting
Topic: [SMS] Timestamp, system date and case sensitive [SOLVED]
Replies: 13
Views: 2604

Re: [SMS] Timestamp, system date and case sensitive [SOLVED]

Hello Rextended,

I was thinking of putting the current date and timestamp in variables then comparing them. It is not possible ?

Regards,

Vincent
by VincentL
Mon May 23, 2022 1:50 pm
Forum: Scripting
Topic: [SMS] Timestamp, system date and case sensitive [SOLVED]
Replies: 13
Views: 2604

[SMS] Timestamp, system date and case sensitive [SOLVED]

Hello All, I'm very embarassed with a little thing : I'd like to compare the SMS timestamp to date time, but TimeStamp is formatted like that : May/23/2022 and system clock is like that : may/23/2022. I'm looking for a simple way to make it case insensitive. I'm running ros7. Could you help me with ...
by VincentL
Thu Mar 31, 2022 11:37 am
Forum: Scripting
Topic: [SNMP] Reset oid name
Replies: 6
Views: 1033

Re: [SNMP] Reset oid name

Hello pe1chl,

Based of what I've read on Telegraf forum, Telegraf only perform "snmpget" and can't "walk" on the tree.
Maybe nightly builds can do this, but I want to use only stable version.

Regards,

Vincent
by VincentL
Wed Mar 30, 2022 12:09 pm
Forum: Scripting
Topic: [SNMP] Reset oid name
Replies: 6
Views: 1033

Re: [SNMP] Reset oid name

@pe1chl :

Thank you for your informations and advices.
I ll try to see if Telegraf is able to "walk" and how I can make it work with my Flux queries if indexes are differents from one router to another one.

Regards,

Vincent
by VincentL
Wed Mar 30, 2022 11:20 am
Forum: Scripting
Topic: [SNMP] Reset oid name
Replies: 6
Views: 1033

Re: [SNMP] Reset oid name

Ok,
I've found a workaround.
I just need to destroy all queues, reboot and recreate them in the order I'd like to have.
If you have a better way, without reboot, feel free to post.

Regards,

Vincent
by VincentL
Wed Mar 30, 2022 9:53 am
Forum: Scripting
Topic: [SNMP] Reset oid name
Replies: 6
Views: 1033

[SNMP] Reset oid name

Hello, I need to retrieve the "name" field from queue simple. From Telegraf, I'm asking a specific OID (.1.3.6.1.4.1.14988.1.1.2.1.1.2.1 and .1.3.6.1.4.1.14988.1.1.2.1.1.2.2). The queue I'm asking for are in first position in /queue simple but, because other simple queue was previously cre...
by VincentL
Mon Mar 28, 2022 4:45 pm
Forum: Scripting
Topic: [ROS6.x] Generate a random number in a range.
Replies: 2
Views: 1110

Re: [ROS6.x] Generate a random number in a range.

@Jotne :
Thank you for your links.
I've found the first one, and it's what I've called "tricky" .
I'll have a look to the second, I've have not found previously.

Regards,

Vincent
by VincentL
Mon Mar 28, 2022 3:22 pm
Forum: Scripting
Topic: [ROS6.x] Generate a random number in a range.
Replies: 2
Views: 1110

[ROS6.x] Generate a random number in a range.

Hello,

I'm jealous about the ROS7 rndnum !
At the moment, I can't upgrade all my routers, so I'm looking for a simple way to generate a random number between a given range.
I found some examples on Internet, but the are really tricky.
Did you have tips to do this easily ?

Regards,

Vincent
by VincentL
Thu Mar 10, 2022 3:39 pm
Forum: Scripting
Topic: Bandwidth test daily
Replies: 15
Views: 10731

Re: Bandwidth test daily

Hello,

Reply to myself : 1048576 == 1024*1024, so Byte to MegaBytes conversion.

Regards,

Vincent
by VincentL
Fri Mar 04, 2022 5:24 pm
Forum: Scripting
Topic: Bandwidth test daily
Replies: 15
Views: 10731

Re: Bandwidth test daily

Hello, I need to collect datas from speedtest, or ping and bandwithtest. While googlize it, I found this thread. My skills in routeros scripting are low but the Punkaker script with comment is clear to but understable. Now I' d like to understand this line : :set $avrRX ("rx-total-average: &quo...
by VincentL
Mon Nov 29, 2021 11:28 am
Forum: General
Topic: [Let'Encrypt] Allow matched regexp to connect
Replies: 7
Views: 2281

Re: [Let'Encrypt] Allow matched regexp to connect

Hello, Thank for your replies. @msatter : I've tried with these URL without success because this is for request. As far as I understand, replies to request come from multiple IP addresses which are not published by Let'sEncrypt ( https://letsencrypt.org/docs/faq/#what-ip-addresses-does-let-s-encrypt...
by VincentL
Mon Nov 29, 2021 10:46 am
Forum: General
Topic: [Let'Encrypt] Allow matched regexp to connect
Replies: 7
Views: 2281

[Let'Encrypt] Allow matched regexp to connect

Hello, For one of our customer, we are using an ACL to filter inbound connection to ports 80 and 443. This ACL is renewed every days by a script. Now, I need to allow IPs from Let's Encrypt to renew certificate. Connexion from Let'sEncrypt use this template : http://*/.well-known/acme-challenge/* I'...
by VincentL
Wed Nov 03, 2021 4:35 pm
Forum: Announcements
Topic: v6.49 [stable] is released!
Replies: 219
Views: 96806

Re: v6.49 [stable] is released!

Hello, We own and use a bunch of "still useful" rb600 (ppc, powerpc) for voip. We 've tried to upgrade some of our testing board by the common way (through Winbox, package upgrade then firmware upgrade) Everything goes fine until we reboot after firmware upgrade then, the board crash and a...
by VincentL
Wed May 19, 2021 3:52 pm
Forum: Forwarding Protocols
Topic: MIkrotik BGP Monitoring
Replies: 64
Views: 38226

Re: MIkrotik BGP Monitoring

Hello, In 2021, 2016' Pincio's script is still working (https://github.com/pincioc/check_bgp_mikrotik_nagios) But, with recent version of firmware, you have to use this API (https://github.com/candlerb/MikroTikPerl/tree/candlerb/newlogin) instead of those described (https://github.com/efaden/MikroTi...
by VincentL
Tue Sep 08, 2020 5:21 pm
Forum: RouterBOARD hardware
Topic: RB433 Capacitors
Replies: 2
Views: 952

Re: RB433 Capacitors

@r00t :

Thanks you.

Vincent
by VincentL
Tue Sep 08, 2020 9:20 am
Forum: RouterBOARD hardware
Topic: RB433 Capacitors
Replies: 2
Views: 952

RB433 Capacitors

Hello, I own a rb433 without capacitors. Previous owner removed it because of boot loop. He said that capacitors were damaged. The I m able to sold news ones and testing the board. Does someone is able to provide me the values of c826, c830 and c841(I've found 6.3volt, 560 µF). And c811 too. I haven...
by VincentL
Mon Mar 23, 2020 3:29 pm
Forum: General
Topic: [Monitoring - Cacti] Missing OID for inbound traffic
Replies: 0
Views: 1646

[Monitoring - Cacti] Missing OID for inbound traffic

Hello, We are managing and monitoring a lot of Mikrotik. For two of them, we can't monitore inbound traffic and outbound traffic montoring time is very short and reseted. I can't find why. This is the return of /interface print oid : 1 R name=.1.3.6.1.2.1.2.2.1.2.2 actual-mtu=.1.3.6.1.2.1.2.2.1.4.2 ...
by VincentL
Wed Feb 27, 2019 2:51 pm
Forum: Announcements
Topic: v6.44 [stable] is released!
Replies: 218
Views: 97245

Re: v6.44 [stable] is released!

Currently looks like missing IPsec configuration after an upgrade is caused by having a 6.44beta version installed at some point in the past. If the router is missing some IPsec related configuration after an upgrade, please generate a supout.rif file as soon as possible before doing any other chan...
by VincentL
Wed Feb 27, 2019 1:13 pm
Forum: Announcements
Topic: v6.44 [stable] is released!
Replies: 218
Views: 97245

Re: v6.44 [stable] is released!

Strange ... IPSec works for me :-) after upgrade 6.43.12 -> 6.44

IPSeced IPIP and GRE tunnels work smooth after upgrade, self-reconnected without problems. Comments still in place.
Some of my device are in 6.43.12. I ll test.
Thank you for your reply.

Vincent
by VincentL
Wed Feb 27, 2019 11:11 am
Forum: Announcements
Topic: v6.44 [stable] is released!
Replies: 218
Views: 97245

Re: v6.44 [stable] is released!

Hello, After upgrade from 6.43.8 to 6.44 all my comments were lost for /ip ipsec policies and peers. I manage more than 60 VPN to one of my Mikrotiks and Mikrotiks I installed to customer use sometimes 3 or more VPN Can you imagine the amount of work needed to put it back in order if I update all my...
by VincentL
Mon Feb 25, 2019 10:16 pm
Forum: RouterBOARD hardware
Topic: Find a Mikrotik with her Serial Number
Replies: 0
Views: 1304

Find a Mikrotik with her Serial Number

Hello,

I manage a lot of Mikrotik and I'm looking for one I lost.
I have her serial number, so I m looking for a way to automate my search and find it.
Maybe that Dude can help me, but I don't know how.

Does someone knows how to help me ?

Kind regards,

Vincent
by VincentL
Mon Feb 04, 2019 3:56 pm
Forum: Scripting
Topic: Script on 6.41RC - fetch not working
Replies: 5
Views: 3637

Re: Script on 6.41RC - fetch not working

Hello,
I found what's going wrong for me : Mikrotik tried to fetch script through public network gateway to resolve a private IP for the server which is on another site and connected with a VPN.
I opened a TFTP with a public IP.

Vincent
by VincentL
Wed Jan 30, 2019 3:55 pm
Forum: Scripting
Topic: Script on 6.41RC - fetch not working
Replies: 5
Views: 3637

Re: Script on 6.41RC - fetch not working

Hello, Same problem here with 6.43.8. FTP server is "The Dude" It works with fileZilla and WinSCP (ftp mode), but tool fetch doesn't works. It give to me "status: failed" ans "failure: connection timeout" This is my command : /tool fetch address=x.x.x.x src-path=myscrip...
by VincentL
Tue Oct 09, 2018 2:42 pm
Forum: General
Topic: [Winbox] Connect to routerboard with key
Replies: 0
Views: 715

[Winbox] Connect to routerboard with key

Hello,

I'd like to know if there is another way than password to connect to routerboard with Winbox ?
For example, with public key like ssh.

Thank for your replies.

Vincent
by VincentL
Wed Aug 08, 2018 5:57 pm
Forum: The Dude
Topic: Dude doesn't show all Mikrotik's IP
Replies: 0
Views: 2160

Dude doesn't show all Mikrotik's IP

Hello, I d'like to got all address from all my mikrotik by using The Dude and then, export all to a .csv. Sadly I found that sometimes, I have all address from all interfaces wrote down in Dude for one device, but most of time I only got one address that come from the Network I scanned. So what I do...
by VincentL
Wed Aug 08, 2018 5:41 pm
Forum: Scripting
Topic: Adding script to Mikrotik
Replies: 2
Views: 3171

Re: Adding script to Mikrotik

Hello miochoice, Finally that worked. But I used another way. Instead of trying to import a fetched script, I made a new one with all required commands, I named it myscript.auto.rsc and I put it in Dude. Now when script is fetched, it is automatically played and commands are added to Mikrotiks. Plea...
by VincentL
Fri Jul 27, 2018 6:59 pm
Forum: Scripting
Topic: Adding script to Mikrotik
Replies: 2
Views: 3171

Adding script to Mikrotik

Hello, I m trying to automatically update all my mikrotiks from the dude. - I found and adapted a script for my needs. - I placed it to the Dude and made a tool using "fetch" to add it to all Mikrotik ( around 60) Now I 'd like to import my script to /system script and find a way to schedu...
by VincentL
Fri Feb 03, 2017 4:45 pm
Forum: General
Topic: Mikrotik Router OS / RouterBoard and Snort IDS/IPS
Replies: 15
Views: 31780

Re: Mikrotik Router OS / RouterBoard and Snort IDS/IPS

Hello, Thanks you a lot for this topic. With it and the help of Noah Dietrich, from Snort Technology, I m now able to use Snort with my Mikrotik. I m using tmux for launching the commands. As my snort vm use ubuntu, this is the command I m using : sudo trafr -s |sudo snort -c /etc/snort/snort.conf -...