Normally I can bash my way through a script but this one has me stumped.
I'm trying to modify my autoupdate script so it can detect if there are POE powered devices.
If it supplies POE I'll make it delay its own reboot by some minutes to ensure the fed device can install it's firmware without the supplying device rebooting and cutting power off half way through.
What I'm struggling with is how can I can detect if there are POE devices.
Generally the supplying devices are 951Ui-2nD's
I was thinking to use something like this
:global FWstatus [/system package update get status];
but i can't find an equivalent for POE status. I can get the information using
/interface ethernet poe monitor 0
but I have to get that and still get it in to a variable.
Code: Select all
[admin@Work Router] > /interface ethernet poe monitor numbers: 0 name: ether5 poe-out: auto-on poe-out-status: waiting-for-load
If anyone can provide any assistance that would be greatly appreciated.