How to set time limit on Mikrotik Ethernet port for disable & Enable | disable/enable mikrotik port

Опубликовано: 02 Октябрь 2024
на канале: Technical Ahmad
579
15

How to set time limit on Mikrotik Ethernet port for disable & Enable | disable/enable mikrotik port

Script:
(1)
/interface ethernet set [ find default-name=ether4 ] comment=Ahmad

(2)
/system script
add name=Disable_Ahmad owner=admin policy=read,write,policy,test source=\
"/interface disable [find comment=\"Ahmad\"];"
add name=Enable_Ahmad owner=admin policy=read,write,policy,test source=\
"/interface enable [find comment=\"Ahmad\"];"

(3)
/system scheduler
add interval=1d name=Disable_Ahmad on-event=Disable_Ahmad policy=\
read,write,policy,test start-date=jan/11/2023 start-time=14:00:00
add interval=1d name=Enable_Ahmad on-event=Enable_Ahmad policy=\
read,write,policy,test start-date=jan/11/2023 start-time=14:10:00





Technical Ahmad

#mikrotik
#disableport
#ethernetportdisable