- 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
Hello everybody.
I'm doing a script to delete objects and rules. I'm having troubles to define if the object is the last in cell. In the SmartConsole, if I go to 'Where Used' in the object, I can see if it are the Last in Cell, but in the "mgmt_cli where used" there isn't a field with this information. Does anynone have this same problem? Is there another way to do this?
Thanks for while.
Hi fwmeister.
I did a count in the source and destination colunms, to check if there is only one object. This is the only way I found to solve this problem.
mgmt_cli -r true -d "$DOMAIN" show access-rule uid "$(cat < ruleuid.json)" layer "$(cat < layer.json)" --format json > $ACCESS_RULE
cat access_rule.json | jq '.name' > $RULENAME
cat access_rule.json | jq '.source[] | .name' > $SOURCE_POSITION
cat access_rule.json | jq '.destination[] | .name' > $DESTINATION_POSITION
SOURCE_OBJECTS=$(cat source_p.json | wc -l)
DESTINATION_OBJECTS=$(cat destination_p.json | wc -l)
Please let me know if you need a help.
Hi Dameon,
Will this be fixed in a future version?
If not, could you please elaborate on your answer?
I don't see how to determine if the object is last-in-cell.
Tnx in advance.
PS. Did anybody solve this?
Hi fwmeister.
I did a count in the source and destination colunms, to check if there is only one object. This is the only way I found to solve this problem.
mgmt_cli -r true -d "$DOMAIN" show access-rule uid "$(cat < ruleuid.json)" layer "$(cat < layer.json)" --format json > $ACCESS_RULE
cat access_rule.json | jq '.name' > $RULENAME
cat access_rule.json | jq '.source[] | .name' > $SOURCE_POSITION
cat access_rule.json | jq '.destination[] | .name' > $DESTINATION_POSITION
SOURCE_OBJECTS=$(cat source_p.json | wc -l)
DESTINATION_OBJECTS=$(cat destination_p.json | wc -l)
Please let me know if you need a help.
About CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY