I am trying to write a rule that will check all of the interfaces of a cisco device to see if the line "no ip proxy-arp" is applied. The devices aren't all the same and the number/type of interfaces is different depending on the device.
I would like the rule to alert me if it finds that the line isn't applied to all of the interfaces. For example:
interface FastEthernet0/1
description ******
ip address x.x.x.x x.x.x.x
no ip proxy-arp
interface GigabitEthernet0/1
description ******
ip address x.x.x.x x.x.x.x
interface GigabitEthernet0/2
description ******
ip address x.x.x.x x.x.x.x
no ip proxy-arp
Currently I am using this expression:
interface.*\n(.*\n)*.*no ip proxy-arp
The only problem is that if "no ip proxy-arp" is applied to a single interface it will not notify me that the other interfaces do not have this configuration.
Please help.