- Products
- Learn
- Local User Groups
- Partners
- More
Introduction to Lakera:
Securing the AI Frontier!
Quantum Spark Management Unleashed!
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!
Hello all,
I would like to share with you a tool for automatic configuration of Check Point management server and Check Point gateways. The tool is based on CP Management API, CP GAiA API, Ansible and enables a range of gateways and management related configuration actions. The tool is easily extendable.
The tool can be considered as a good starting point for the automation of your Check Point environment.
For management server
Following configuration is possible on management server:
For gateways
Following configuration is possible on gateways in accordance to various gateways attributes like CMA, SW version, gateway type, platform type, gateway IP.
Which means you can configure DNS, Users, Expert password or Users public keys specifically for gateways in certain CMAs or for gateways having certain SW version, or platform type, or IP address.
Below are the tool structure and the steps for the gateways configuration part.
License, warranty, contact
The tool is provided with APACHE2.0 and without any liability, warranty or support. In case, you are interested in support or customization please contact Check Point Profession Services under:
PS-AUTOMATION@MICHAEL.CHECKPOINT.COM.
Detailed tool information is provided in the attached documentations and videos.
I hope the tool will be beneficial for you and I would appreciate your feedback. 🙂
Regards,
Yevgeniy
Nicely done!
Thanks. I appreciate your positive feedback. 🙂
@PhoneBoy any idea what should be the ansible_network_os for checkpoint. I am getting below error while running my playbook
TASK [SHOW COMMAND] *************************************************************************************************************************************************************************
fatal: [HQFW]: FAILED! => {"msg": "Unable to automatically determine host network os. Please manually configure ansible_network_os value for this host"}
@PhoneBoy Yes i am using bash shell. i have changed it to bash
@PhoneBoy Nah, That didn't work...
My script:
When i use roles then it works fine but the issue is ansible output gives me lot of additional things which i don't want.
Below is the script when i use roles. But i don't want to use the roles features and i run the same thing in single play then i get the error of mentioning the device OS or i would say ansible_network_os under device name in host_vars directory.
root@eve-ng:/etc/ansible# cat show-bash.yml
- hosts: checkpoint
serial: 1
gather_facts: no
tasks:
- name: SHOW COMMAND
import_role:
name: Trib_role
tasks_from: showbash
vars:
cmdfile: show-bash.cmd
#cat show-bash.cmd
fw tab -t connections -s
fw ver
[checkpoint]
HQFW
Under host_vars directory:
cat HQFW
---
ansible_host: 192.168.110.71
ansible_user: admin
ansible_ssh_pass: admin123
ansible_connection: network_cli
root@eve-ng:/etc/ansible/roles/Trib_role/tasks# cat showbash.yml
---
- name: SHOW CONFIG
cli_command:
command: "{{ item }}"
with_lines: cat {{ cmdfile }}
register: result1
- name: show output files
debug:
var: result1
***********************************************************************
-- Playbook which i want to run and which is asking me to give the OS name:
root@eve-ng:/etc/ansible# cat cp1.yml
- hosts: checkpoint
serial: 1
gather_facts: no
connection: network_cli
tasks:
- name: SHOW COMMAND
cli_command:
command:
- "cpinfo -y all"
- "fw ver"
register: result
- name: show output
debug:
var: result.stdout_lines
Please help.
According to sk114661, you need to configure Ansible inventory or /etc/ansible/hosts with the relevant ansible_network_os.
ansible_network_os=checkpoint
Full configuration shown in sk114661.
BR,
Vlad Tonne.
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
Tue 30 Sep 2025 @ 08:00 AM (EDT)
Tips and Tricks 2025 #13: Strategic Cyber Assessments: How to Strengthen Your Security PostureTue 07 Oct 2025 @ 10:00 AM (CEST)
Cloud Architect Series: AI-Powered API Security with CloudGuard WAFTue 30 Sep 2025 @ 08:00 AM (EDT)
Tips and Tricks 2025 #13: Strategic Cyber Assessments: How to Strengthen Your Security PostureThu 09 Oct 2025 @ 10:00 AM (CEST)
CheckMates Live BeLux: Discover How to Stop Data Leaks in GenAI Tools: Live Demo You Can’t Miss!Wed 22 Oct 2025 @ 11:00 AM (EDT)
Firewall Uptime, Reimagined: How AIOps Simplifies Operations and Prevents OutagesAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY