With increasing gas/electricity prices, I want to automate PoE nightly downtime for some of my devices. Currently, I have a fixed number of etherX ports, which are automatically turned off in the evening and on again in the morning, namely VoIP phones. I want to widen this and include some of my my single board computers, capable of being powered via PoE as well.
I would like this to be less specific regarding the Miktorik's connection name and more about the network devices' MAC addresses instead. Is this possible?
My current scripts are very minimal and run with two schedulers on my CRS328-24P-4S+
turning off
Code: Select all
:foreach ethname in={"ether2"; "ether16"; "ether18"; "ether19"; "ether20"} do={/interface ethernet poe set poe-out=off $ethname}
turning on
Code: Select all
:foreach ethname in={"ether2"; "ether16"; "ether18"; "ether19"; "ether20"} do={/interface ethernet poe set poe-out=auto-on $ethname}
Would it be possible to have partial MAC addresses as well e.g. like a device family and then find all that match it e.g. finding all Voip phones of a certain manufacturer or all single board computers.
I am quite new to scripting with this and the energy preserving geek in me wants to reduce the electricity usage if possible. Every W(att) counts
Thanks, axon