Community discussions

MikroTik App
 
Johannes33
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 58
Joined: Mon Dec 26, 2016 1:26 am

Timer for Poe out?

Fri Mar 31, 2017 6:29 pm

Hi,
Is it possible to switch on or off the Poe with regard of the clock?
I.e. I would like it to start at 7am and shut off at 1am every day.
 
krisjans
just joined
Posts: 13
Joined: Wed Jun 11, 2014 2:59 pm

Re: Timer for Poe out?

Fri Mar 31, 2017 6:56 pm

Hi,
Is it possible to switch on or off the Poe with regard of the clock?
I.e. I would like it to start at 7am and shut off at 1am every day.
First you need to create two scripts - one to switch on poe-out on desired ethernet port and another to switch it off:
/system script
add name=ether5_poe_out_on source="/interface ethernet poe set poe-out=forced-on ether5"
add name=ether5_poe_out_off source="/interface ethernet poe set poe-out=off ether5"
After that you need to add to scheduler events to execute on and off scripts:
/system scheduler
add interval=1d name=poe_on on-event=ether5_poe_out_on start-time=07:00:00
add interval=1d name=poe_off on-event=ether5_poe_out_off start-time=01:00:00
More info on scheduler ( https://wiki.mikrotik.com/wiki/Manual:System/Scheduler ).
 
Johannes33
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 58
Joined: Mon Dec 26, 2016 1:26 am

Re: Timer for Poe out?

Sat Apr 01, 2017 6:04 pm

Thank you!!!
:-D

Who is online

Users browsing this forum: stanisljevic and 19 guests