:if ( [/interface wireless registration-table print as-value count-only]=0 ) do={/interface wireless disable wlan1} else={}
:do {/ip dhcp-server lease
:foreach i in=[find] do={
:put ("comment=" . [get $i value-name=comment] . ", address=" . [get $i value-name=address] . ", host-name=" . [get $i value-name=host-name]);
}
} on-error={}
:if ( [/ip firewall filter find where dst-port=XXXX] !="" ) do={:put "Firewall Filter Rule for port XXXX is confirmed"}
{
:local x 10;
:local y $x;
:put ($y);
}
:put [/interface bridge host get number=[find where local=yes && on-interface=ether1 ] mac-address ]
[/tool fetch dst-path="/dir1/dir2/ " url="http://127.0.0.1:80/mikrotik_logo.png" keep-result=no]
:put [/ip firewall address-list remove numbers=6 ]
Updated check it againDoes this help?
I'm looking for PHP web designerNo I am not
post updated, you're rightNo need to quote each others post. Makes it hard to read the thread.
Use Post Reply button at the bottom of the post.
If you need to quote, quote just the part that you need to explain.
I know you'd do the same for me.thank you very much really!!
:do {
:foreach WR in=[/interface wireless registration-table find] do={
:log info [/interface wireless registration-table get $WR rx-rate]
}
} on-error={}
/interface list member remove numbers=[ find where list=test && interface~("^\\*[A-Z]+") ]
you welcomethank you sir
working well
[/interface get $interface name];
even though your PPPoE server is connected to LAN, traffic from your PPPoE customers won't match the mangle in-interface=LAN
Instead use in-interface=all-ppp but watchout as your uplinks are also PPPoE...
:put ([/ip route check 8.8.8.8 as-value once]->"interface")
:put [/ip arp get number=[find where address=[/ip route get number=[find where dst-address="0.0.0.0/0" && active=yes ] gateway]] interface]
/ip route remove numbers=[find where dst-address="4.2.2.2/32"]
/tool user-manager user reset-counters numbers=[find where actual-profile="xyz"]
/interface wireless access-list remove numbers=[find where !interface]
/ip dhcp-server set 0 lease-script=script1
:foreach item in=[/queue simple find where (name~"hotspot" && target~"1\\.1\\.1\\.[0-9]+"=false)] do={/queue simple remove $item}
I agree with youbetter look for RB1100AHx4. there is ssd inside so you can store your user manager there.
RB1100AHx2 is an old model but of course it also working great.
/system script add name=test source=[/file get run.txt contents];
:foreach item in=[/queue simple find where (name~"hotspot" && target!="1.1.1.0/24")] do={/queue simple remove $item}
:foreach UPro in=[/ip hotspot user profile find] do={
/ip hotspot user profile set $UPro rate-limit="";
}
:if ([/ip dhcp-server lease find where mac-address="11:22:33:44:55:66"]!="") do={beep frequency=4000 length=1s;}
Now the only thing I have left to solve, are the users who open a voucher but leave before their time / quote, could you help me with that case? thank you very much.
yes user managerAdahi, the issue of user expired, either time or mb quota, I have to configure it in the "profile" of the USER MANAGER, is this correct? or do I have to do it in ip> hotspot?
thanks again.
yes i mean for debug purpose only, that's why i said one day not every daymore likely, one day, it will cause you hard to debug problems!
readers are warned - only use when you know what you are breaking...
#Remove expired users
{
:foreach ExpireUser in=[/tool user-manager user find where !actual-profile] do={
/tool user-manager user remove $ExpireUser;
}
}
/ip hotspot user reset-counters [find]
/ip hotspot user set [find] limit-bytes-in=0 limit-bytes-out=0 limit-bytes-total=0;
{
:local CIP 3.3.3.3
/queue simple set numbers=[find where target=($CIP . "/32")] max-limit=256K/1M comment="0";
}
it is belongs to "AD radius" software abilitiesHow it possible?you can get all logs from "AD radius".
can you explain?
Can I see user Usage & URL and IP History & File Downloaded?
CRS328-24P-4S+RM
PoE out switch
Dual boot SwOS or RouterOS
24 ports with PoE out function
Supports 802.3af/at output
Per port auto detection of PoE standard
Four SFP+ ports for 10GbE
One 120/220V IEC connector
Can someone guide me how to user userman for RouterOS login ?
Cause i setup but still not working .
Any tutorial link ??
why notCan i host that Router OS on VM for only userman ?
Yeah... I did, but it doesn't really work, as I have VPN client and the tunnel get hung up on WAN2.. ready above. I like simple solutions but this is not the case here.
+1The only mistake you could do is to badly design your network or misconfigure your devices. Maybe you did both errors?
/system logging
add action=disk topics=info
{
:local str "something1%something2";
:put [:pick $str ([:find $str "%"]+1) ([:len $str])];
}
[/ip route get number=[find (gateway=pppoe1 && dst-address="0.0.0.0/0") ] distance]
/ip route set gateway=pppoe1 check-gateway=
arp ping
hi all i need script to make a qouta like 20 GB to a name in simple queue monitor upload and download when ritch a limt speed well be change to 128
/ip route print detail
Use /32 instead.
show us your scripts, maybe we can find where the errorThis still doesn't work. If you try to change position with move or place-before the script returns no such item or similar error.
Both commands work in winbox, ssh, etc. It's just a problem on running them from scripts.
/interface ethernet poe set ether10 poe-out=forced-on;
/interface ethernet poe set ether10 poe-out=auto-on;
/interface ethernet poe set ether10 poe-out=off;
@ADahi
sorry to hijack the topic thread but I am looking for a script to detect when 1Mbps data rates are being used by a CPE and print to a file?
/queue interface
set wlan1 queue=only-hardware-queue
Execute script on user login-event. These are available variables that are accessible for the event script:
user
local-address
remote-address
caller-id
called-id
interface
}else ={
} else={
{
:local RX [/interface wireless registration-table get 0 rx-rate ];
:local QS [:pick $RX 0 [:find $RX "M"]];
/queue simple set 0 max-limit=((($QS / 10)*8)."M")
}
/tool user-manager log remove numbers=[find];
:global RX [/interface wireless registration-table get 0 rx-rate]
:log info [:pick $RX 0 [:find $RX "M"]]
+1hi
how to find "start time" and "end time" of users in user manager with cli?
/tool user-manager user remove numbers=[find where !actual-profile];