- Products
- Learn
- Local User Groups
- Partners
- More
Step Into the Future of
AI-Powered Cyber Security
The State of Ransomware Q1 2026
Key Trends and Their Impact
AI Security Masters E8:
Claude Mythos: New Era in Cyber Security
Blueprint Architecture for Securing
The AI Factory & AI Data Center
Call For Papers
Your Expertise. Our Stage
CheckMates Go:
CheckMates Fest
I am trying to write an ansible script that will audit the configuration settings of the firewall and output to a text file. I can do all of that, but I don't know how to use the API to retrieve that output file. I've seen the command put-file, but is there any equivalent to get-file?
Hi Jordan,
There is no API for get-file operation, but maybe you can use the run-script command to run a script on the management that returns the content of a file as its result.
BTW, I cannot sign in to GitHub from home and reply to you, but from your recent error I realize that you are not using the latest cpAnsible sources. Please check again.
Robert.
Hi Robert. You're right about GitHub. I didn't realize that you had made a fix. Thanks for that. As for the run-script API, however, it is not possible to receive anything in response except for some json that indicates the command went through successfully. You can never actually see the output of anything. This is probably something that needs to be corrected by the API folks.
Jordan,
I'm the API folk 🙂
The response of the command should contain the full details of the command result.
You can run the mgmt_cli run-script command on your management and verify how the results should be.
Maybe you have to configure the ansible to correctly get the full results (verbose option...).
Robert.
The response from run-script includes only one output as discussed in the documentation here: Check Point - Management API reference. An example of the output is here: {"tasks": [{"target": "ztestintfw1","task-id": "7edefe91-b4b3-4c8a-bbe8-a7286ca86133"}]}. Note that there is no output listed, just a target and a task-id. Neither or which is particularly helpful.
Ok.
This looks like a problem here - the run-script command returns a tasks container and not a single task-id.
I'll check tomorrow at work and get back to you.
Robert.
Any word on how to resolve this?
This will take some time.
I need to change the code in our Python SDK to fix the issue.
Robert.
Jordan,
Please read this post, and watch the video, may be very helpful for you -
The post also contains lots of scripts and ansible playbooks in a zip file.
Robert.
I have probably watched that video ten times by now. Thank you for the suggestion, though! ![]()
Jordan,
Remove the "domain: System Data" parameter from the login command, this is the reason that the object ztestintfw1 cannot be found.
Robert.
You are the man, Robert! Thank you so much. Quick question, though: When is System Data needed and when is it not?
the "system data" domain is needed for very specific objects, such as administrators.
most of the time you do not need to specify this dimain.
Robert.
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 |
Tue 12 May 2026 @ 10:00 AM (CEST)
The Cloud Architects Series: Check Point Cloud Firewall delivered as a serviceWed 13 May 2026 @ 11:00 AM (EDT)
TechTalk: The State of Ransomware Q1 2026: Key Trends and Their ImpactThu 14 May 2026 @ 07:00 PM (EEST)
Under the Hood: Presentando Check Point Cloud Firewall como ServicioTue 12 May 2026 @ 10:00 AM (CEST)
The Cloud Architects Series: Check Point Cloud Firewall delivered as a serviceTue 19 May 2026 @ 06:00 PM (IDT)
AI Security Masters E8 - Claude Mythos: New Era in Cyber SecurityAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY