Trying to build a config change template to push out updated syslog server and set the source interface on devices. I've used this posting to get me part of the way there:
https://thwack.solarwinds.com/t5/NCM-Discussions/NCM-config-change-template-for-logging-source-interface/m-p/346960
Second part of the challenge is what about devices with multiple IP addresses and the source interface in a VRF requiring the use of command string of :
logging source-interface <insert interface> vrf <insert vrf>
I found this article as well, and it feels like it gets part way there, just struggling to put the full pieces together:
https://thwack.solarwinds.com/t5/Report-Lab-Discussions/VRF-Interface-report/td-p/392674
I'm expecting to need to add another loop or if statement to determine if interface is in a vrf and then use a different command string, just not sure quite how to get to that point.
I've included my script, still learning on it, so feel free to offer any additional suggestions.