cancel
Showing results for 
Search instead for 
Did you mean: 
Post a Question

Check if IP-address exists in object db with mgmt_cli

Jump to solution

Hi,

I'm new to Chech Point Exchange Point but not new to Check Point even though I'm pretty new in my experience of the mgmt_cli API.

My question is, are there a way to do a lookup to find if a specific IP-address already is in the object database, why I want to check this is because I want to build some scripts to add new hosts to specific groups ans sometimes these hosts will already have been created and then I want to know the name of the object so that I can add it to the group instead.

0 Kudos
1 Solution

Accepted Solutions

Re: Check if IP-address exists in object db with mgmt_cli

Jump to solution

From the documentation:  Check Point - Management API reference

show objects limit 50 offset 0 order.1.ASC "name" type "object" filter "192.0.2.1" 
5 Replies

Re: Check if IP-address exists in object db with mgmt_cli

Jump to solution

If there is some complete documentation of the mgmt_cli that would be the best of course, since I guess that time will give me more questions.

0 Kudos
Admin
Admin

Re: Check if IP-address exists in object db with mgmt_cli

Jump to solution
0 Kudos

Re: Check if IP-address exists in object db with mgmt_cli

Jump to solution

From the documentation:  Check Point - Management API reference

show objects limit 50 offset 0 order.1.ASC "name" type "object" filter "192.0.2.1" 

Re: Check if IP-address exists in object db with mgmt_cli

Jump to solution

Tomer Sole‌  Will this search be for a CMA or all the objects contained in a MDS/CMAs?  My goal is to get all the occurrences of an IP address in all the CMAs on an MDS.

0 Kudos
Admin
Admin

Re: Check if IP-address exists in object db with mgmt_cli

Jump to solution

I don't believe you can search across the MDS, only at the CMA level.

0 Kudos