I manage a network of approx 500 cisco devices and trying to figure out a way to run scripts to all devices that are specific using variables.
our name scheme is simple:
cr<ID#> for routers
cs<ID#> for switches
cw<ID#> for APs
I'm trying to setup a command script that will make a change to dynamic dns updates, and want to script it as opposed to having to manually log into each device and make the change myself.
I've read the Admin guide on variable scripting and it's just not helping me out that much. I've created a new "custom property" column in the custom property editor and called it "ddns". The value of the ddns field is crXXX (where XXX is the ID of the device)
My commands as of right now look something like this:
${EnterConfigMode}
ip ddns update method hostingcompany-ddns
HTTP
add http://${ddns}:<privatekey>@ddns.hostingcompany.net/dir/register${CTRL+V}?myip=<a>&hostname=<h>
exit
interval maximum 0 0 5 0
exit
my understand was that the variable ${ddns} would pull from the custom property editor and fill in crXXX in each place, depending on which router it was currently logged into.however, it's just entering the text "${ddns} as part of the configuration on the router and there is no variable input.
I hope this makes sense, if not let me know... any suggestions?