I have a request to search through all our configs and identify all interfaces with IP helper addresses.
651: interface Vlan1
652: description VLAN1-ILO
653: ip address 10.xx.x.x 255.255.255.240
654:!
655:interface Vlan14
656: description VLAN14-K
657: ip address 10.x.x.x 255.255.255.248
658: ip helper-address 10.x.x.x
659: !
660: interface Vlan15
661: description VLAN15-Security
662: ip address 10.x.x.x 255.255.255.240
663:!
664: interface Vlan21
665: description VLAN21-Users
666: ip address 10.x.x.x 255.255.255.192
667: ip helper-address 10.x.x.x
668: !
I can do a search and pull just the ip helper-address lines, but I want to pull the full interface section, if ip helper-address is present.
Is there a built in report that does this? I saw some compliance checks, but I am not a regex guru and can't seem to get it to work right.
I can do a search for helper-address and get all the line numbers returned from all configs with a helper address i.e
667: ip helper-address 10.x.x.x
listed by device, but I need it to return the entire section when it finds a helper-address line.
(NodeName)
664: interface Vlan21
665: description VLAN21-Users
666: ip address 10.x.x.x 255.255.255.192
667: ip helper-address 10.x.x.x
I'm running NPM 12.1 and NCM 7.6
thanks in advance
larry