Hi CheckMates,
I’m after some API help if you’re able to, please? I want to start using the CP API functionality to speed up the basic day to day firewall work and I’ve been reading the documentation available. However, I’m unsure how to go from the basic commands (see below) to using a bash script.
Typing API commands from the SmartConsole GUI:
add host name myHost ip-address 192.0.2.100
Using the "mgmt_cli" tool:
# mgmt_cli add host name host1 ip-address 192.0.2.100
The above is all very self-explanatory, but how do I go from that to using a script?
I've found these very useful scripts, but where do I start? Where do these need to be located and how do they get run?
https://community.checkpoint.com/docs/DOC-1967
https://community.checkpoint.com/docs/DOC-1965
https://community.checkpoint.com/docs/DOC-1966
I'm clearly a newbie to this so any help would be appreciated.
Many thanks
Alex