I'm trying to find a what to replace a command on interfaces that violate a compliance rule. The rule is looking at the interfaces config block. That portion works fine (located the code that I want to change). But how can I build the script to run the remediation script on each and only of the config blocks in violation?
Specifically, I have many interface through our many switch with "authentication host-mode multi-domain". I want to change just those interface with that command to "authentication host-mode multi-auth".
It there a way I can "feed" the violated interfaces from the config blocks into a remediation script to add the correct command to each interface?