- Products
- Learn
- Local User Groups
- Partners
- More
MVP 2026: Submissions
Are Now Open!
What's New in R82.10?
10 December @ 5pm CET / 11am ET
Announcing Quantum R82.10!
Learn MoreOverlap in Security Validation
Help us to understand your needs better
CheckMates Go:
Maestro Madness
Hello guys,
I am currently working on small script which will install Policy from R77.30 management on given Gateway.
We are using many Gateways and each one has unique policy package, for example:
| Gateway Name | Policy Package Name |
|---|---|
| Apple | Fruit |
| Cucumber | Vegetables |
| Car | Vehicle |
I know that installation is possible from Management CLI using following syntax:
fwm load <Policy Package Name> <Gateway Name>But is there easy way how to find out corresponding Policy Package Name of given Gateway ? Via CLI or dbedit ?
Please be aware that I want to use it within R77.30, not for R80.10 management (as in R80.10 this is easy to archive via API)
My idea is to just specify Gateway Name and the Policy Package will be automatically checked and used in fwm load command as first parameter.
For example:
./Install_Policy.sh Apple
and the output of this script will be:
fwm load Fruit Apple
If someone has good idea how to deal with this situation, please, let me know ![]()
Thank you very much.
If XML is not your best friend, then maybe the following is useful. In this example there are 2 policy packages and 2 gateways and a query in the management server displays which gateways are installable targets of each policy:
cpmiquerybin attr "" policies_collections "" -a __name__,installable_targets
The result
SamplePolicyPackage01 Name: testfwobj01 (Table: network_objects)
Standard Name: testfwobj02 (Table: network_objects)
Probably the easiest way is to query the gateway directly and ask what policy package is already installed, either with fw stat or cpstat -f policy fw.
Then install that one.
Otherwise, I'm not sure how you'd achieve that with dbedit.
you can get all policies and targets with dbedit / printxml policies_collections
Can't give you more than that as it depends if you run MDS or regular mgmt and if you have multiple targets per policy
But XML output looks like this
<policies_collections_object>vs-example-rulebase<all_internal_modules>false</all_internal_modules>
<color><![CDATA[black]]></color>
<comments><![CDATA[]]></comments>
<default>0</default>
<installable_targets>
<unnamed_element setname="">ReferenceObject
<Name>vs-example</Name>
<Table>network_objects</Table>
<Uid>{939CA8AC-8D77-4540-B7E7-93F06C86AC99}</Uid>
</unnamed_element>
</installable_targets>
<type><![CDATA[policies_collection]]></type>
</policies_collections_object>
And from GuiDBedit

If XML is not your best friend, then maybe the following is useful. In this example there are 2 policy packages and 2 gateways and a query in the management server displays which gateways are installable targets of each policy:
cpmiquerybin attr "" policies_collections "" -a __name__,installable_targets
The result
SamplePolicyPackage01 Name: testfwobj01 (Table: network_objects)
Standard Name: testfwobj02 (Table: network_objects)
Hi Olavi,
This is exactly what I searched for !
Thank you very much.
Found 2 options:
cpmiquerybin attr "" policies_collections "" -a installable_targets,__name__ | grep <CLUSTER_NAME> | awk '{print $5}'
echo -e "query policies_collections, type='policies_collection'\nquit" | dbedit -local | grep <CLUSTER_NAME> -B 13 | head -n 1 | awk '{print $3}'
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
| User | Count |
|---|---|
| 20 | |
| 19 | |
| 8 | |
| 7 | |
| 7 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |
Fri 12 Dec 2025 @ 10:00 AM (CET)
Check Mates Live Netherlands: #41 AI & Multi Context ProtocolTue 16 Dec 2025 @ 05:00 PM (CET)
Under the Hood: CloudGuard Network Security for Oracle Cloud - Config and Autoscaling!Fri 12 Dec 2025 @ 10:00 AM (CET)
Check Mates Live Netherlands: #41 AI & Multi Context ProtocolTue 16 Dec 2025 @ 05:00 PM (CET)
Under the Hood: CloudGuard Network Security for Oracle Cloud - Config and Autoscaling!Thu 18 Dec 2025 @ 10:00 AM (CET)
Cloud Architect Series - Building a Hybrid Mesh Security Strategy across cloudsAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY