Skip to main content
Solved

How do I validate configurations in our environment to ensure consistency.

  • April 1, 2023
  • 6 replies
  • 345 views

craineri

Can anyone advise if there is a way to validate a base configuration to other like devices to ensure compliance and our standards are being followed.

For example, I have a device or model that I would like to ensure all other devices are identical such as

  • Logging
  • AAA/TACACS
  • ACL’s
  • NTP

My approach, which doesn’t seem to be working was Create a Parser to capture Configuration for text fields that I would like to ensure are consistent. Create a NI for prior fields that need to match. Created a specific test group for selected devices.

However, when I run the NI, it only compares the fields that I selected to the previous baseline for the device, not the device I want it to model.

Any advise or direction appreciated. Thanks.

Best answer by Carsten.Schmidt

take a look at the bottom of the article, it refers to a Python code change due to the switch from v2 to v3.

6 replies

craineri
  • Author
  • Frequent Participant
  • 7 replies
  • April 1, 2023

Maybe this will help?

As advised I’d like to compare other like devices in our organization to a Golden/Base Configuration, but when I setup NI, it is only comparing it’s configuration to a previous baseline. I want to compare a device against this Golden/Base Configuration to ensure that all devices in our environment are consistent.

 


Forum|alt.badge.img+4

craineri
  • Author
  • Frequent Participant
  • 7 replies
  • April 4, 2023

Thank you for the response, I’m going to try this approach and will let you know if it works :) 


craineri
  • Author
  • Frequent Participant
  • 7 replies
  • April 4, 2023

Getting errors and doesn’t appear to be working. Will keep researching.


Forum|alt.badge.img+4
  • Brainy
  • 82 replies
  • Answer
  • April 5, 2023

take a look at the bottom of the article, it refers to a Python code change due to the switch from v2 to v3.


craineri
  • Author
  • Frequent Participant
  • 7 replies
  • April 5, 2023

This resolved my issues and exactly what I was looking for, Thank you.