Network Change & Configuration Management

Reply
Highlighted

Is there a guide for using RegEx config searches?

CBhatt
Techie
Posts: 1
704     0

Is there a better guide for how to use search with Config Text RegEx.

 

For example if I am searching the configurations for

 

192.168.130.0/23

 

I have to type this

 

^/192.168.130.|192.168.131./

 

 

This does get the job done, and retuns all the devices that matches, but it gets convoluted when you are searching against 10+  segments that are non-contiguous

 

I tried using this as a search, but no luck

 

^/192.168.13[0-1]./ 

 

Any help around searching IPs within teh configuration file would be very much appreciated

Re: Is there a guide for using RegEx config searches?

Adviser
Posts: 373
705     0

Can you post a few strings of where the IP address might be shown?

Trying to understand how the REGEX should be build

 

THanks

Follow me on LinkedIn: https://www.linkedin.com/in/sifbaksh
Twitter: https://twitter.com/sifbaksh

Re: Is there a guide for using RegEx config searches?

Adviser
Posts: 373
705     0

Let me know if solve your problem

 

 post.png

Follow me on LinkedIn: https://www.linkedin.com/in/sifbaksh
Twitter: https://twitter.com/sifbaksh
Showing results for 
Search instead for 
Do you mean 

Recommended for You