2 of 2 people found this helpful
The functionality in NCM you are looking for are "Config Change Templates" a documentation can be found here: The basics of NCM config change templates
First, you would need to run an Inventory Job on your devices to gather all the info needed for the template (Interfaces/VLANs etc.)
after your inventory is updated, try this config change template and modify it to your needs
if you need further help let me know
I appreciate the input and this is where I started when I began looking to this project. The issue here is that this script deals specifically with interface VLAN and not the Voice VLAN. Ideally, I was hoping to have the script look through all the interfaces and adjust the Voice VLAN only on interfaces that currently have a Voice VLAN.
Are you aware of any documentation on all the specific variables that are available? If I could target the Voice VLAN specifically that might help.
Thanks for the help!
In NCM, you can construct the command as you would execute it in the command line. You paste these into a new script, and you can then execute this on as many devices as you need too. Just make sure your device templates are correct, so NCM knows the commands to get in and out of privileged mode etc.
My advice would be to create the command list, save it in NCM as a new script, and then run it against a non-critical device first, review the outcome, and then forge ahead armed with the knowledge that it works
Hope that helps! I'm afraid I cannot help you with the exact commands, but do let us know if you need any further assistance.
Just wanted to thank you all for the help!
For anyone wanting to get into writing these scripts I highly recommend downloading SWQL. It is extremely useful.
I uploaded the script to thwack for anyone else that might find it useful. It's currently available here.
There will probably be multiple updates, I'll continue to re-upload the cleaner versions.