Hello all,
Would like a script that can disable/enable the server interface based on the active vlan.
Version 7.2.3
For example:
server interface ether2 has a vlan of 2200
server interface ether3 has a vlan of 2200
server interface ether5 has a vlan of 200
Want to be able to disable ether2/ether3 based on vlan2200
Believe I need a :foreach command to make this work.
Need to get the interface from:
/interface/dotx1x/server/active print where vlan-id-2200
Use interface above to disable:
/interface/dot1x/server print
Idea CLI
interface dot1x server disable [/interface dot1x server active find vlan-id=2200]
interface dot1x server enable [/interface dot1x server find where disabled] working
Output Samples:
Thanks in advanced!