This shouldn't be complicated but I'm not sure how to do this.
I'm writing a script that reconfigures a variety of 5-port routers to how we actually use them, which is nothing like the default configuration. I want one part of the script to work like this:
IF ether3 has poe-out available,
set poe-out on ether3 to forced-on.
ELSE IF ether5 has poe-out available,
set poe-out on ether5 to forced-on.
END IF
The problem is, I don't know how to tell if the poe-out setting is there. It's there on an RB750UP but not on an RB750. I want to do this without looking up the model number so the script will run properly on any and all 5-port models, not just the ones I know.
Thx