- Products
- Learn
- Local User Groups
- Partners
- More
Quantum Spark Management Unleashed!
Introducing Check Point Quantum Spark 2500:
Smarter Security, Faster Connectivity, and Simpler MSP Management!
Check Point Named Leader
2025 Gartner® Magic Quadrant™ for Hybrid Mesh Firewall
HTTPS Inspection
Help us to understand your needs better
CheckMates Go:
SharePoint CVEs and More!
I am looking for advice on how to bulk add network objects. I need to add around 550 networks and we are on GAIA R80.10. I have read some about dbedit, Using a dbedit script to create new network objects and network object groups, but I am not sure if that would still be the best method. I will also mention I have never used dbedit. When adding these network objects I would also like to add a description on each network object. The dbedit link does not include the syntax for the description.
I came across a thread on cpug that If R80, there are more robust CLI for these things. You can find documentation and several examples at https://community.checkpoint.com.
Thanks in advance!
For this task, you can use dbedit, but you don't need to.
R80+ has a new API/CLI that is a bit easier to use than dbedit.
See the documentation for using mgmt_cli add host here: Check Point - Management API reference: add host
There are several examples in the https://community.checkpoint.com/community/developers?sr=search&searchId=b0714703-c1b9-449b-afb4-084... space.
One specific example that might be useful here: CLI API Example for exporting, importing, and deleting different objects using CSV files (v 00.25.01...
Very helpful, thank you. Can you tell me what the Parameter Name would be for the "Comment" Field? I would like put a comment on all the networks I am adding.
Thanks again!
The parameter is comments.
It's listed in the documentation, but hidden behind text that can be expanded with a "More" link.
I have tried testing using the API/CLI with a .csv file but receive an error message. I uploaded file test.csv to the var/log directory and ran the command, mgmt_cli add network --batch var/log/test.csv
The .csv file looks like this
name,subnet,subnet-mask,comments
NET_10.10.16.0,10.10.16.0,255.255.255.0,Test Network
The error message received is:
Line 2: code: "generic_err_invalid_parameter_name"
message: "Unrecognized parameter [name]"
I am not sure what may be causing this to fail.
Thanks.
Hi Ed,
The command and the content of the csv file look correct.
From which directory are you running the mgmt_cli tool?
Robert.
I had underscores in the name field of the CSV file. Eventhough GAIA accepts names with underscores, CSV files typically do not handle underscores well. After removing the underscore I was able to import using the mgmt._cli add network --batch command. The import is a huge time saver.
Thanks for all the input.
Hi Robert,
I'm running into a similar issue, my names don't have underscores like Ed's. I'm running this application from within the home/admin directory with the csv also within that directory as well.
Any tips?
Hi,
I have created a PowerShell module that uses the Web API calls. One of the examples I have using it is doing an import from Excel file of network objects. Very easy to import as many objects as you like.
R80 PowerShell Module | GitHub: Import from Excel Example
Regards
Tim
I am trying to add objects into CMA. but when i run api command i get below error:
Line 11: code: "generic_err_invalid_parameter"
message: "Parameter [nat-settings] value is not valid"
I ran following command:
mgmt_cli add host --batch networkobjects.csv
and excel sheet has following fields:
and nat settings has
kindly advise.
If you want to set individual NAT settings in a CSV, you must specify each setting correctly as a name value pair.
Since nat-settings has subsettings, this means you will need multiple parameters.
For example, you would need nat-settings.hide-behind with value "ip-address" and nat-settings.ipv4-address with value "yourip".
Thanks Dameon. got it. I thought export csv file from smart console will work but i was wrong.
I have one more question. If i want to move network objects from one CMA to another CMA in same MDS through api. What is the procedure? I tested this but unfortunately objects didn't appeared in new CMA.
I was in CMA env and executed the api command from there through CLI.
At a high level, you would be making successive calls to the relevant APIs to read the objects against one CMA, then write them to the other CMA.
There are several working examples of this on CheckMates.
Hi Dameon,
I can't find any post.
kindly can you please share the link if you are aware off.
Thanks
You're corresponding with our R&D on one such tool
Here's another that does export/import via CSV files: CLI API Example for exporting, importing, and deleting different objects using CSV files (v 00.29.02...
I also provided a sample with raw API calls recently here (calling via curl on the CLI): https://community.checkpoint.com/thread/5999-cli-help?commentID=36360#comment-36360
Hi Team,
Can you guide how to import the range of ip address which is in csv file in checkpoint managment server.
119.227.224.0-119.227.255.255 |
Regards
Aathi
@PhoneBoy I know this is an old post, but I found it when searching for information about bulk importing. So far, the info has been excellent!
I have one question about adding networks to an existing group using a csv.
I see from the API reference https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/add-network~v1.1%20 that I can add a network to a group, but what is the syntax I use in the CSV? Same for Tags...
For Example:
name | subnet | subnet-mask | comments | tags |
Zoom-101.36.167.0/24 | 101.36.167.0 | 255.255.255.0 | Zoom-101.36.167.0/24 | Zoom |
Or do I need to add more info to the tags field:
name | subnet | subnet-mask | comments | tags |
Zoom-101.36.167.0/24 | 101.36.167.0 | 255.255.255.0 | Zoom-101.36.167.0/24 | name "Zoom" |
In the CSV header line, use groups.1 or tags.1 as appropriate.
To add to additional groups as part of the same CSV, increment the number (e.g. groups.2, tags.2).
You can see an example here: https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/One-liner-Convert-CSV-for-Managem...
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
User | Count |
---|---|
9 | |
7 | |
3 | |
2 | |
2 | |
2 | |
1 | |
1 |
Wed 03 Sep 2025 @ 11:00 AM (SGT)
Deep Dive APAC: Troubleshooting 101 for Quantum Security GatewaysThu 04 Sep 2025 @ 10:00 AM (CEST)
CheckMates Live BeLux: External Risk Management for DummiesWed 10 Sep 2025 @ 11:00 AM (CEST)
Effortless Web Application & API Security with AI-Powered WAF, an intro to CloudGuard WAFWed 10 Sep 2025 @ 11:00 AM (EDT)
Quantum Spark Management Unleashed: Hands-On TechTalk for MSPs Managing SMB NetworksWed 03 Sep 2025 @ 11:00 AM (SGT)
Deep Dive APAC: Troubleshooting 101 for Quantum Security GatewaysThu 04 Sep 2025 @ 10:00 AM (CEST)
CheckMates Live BeLux: External Risk Management for DummiesWed 10 Sep 2025 @ 11:00 AM (EDT)
Quantum Spark Management Unleashed: Hands-On TechTalk for MSPs Managing SMB NetworksAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY