- Products
- Learn
- Local User Groups
- Partners
- More
What's New in R82.10?
10 December @ 5pm CET / 11am ET
Improve Your Security Posture with
Threat Prevention and Policy Insights
Overlap in Security Validation
Help us to understand your needs better
CheckMates Go:
Maestro Madness
I am trying to get the gateway uptime and other detail via management server & then need to export it into CSV format.
Please let me know if there is any option.
Personally, I never heard of such command in API. Even guide itself does not list one.
Andy
https://sc1.checkpoint.com/documents/latest/APIs/#introduction~v1.9.1%20
You can use GAIA API command "Run Script".
Basically you can inject command. You can write uptime to a file.
https://sc1.checkpoint.com/documents/latest/GaiaAPIs/index.html#web/run-script~v1.7%20
Hey Amir,
Do you have simple example you can give? Would like to try it in the lab.
Best,
Andy
I run login and then run script.
For this I would use echo value to a file.
If you want to automate it in some capacity you could also add this to a cron job.
[Expert@Amir:0]# echo $(uptime) >> test.csv
[Expert@Amir:0]# echo $(uptime) >> test.csv
[Expert@Amir:0]# echo $(uptime) >> test.csv
[Expert@Amir:0]# echo $(uptime) >> test.csv
[Expert@Amir:0]# echo $(uptime) >> test.csv
[Expert@Amir:0]# cat test.csv
08:56:40 up 16:58, 1 user, load average: 0.08, 0.08, 0.05
08:56:41 up 16:58, 1 user, load average: 0.08, 0.08, 0.05
08:56:41 up 16:58, 1 user, load average: 0.08, 0.08, 0.05
08:56:42 up 16:58, 1 user, load average: 0.08, 0.08, 0.05
08:56:42 up 16:58, 1 user, load average: 0.08, 0.08, 0.05
Will try it later.
Best,
Andy
Just tested it, good! I will try with watch -d flag later to see if that works.
Andy
How can i use this to collect the uptime from management for multiple gateways?
I dont think watch -d works : - (
This API call runs a script directly on the system against which you make the call. You would make the call on each firewall individually, then your client would assemble the results.
You could use that call against the management to have the management run a script like this one to run commands on every firewall reporting to that management. This takes a lot of familiarity with BASH scripting.
You can use the management API call /gaia-api to tell the management to tell a gateway to run something.
If you have a script in the management script repository, you can use the management API call /run-script to run it against whichever firewalls you specify.
thank you!! is there an article that i can follow to setup?
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
Wed 03 Dec 2025 @ 10:00 AM (COT)
Última Sesión del Año – CheckMates LATAM: ERM & TEM con ExpertosThu 04 Dec 2025 @ 12:30 PM (SGT)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - APACThu 04 Dec 2025 @ 03:00 PM (CET)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - EMEAThu 04 Dec 2025 @ 02:00 PM (EST)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - AmericasWed 03 Dec 2025 @ 10:00 AM (COT)
Última Sesión del Año – CheckMates LATAM: ERM & TEM con ExpertosThu 04 Dec 2025 @ 12:30 PM (SGT)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - APACThu 04 Dec 2025 @ 03:00 PM (CET)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - EMEAThu 04 Dec 2025 @ 02:00 PM (EST)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - AmericasAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY