configuration sanity check

Hi Nanogers,

Any recommendation about a software which check the live config of cisco/juniper devices against some templates ?

The goal is to have a template about different function device, like:
- CORE device must have this bloc and this clock
- PE device must have at least that and that
- CPE must have this and that
- Distrib switch block 1 and block2
- etc...

And the software run once every day to check which device do not comply with those rules and generate an alert.

Thank,
- Marcel

Salut Marcel,

Either of these might come in handy..

https://www.nanog.org/meetings/abstract?id=2673
https://www.nanog.org/meetings/abstract?id=2678

http://www.gelogic.net/cisco-template-manager/

I use a system called Device Expert that does exactly what you say below. I am not affiliated with them just a satisfied customer.

https://www.manageengine.com/network-configuration-manager/

Steven Naslund
Chicago IL

I've used ansible for this and generated config based on roles. It's a
little weird to get started but allows modularization of config. You can
then go so far as have the same "functions" for different platforms and
software versions. To be clear, this was just for config generation, not
verifying it was on the device or pushing it to the device.

--chip

For Juniper at least, you can use "commit scripts" to enforce these
rules in real time each time a configuration commit is performed--if
the candidiate configuration change doesn't follow the rules, the
commit fails (or the configuration can be changed automatically to do
something). For example "all interfaces must have a description on
them", or "changes to MSTI configuration are not allowed".

"marcel.duregards@yahoo.fr" <marcel.duregards@yahoo.fr> writes:

Hi Nanogers,

Any recommendation about a software which check the live config of
cisco/juniper devices against some templates ?

The goal is to have a template about different function device, like:
- CORE device must have this bloc and this clock
- PE device must have at least that and that
- CPE must have this and that
- Distrib switch block 1 and block2
- etc...

And the software run once every day to check which device do not
comply with those rules and generate an alert.

Thank,
- Marcel

You can also catch and minimize mistakes in real-time by:

1) Implementing and enforcing a proper change control system

2) Implementing tools like Rancid, which are designed to scrape router
configs and E-Mail changes in the format of a unified diff to everyone
in your engineering team.

3) Make liberal use of tools like RtConfig so routine changes aren't a
painful (read: manual) time-consuming process.

We implemented an in-house solution using Cisco Template Manager (http://www.gelogic.net/cisco-template-manager/). Its basically a bunch of bash/perl scripts doing regex matching against the saved configs from RANCID. Works fine for both Cisco and Juniper.

It requires some hand tooling, but we have it doing exactly what you want (checking against different device function templates).

Justin Seabrook-Rocha

Historically there was RAT (Router Audit Tool). You'll have to do some googling to see where it's hosted now and whether or not it's still being developed as I haven't looked at it in years.

Be careful in your search for RATs -- in the security world it also stands for Remote Access Trojan. :slight_smile:

- ferg

What is the opinion about CatTools?