Hi extrands,
NCM scripting is not able to take a look at the config. You might be able to achieve what you need with compliance/remediation, but this feature is not primarily meant for such config changes.
Aren't you able to identify the interfaces according to some SNMP/inventory value?
Regards,
Jiri