Community discussions

MikroTik App

Search found 21 matches

by FRANKMUNOZAPURE
Fri Mar 07, 2025 3:10 pm
Forum: Scripting
Topic: Hotspot Users Expiring Before Their Allocated Time (RouterOS v7.17.2)
Replies: 6
Views: 1795

Re: Hotspot Users Expiring Before Their Allocated Time (RouterOS v7.17.2)

:local userprofile [ip hotspot user get [find where name="$user"] profile] :local limituptime [/ip hotspot user get [find where name="$user"] limit-uptime] :if ($limituptime = "") do={:log info "El usuario $user no tiene limit-uptime definido." :set limitupti...
by FRANKMUNOZAPURE
Wed Feb 26, 2025 1:54 pm
Forum: Scripting
Topic: Add comment to mac address when the device appears connected in DHCP SERVER LEASES
Replies: 3
Views: 1433

Add comment to mac address when the device appears connected in DHCP SERVER LEASES

Dear friends, I appeal to your good will to please help me with a script that when the mac address XX:XX:XX:XX:XX:XX connects to my RB, I assign it a comment and also make it static, on the other hand I enable a rule in IP HOTSPOT IP BINDING and copy that static IP address into said rule. Thanks for...
by FRANKMUNOZAPURE
Tue Feb 18, 2025 12:24 pm
Forum: Scripting
Topic: Hotspot Users Expiring Before Their Allocated Time (RouterOS v7.17.2)
Replies: 6
Views: 1795

Re: Hotspot Users Expiring Before Their Allocated Time (RouterOS v7.17.2)

Friend, I have this script in version 7 and so far it has worked wonderfully for me. I hope it can help you: :local comment "IN USE" :local userprofile [ip hotspot user get [find where name="$user"] profile] :if ([/ip hotspot user get $user comment]="") do={[/ip hotspot...
by FRANKMUNOZAPURE
Sat Jan 18, 2025 12:23 pm
Forum: Scripting
Topic: script for simple failover
Replies: 4
Views: 2949

Re: script for simple failover

It is impossible for the "WAN and LAN" ports to be on a single bridge sir.
by FRANKMUNOZAPURE
Tue Oct 15, 2024 4:31 am
Forum: General
Topic: DHCP server [SOLVED]
Replies: 1
Views: 461

DHCP server [SOLVED]

I just configured a DHCP server for a HOTSPOT, but it assigns the IP addresses in descending order, I mean from x.x.x.254-- x.x.x.253-- x.x.x.252, how do I assign the IP addresses in ascending order, that is; x.x.x.2-- x.x.x.3-- x.x.x.4 and so on
by FRANKMUNOZAPURE
Mon Oct 14, 2024 1:33 pm
Forum: Scripting
Topic: Help with this script
Replies: 12
Views: 2856

Re: Help with this script

Please clarify that for me friend REXTENDED.
by FRANKMUNOZAPURE
Sun Oct 13, 2024 4:30 pm
Forum: Scripting
Topic: Help with this script
Replies: 12
Views: 2856

Re: Help with this script

:local cmac $"mac-address"
:foreach RANDOOM in=[/ip hotspot active find user="$username" mac-address!=$cmac] do={
  /ip hotspot active remove $RANDOOM}

Friend REXTENDED, but is the script the way I wrote it wrong?
by FRANKMUNOZAPURE
Sat Oct 12, 2024 12:55 pm
Forum: Scripting
Topic: Help with this script
Replies: 12
Views: 2856

Re: Help with this script

I want to eliminate users who connect to the hotspot with a different mac address than the user who is already connected first, I hope you understand me
by FRANKMUNOZAPURE
Sat Oct 12, 2024 12:39 pm
Forum: Scripting
Topic: Help with this script
Replies: 12
Views: 2856

Re: Help with this script

Thanks for responding friend Rextended.
This script goes in: IP HOTSPOT USER PROFILE SCRIPT and the firmware is 6.49.17

I want to use it to eliminate those clients who use random Macs on their computers, I hope you understand me.
by FRANKMUNOZAPURE
Tue Oct 08, 2024 4:57 pm
Forum: Scripting
Topic: Help with this script
Replies: 12
Views: 2856

Re: Help with this script

Rextended friend, can you help me?


Thank you.
by FRANKMUNOZAPURE
Sun Oct 06, 2024 1:17 pm
Forum: Scripting
Topic: Help with this script
Replies: 12
Views: 2856

Re: Help with this script

Can someone help me please.
by FRANKMUNOZAPURE
Sat Oct 05, 2024 4:10 pm
Forum: Scripting
Topic: Help with this script
Replies: 12
Views: 2856

Help with this script

Mr. Rextended, I see that you are a person who knows a lot about scripts. :local cmac $"mac-address" :foreach RANDOOM in=[/ip hotspot active find user="$username" mac-address!=$cmac] do={ /ip hotspot active remove $RANDOOM} Can you tell me why the script doesn't work? Thank you.
by FRANKMUNOZAPURE
Tue Sep 03, 2024 1:54 am
Forum: General
Topic: Which firmware is better, V6 or V7
Replies: 4
Views: 2236

Which firmware is better, V6 or V7

Gentlemen, what is the difference between firmware V6 and V7, which is better?
by FRANKMUNOZAPURE
Thu Aug 15, 2024 11:36 am
Forum: Scripting
Topic: Script to delete al user active
Replies: 9
Views: 3464

Re: Script to delete al user active

This should work;
/ip hotspot user remove
by FRANKMUNOZAPURE
Thu Jul 25, 2024 7:20 pm
Forum: Scripting
Topic: Convert DYNAMIC IP to STATIC IP
Replies: 1
Views: 2467

Convert DYNAMIC IP to STATIC IP

Friends could help me with a script that can convert DYNAMIC IPs into STATIC IPs into DHCP SERVER LEASE IPs. Thanks for your help.
by FRANKMUNOZAPURE
Thu Jul 25, 2024 7:16 pm
Forum: Scripting
Topic: remove users hotspot uptime 6h
Replies: 1
Views: 2578

Re: remove users hotspot uptime 6h

Hello, I hope this helps you: :local comment "IN USE" :local userprofile [ip hotspot user get [find where name="$user"] profile] :if ([/ip hotspot user get $user comment]="") do={[/ip hotspot user set $user comment=$comment]} [/system scheduler add comment= [/ip hotspot...
by FRANKMUNOZAPURE
Fri Jul 05, 2024 3:26 am
Forum: Scripting
Topic: Script to delete user in "IP DHCP SERVER LEASES"
Replies: 7
Views: 3333

Re: Script to delete user in "IP DHCP SERVER LEASES"

Can anybody help me please.

I will thank you eternally.
by FRANKMUNOZAPURE
Tue Jul 02, 2024 1:54 am
Forum: Scripting
Topic: Script to delete user in "IP DHCP SERVER LEASES"
Replies: 7
Views: 3333

Re: Script to delete user in "IP DHCP SERVER LEASES"

REX. I need help with this script please
by FRANKMUNOZAPURE
Mon Jul 01, 2024 2:08 pm
Forum: Scripting
Topic: Script to delete user in "IP DHCP SERVER LEASES"
Replies: 7
Views: 3333

Re: Script to delete user in "IP DHCP SERVER LEASES"

Thanks for responding REX, but what would the script be like?
by FRANKMUNOZAPURE
Sun Jun 30, 2024 11:12 pm
Forum: Scripting
Topic: Script to delete user in "IP DHCP SERVER LEASES"
Replies: 7
Views: 3333

Script to delete user in "IP DHCP SERVER LEASES"

Greetings gentlemen, I have a script that eliminates the clients connected to the HOTSPOT and it works very well for me, but I would like that same script to also eliminate that user in IP DHCP SERVER LEASES, I need your help, thanks in advance. Here I leave the script. :local comment "IN USE&q...