- Products
- Learn
- Local User Groups
- Partners
- More
Check Point Jump-Start Online Training
Now Available on CheckMates for Beginners!
Why do Hackers Love IoT Devices so Much?
Join our TechTalk on Aug 17, at 5PM CET | 11AM EST
Welcome to Maestro Masters!
Talk to Masters, Engage with Masters, Be a Maestro Master!
ZTNA Buyer’s Guide
Zero Trust essentials for your most valuable assets
The SMB Cyber Master
Boost your knowledge on Quantum Spark SMB gateways!
As YOU DESERVE THE BEST SECURITY
Upgrade to our latest GA Jumbo
CheckFlix!
All Videos In One Space
List all host objects that share the same IP-address
A bash script that uses a Check Point package that handles all the communication with the Check Point management server.
Attaching two different scripts that do the same thing. Which one is better and easier to understand? I don't know...
Let me know which one do you prefer?
A short script with more "tricks" in it or a longer straight forward script
Code version 1.0.0
R80, API version 1.0
NOTICE: By using this sample code you agree to terms and conditions in this Terms and Conditions
...
Hello Great Script, can you also add "duplicate object" in your title, it took me quite while to search this page.
Done 🙂
Hey there , any feedback on the use of that script?
I just tried running this script on my mgmt server R80.40 and it fails with below...not sure why, but it generated couple of files that dont show anything (ip_addresses.txt and host_objects.csv...
[Expert@cp-test-mgmt:0]# ./find_dup_ip2.sh
Please enter your username and password
Enter username and press [ENTER]: admin
Enter password and press [ENTER]:
Failed to parse login output file [id.txt]
show hosts failed.
[Expert@cp-test-mgmt:0]#
Never mind...layer 8 issue, haha. I tried on different mgmt and worked fine...so probably something wrong on a VM one I tested first.
Andy
Hello,
I cant find the $CPDIR/jp/jp directory. Is this folder not present in a CMA/DOMAIN of a MDS.?
Thanks
hi
for me, it works on SMS R80.40 but not on MDS R80.40
As mentioned in the script
# relies on having the jq utility
JQ=${CPDIR}/jq/jq
which seems to be on a MDS in /opt/CPshrd-R80.40/bin/jq
I do not see any 'domain' command in the script which I would expect (with my limited API knowledge)
Regards
About CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY