cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
154
Views
1
Helpful
1
Replies

Using DayN Templates on live switches

andEssex
Level 1
Level 1

Hi all

I'm running CiscoCatalyst Center Version 2.3.7.7-70047 and am having trouble using templates to try and monitor our switch config drift.

We have a flock of 9300 switches out and in production, with working switch configs. I would like to be able to store my "golden" switch config as DNAC Day N Templates and then monitor the switches via compliance to see where they match and where they differ.

Unfortunately i don't see a way of using DayN templates without first provisioning the template to the switch - removing/replacing the config that is already in place. Is there a way of provisioning/assigning the templates to the switches without overwriting what already exists?

Thanks

1 Reply 1

Torbjørn
VIP
VIP

Hi @andEssex,

You're right in that you can't monitor compliance without first provisioning the templates. Using the full golden config template is not the best way to approach this. My general strategy when introducing Cat-C templates in a brownfield environment is (roughly) as following:

  1. Configure things such as DNS servers, NTP servers and AAA servers under Design > Network settings.
    This should be preferred over templates whenever possible. 
  2. Split the golden config into smaller parts to be handled in separate templates.
    E.g. a template named Common for things like VTY config, a template named switching for any L2 switching configuration and one named services for DHCP or similar. 
  3. Create a template based on existing golden configuration and try to make them as flexible and reusable as needed.
    It is better to maintain a single template than two templates covering the same features if possible 
  4. Test your templates thoroughly to ensure that they configure what you expect.
    Ideally you have a few test devices that you can provision in the lab.
  5. Start provisioning your devices.
    I prefer to start with the lowest impact templates(anything that doesn't touch the data plane) and do the provisioning in stages to reduce the associated risk. Use the template simulation feature to validate the output before provisioning any of the more critical devices.

Once you have done this you should also only be missing the onboarding template to be ready for PNP onboarding new devices. Note that it is sometimes easier to pnpa reset devices and reprovision them completely than trying to remediate it while in service. Good luck!

Happy to help! Please mark as helpful/solution if applicable.
Get in touch: https://torbjorn.dev

Review Cisco Networking for a $25 gift card