Hello all,
This question has been asked before from my searches a couple of times, such as
, but never answered. So I would like to ask it again in hopes that time may improve the results for a resolution:
We run DHCP service on some of our routers that are nodes in NCM. Our dns server ip address has changed, because of that I would like to change dns addresses on DHCP running routers by a config change template script. Some devices have more than one DHCP pool defined but with common DHCP pool names with the same DNS servers and I want to change all reference to the old DNS server address to a different one or two servers. Can this be done using a config change template script, or will I have to depend on the "execute a script" function?
ip dhcp pool dhcp1
network 10.0.0.0 255.255.255.0
default-router 10.0.0.1
domain-name ourcompany.com
dns-server 10.10.1.1 10.10.1.2
lease 8
end
!
I'm looking to update the dns-sever line to something such as "dns-server 10.10.2.1 10.10.2.2". I have looked for the associated SWIS data entities, and reviewed some of the base templates to try to figure out the format myself, but don't think I have it anywhere close to being correct. So any great template writers out there, your knowledge would be greatly appreciated!
Thanks in advance!
Arras