Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Tobias_Eriksson
Explorer
Jump to solution

Check if IP-address exists in object db with mgmt_cli

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
Tomer_Sole
Mentor
Mentor

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" 

View solution in original post

5 Replies
Tobias_Eriksson
Explorer

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
Moti
Admin
Admin
0 Kudos
Tomer_Sole
Mentor
Mentor

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" 
Paul_Gademsky
Employee
Employee

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
PhoneBoy
Admin
Admin

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

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events