- Products
- Learn
- Local User Groups
- Partners
- More
MVP 2026: Submissions
Are Now Open!
What's New in R82.10?
Watch NowOverlap in Security Validation
Help us to understand your needs better
CheckMates Go:
Maestro Madness
Hi all,
I am running a script on my R81 gateways.
I want the output from "cpinfo -y all" and "cphaprob stat" to be directed into a textfile.
When I login to the gateways as expert and run the script, everything looks good.
When I login to Web GUI and configures the Job Scheduler to run the script, it doesn't look good.
"cpinfo -y all" says:
Warning: failed getting the list of all products installed on the machine.
"cphaprob stat" says:
This is Check Point CPinfo Build 914000215 for GAIA
No Checkpoint product on this machine
Upload mode only
What should I do, to make the CP commands see, that the machine is a R81 gateway?
Kind regards
Jan
I recommend to add the line below on top of your script:
source /etc/profile.d/CP.sh;
In case you also wish to create similar scripts on VSX systems, just add this line as well:
source /etc/profile.d/vsenv.sh;Hey,
Are you running the commands in CLISH ?
For result redirection to a file, I recommend to run them in bash (under expert mode) .
cpinfo -y all > mytextfile.log
cphaprob stat > mytextfile.log
Or you can grab that response and email it, do whatever.....
You need to refer using source to the CP environment variables, see for details Calling a Bash Script in Cron
I recommend to add the line below on top of your script:
source /etc/profile.d/CP.sh;
In case you also wish to create similar scripts on VSX systems, just add this line as well:
source /etc/profile.d/vsenv.sh;Thanks a lot for the precise info.
Now I got it working on my R81 hardware gateway AND on my R81.10 VSX. 👍😊
Best regards
Jan
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
| User | Count |
|---|---|
| 20 | |
| 19 | |
| 18 | |
| 8 | |
| 7 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
Tue 16 Dec 2025 @ 05:00 PM (CET)
Under the Hood: CloudGuard Network Security for Oracle Cloud - Config and Autoscaling!Thu 18 Dec 2025 @ 10:00 AM (CET)
Cloud Architect Series - Building a Hybrid Mesh Security Strategy across cloudsTue 16 Dec 2025 @ 05:00 PM (CET)
Under the Hood: CloudGuard Network Security for Oracle Cloud - Config and Autoscaling!Thu 18 Dec 2025 @ 10:00 AM (CET)
Cloud Architect Series - Building a Hybrid Mesh Security Strategy across cloudsAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY