- Products
- Learn
- Local User Groups
- Partners
- More
Access Control and Threat Prevention Best Practices
5 November @ 5pm CET / 11am ET
Firewall Uptime, Reimagined
How AIOps Simplifies Operations and Prevents Outages
Overlap in Security Validation
Help us to understand your needs better
CheckMates Go:
Spark Management Portal and More!
Hi.
Do you know if there is any way to quickly move 1600 hosts from Group A to Group B?
Regards.
So you want all members of group B to be added to group A, and you want all places where group B is used to use group A instead?
Dump group B with '/show-object'. The output will have all members of the group.
Get the first ~100 members and call '/set-group' for group A with members.add[] in the body and the selected members. Adding a member which is already in the group does nothing, so this will add all the members of B which aren't already in A to A.
Repeat for the next ~100 members until you're done.
In SmartConsole, run a Where Used on group B, hit the Replace button in the window, pick group A, and select the places where you want to replace it. If there's anywhere which can't be automatically replaced, you'll have to handle it manually.
Let me do quick test in the lab for this with few hosts and see what happens.
Andy
Ok, forgive me if this shall sound really stupid or silly, but one easy way would be to right click existing group, clone it, which will create exact same group with name _clone on top of it, then you can delete "old" group.
If that poses an issue, Im sure it can be done via API, so let me know and I can try it in the lab.
Andy
Hi,
Maybe I explained it in the wrong form. Group A and Group B have many Objects and I want to merge them into a single group. But I don't want to select one by one.
I'm going to look at the API.
Thanks.
Kk, now I got it, no worries. Let me do some testing and see how far I get. Will update you.
Andy
I recall cp_merge back in the day, but that tool was deprecated while back. I will still keep trying to make this work in the lab. In the meantime, lets see if anyone else may know.
Thank you. I am conducting tests as well.
You can use MGMT API for this:
Show group: https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-group~v2%20
Grep names / uids.
Set group: https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/set-group~v2%20
Looks promising, may test this in the lab later. Does it work say if you want to move lets say only 20 out of 100 hosts to another group?
Andy
I would grep uid results from group into a file and if you want to want to limit number of items per publish you can do it by running a loop that runs on X objects until EOF.
mgmt_cli show group name "test" | grep "\- uid:" > uid_list.txt
Man, I wish this was possible via smart console, would have been easier, but guess not?
Andy
You can clone or add group into another group, it would also help.
It just doesn't give you this as a list that you can use for other purposes.
I know you can clone the group, but dont believe you can add one into another, but will test again.
Andy
Apologies, I was wrong, my bad. Just created brand new group and it let me add 2 new groups into it. I think I was not filtering for the right objects.
Thanks @Amir_Senn
Andy
So you want all members of group B to be added to group A, and you want all places where group B is used to use group A instead?
Dump group B with '/show-object'. The output will have all members of the group.
Get the first ~100 members and call '/set-group' for group A with members.add[] in the body and the selected members. Adding a member which is already in the group does nothing, so this will add all the members of B which aren't already in A to A.
Repeat for the next ~100 members until you're done.
In SmartConsole, run a Where Used on group B, hit the Replace button in the window, pick group A, and select the places where you want to replace it. If there's anywhere which can't be automatically replaced, you'll have to handle it manually.
Sounds reasonable, will try this as well.
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
| User | Count |
|---|---|
| 24 | |
| 7 | |
| 7 | |
| 7 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |
Wed 05 Nov 2025 @ 11:00 AM (EST)
TechTalk: Access Control and Threat Prevention Best PracticesThu 06 Nov 2025 @ 10:00 AM (CET)
CheckMates Live BeLux: Get to Know Veriti – What It Is, What It Does, and Why It MattersTue 11 Nov 2025 @ 05:00 PM (CET)
Hacking LLM Applications: latest research and insights from our LLM pen testing projects - AMERTue 11 Nov 2025 @ 10:00 AM (CST)
Hacking LLM Applications: latest research and insights from our LLM pen testing projects - EMEAAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY