
API Fun with Check Point R80.10 SMS
Finally, there is some support for some work to be done via the R80 Security Management API. I will at some point show some web based capabilities, but for first here is a .csv upload option that should have been made available far sooner.
You will need to have some basic knowledge on how to use vi, as well as an understanding of how .csv files are formatted. At some point I may create a kb article of my own on how to use these, but for the moment if you're struggling with either please utilize google as there are literally hundreds of tutorials on each of these.
I've created two examples for hosts and network csv files, each of these are listed below as examples edit them as you wish.
Make sure the API is running. You can follow this article for instructions on how to do so here.
Access your SMS via ssh and go into expert mode
Create a .csv file with vi
For Single Domain SMS (typical setup), use
Create a .csv file with vi
Now we can see the new hosts populated in the Networks section of the Object Explorer
Check Point's Official SK Article on the CLI API

Hosts Import
A before shot of my Hosts section of Object Explorer
vi hosts.csvPaste the following script into the file
#hosts.csv name,ip-address,color ip-1.1.1.1,1.1.1.1,orange ip-2.2.2.2,2.2.2.2,violet red ip-3.3.3.3,3.3.3.3,red ip-4.4.4.4,4.4.4.4,blue ip-5.5.5.5,5.5.5.5,brown ip-6.6.6.6,6.6.6.6,black ip-7.7.7.7,7.7.7.7,sea greenSave the file You'll run the cli's API command to push import the entries in the csv file!

mgmt_cli add host --batch hosts.csvFor Multi-Domain Management, use
mgmt_cli add host -d <domain_ip> --batch hosts.csvFor Global Domain, use
mgmt_cli add host -d "<globalName>" --batch hosts.csvWe can see the new hosts populated in the Hosts section of the Object Explorer

Networks Import
A before shot of my Networks section of Object Explorer
vi networks.csvPaste the following script into the file
#networks.csv name,subnet,subnet-mask,color net-10.10.10.0_24,10.10.10.0,255.255.255.0,sea green net-30.30.30.0_24,30.30.30.0,255.255.255.0,brown net-40.40.40.0_24,40.40.40.0,255.255.255.0,violet redYou'll run the cli's API command to push import the entries in the csv file!
mgmt_cli add network --batch networks.csv

