So I have several hundred branch devices.. Cisco 2821's with an integrated switch module. Each device is setup the following: 10.x.x.1 (router) and 10.x.x.2 (switch). I want to update my NTP server statements on the switch to be the router IP (.1). I am trying to find a way to do this with the VTP scripting and was wondering if anybody had a better way. My thoughts are to use a DB variable to pull the IP Address of the current device ($IPAdress) and use slice to get rid of the last octet, .2, and add .1 to it. Here is what I am thinking: #set( $ipadd = $IPAddress ) #set( $network = $ipadd.substr(0).slice(0, -1) #set( $ntpserver = $network + "1" ) ntp server $ntpserver I tried to create this template in PI, but I'm having a problem when I deploy. How would I setup the variables for this with the managed variable tab? I shouldn't have to fill in any values for the variables due to it all being set off of the DB IPAddress variable correct? Any thoughts or input on how to make this process easier?
... View more
I have noticed that Prime is not writing the running config after CLI template deployments. I deployed a changeset to over 1100 devices the other night and noticed that the configs had not been written the startup config. I did some testing today and am using the following CLI template: #MODE_ENABLE copy running-config startup-config #MODE_END_ENABLE All tests failed. I found the syntax for enable mode from the following link: http://www.cisco.com/c/en/us/td/docs/net_mgmt/prime/infrastructure/2-0/user/guide/prime_infra_ug/create_temps.html#31705 Any ideas on why it isn't writing the configs by default or how to force it through a template?
... View more