policy muliple search syntax

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

policy muliple search syntax

L0 Member

I have a large list of IP addresses that I need to search on.  I am not necessarily interested in if these systems are getting traffic, but moreso interested if they are present in any policies.

 

Is there a way to search for multiple host/net objects in the Policies tab in one search, or does this need to be done serially?

 

Thanks!

-jgh

1 accepted solution

Accepted Solutions

Cyber Elite
Cyber Elite

if you know the object names you can chain searches with the 'or' function, but this will only work for exact/partial matches

 

(source/member eq '192.168.0.91') or (source/member contains '10.0.')
Tom Piens
PANgurus - Strata specialist; config reviews, policy optimization

View solution in original post

2 REPLIES 2

L2 Linker

Hi jgh,

 

I don't believe that there is a way to search for this directly in the GUI. However, one way to achieve this is to go to CLI and do the following:

 

> set cli config-output-format set (default format is xml)
> configure
# show rulebase

 

This will print out all the security rules in text. You can then copy the text and search in it using "grep" commands on a linux machine. Or you can even use notepade++, it has a plugin that provides this feature, name is "search+".

 

Hope this helps,

Haytham

__________
Thank You Mario! But Our Princess is in Another Castle!

Cyber Elite
Cyber Elite

if you know the object names you can chain searches with the 'or' function, but this will only work for exact/partial matches

 

(source/member eq '192.168.0.91') or (source/member contains '10.0.')
Tom Piens
PANgurus - Strata specialist; config reviews, policy optimization
  • 1 accepted solution
  • 2124 Views
  • 2 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!