Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20396

NCM - SCRIPT FOR DHCP SERVICE DNS ADDRESS CHANGING

$
0
0

Hello all,

 

This question has been asked before from my searches a couple of times, such as http://thwack.solarwinds.com/message/127654#127654, 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


Viewing all articles
Browse latest Browse all 20396

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>