trying to get the logic down but i seem to go one way or another. Basically, looking to do checks for user interfaces, to check for some settings but ignore trunks and shutdown ports.
So basically it would check gi 6/0/20 but ignore 6/0/21
interface GigabitEthernet6/0/20
switchport access vlan 123
switchport mode access
switchport nonegotiate
switchport voice vlan 456
spanning-tree portfast
!
interface GigabitEthernet6/0/21
description Interface Shutdown
switchport access vlan 8
switchport mode access
shutdown
!
if i change the config block start to something like switchport access vla \d\d it will skip all the shutdown ports but my remediation script wouldnt know which interface to change. if i use the config block like i have in picture it all works but it detects the shutdown interfaces