LMS 3.2 Checking compliance for a single access list
I'm trying to figure out how to check compliance for only one access list in cisco works.
I want to run a compliance template that only check access-list 13 to make sure it has the following and nothing else:
access-list 13 permit 22.214.171.124
access-list 13 permit 10.1.0.0 0.0.0.127
If something else is listed, then I'll deploy the template and it will remove any other entry besided the two above.
I have tried a Global config compliance on + access-list 13 permit 126.96.36.199 and it comes back and says it's not compliant and wants to remove everything else, which is every other access list. I have tried submodes thinking that it could check under ip access-list standard 13, but that didn't work either.
Any pointers that can lead me in the right direction?
Re: LMS 3.2 Checking compliance for a single access list
Thank you for your response; I appreciate it.
So I did some more research and I have a Condition Block set to check if there is an access-list 13 on the device and proceed if there is:
+ [#access-list 13.*#]
Then, in the compliance Block I'm checking the Global config to see if these entries are there and Order Sensitive:
+ access-list 13 permit 188.8.131.52
+ access-list 13 permit 10.1.0.0 0.0.0.127
The issue I'm having now is trying to figure out how to negate or not change anything other than access-list 13. I run a compliance check and this is what I get.
-ip sla enable reaction-alerts
-logging source-interface Vlan2
-access-list 13 permit 184.108.40.206
-access-list 13 permit 220.127.116.11
-access-list 13 permit 18.104.22.168 0.0.0.127
-access-list 14 permit 22.214.171.124
-access-list 14 deny any
-access-list 23 permit 126.96.36.199
-access-list 23 permit 188.8.131.52 0.0.0.255
-access-list 23 permit 184.108.40.206 0.0.0.255
-access-list 23 permit 220.127.116.11 0.0.0.255
-access-list 23 permit 18.104.22.168 0.0.0.255
-access-list 23 deny any
+access-list 13 permit 22.214.171.124
+access-list 13 permit 10.0.0.0 0.0.0.127
EDIT: Changing logic here... the command needs to be + ip access-list standard 13 permit 126.96.36.199 and + ip access-list standard 13 permit 10.1.0.0 0.0.0.127. More edits to come as I try and figure this out.
Question We run asr9001 with XR 6.1.3, and we have a very long delay to
login w/ SSH 1 or 2 to the device compare to IOS device. After
investigation, the there is 1s delay between the client KEXDH_INIT and
the server (XR) KEXDH_REPLY. After debug ssh serv...
Introduction The purpose of this document is to demonstrate the Open
Shortest Path First (OSPF) behavior when the V-bit (Virtual-link bit) is
present in a non-backbone area. The V-bit is signaled in Type-1 LSA only
if the router is the endpoint of one or ...
Hi, I am seeing quite a few issues with patch install and wanted to
share my experience and workaround to this. Login to admin via CLI, then
access root with the “shell” command Issue “df –h” and you’ll probably
see the following directory full or nearly ...