I know there are a few posts on here regarding this but I wasn't able to get my question answered...
I'm working on establishing my router baseline template for LMS 3.2. I've figured out how to require certain commands to be in the config and to remove other ones... but what I would like to do is ensure there's not an "Extra" config in there.
An example of this is my remote routers should only have 1 static route, a floating static used for ISDN backup... I would like to create a regex that says somthing similar to, if the router is NOT <my route>, mark it as non compliant.
I've tried a couple different syntaxes without luck.
The Route it want: ip route 0.0.0.0 0.0.0.0 192.168.252.1 150
- [#ip route (!0.0.0.0 0.0.0.0 192.168.252.1 150)#]
- ip route[#!0.0.0.0 0.0.0.0 192.168.252.1 150#]
This same idea would apply to the SNMP config. I can look to ensure that the necessary SNMP views/groups/hosts are there, but I would like to ensure that any "Extras" that don't match my current standard, are marked as non compliant.
My SNMP host:
+ snmp-server host 192.168.<ip> version 3 auth <SNMP v3 uname>
And I want to make sure, there are NO other snmp-server hosts besides the 1 that i designate.
I found this post that was helpful: http://forums.cisco.com/eforum/servlet/NetProf?page=netprof&forum=Network%20Infrastructure&topic=Network%20Management&topicID=.ee71a02&CommCmd=MB%3Fcmd%3Dpass_through%26location%3Doutline%40^1%40%40.2cc1dcca/4#selected_message
But I haven't been able to apply it to this situation. Any thoughts? Thanks.