- 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 everyone
I need to find a Linux command with which I can see in which groups there is an object that I give like the existing function in the Smart-Console "where-used".
In addition I have found the command:
mgmt_cli -r true where-used name "host 5" details-level full
from this link:
(This command's output gave me a lot of UIDs and etc.)
What this command is for? Is there an option to do what we want?
That is the correct command.
The UIDs have to be dereferenced most likely, I.e. this will require some level of scripting.
Hello,
As PhoneBoy said, you could use that command. In addition, you can use JQ in order to filter your results and display only the fields you are interest in, like name, object type, etc.
Here you have an example of how to use it:
Command:
# mgmt_cli where-used name hostName --format json -s id.txt | jq -r '."used-directly".objects[] |["Name: " + .name,"Object Type: " + .type]'
Result:
[
"Name: Group1",
"Object Type: group"
]
[
"Name: Group2",
"Object Type: group"
]
[
"Name: Group3",
"Object Type: group"
]
About CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY