I know there is a way to declare variables in an NCM command script but they seem to only be global variables. We have over 1300 sites and we want to have the ability to create a script with site specfic variables. I'll use a basic example, adding a static nat entry to all of our routers for a new software service we deploy. So we might have to add a single entry like this:
ip nat inside source static 10.xx.yy.1 100.xx.yy.1 route-map in-tunnel reversible
Each of our sites has a 4 digit site number like 2561 which we break down for the IP subnets, a /24 for each site in this example it would be 10.25.61.0/24..So for site 2561 we would want the above entry to become
ip nat inside source static 10.25.61.1 100.25.61.1 route-map in-tunnel reversible
Is there a way currently or planned to write a script that would go out to each site and use a site specific variable (or variable derived through a formula) for each site. So we could write the script once, store the variable list somewhere (like custom fields in NPM, or link an excel spreadsheet), and push the scipt out to all sites?