Check Point Gateway Uptime & Service Integrity Check
In production environments, uptime alone is not enough to understand the real stability of a firewall.
This script correlates three critical indicators on a Check Point Security Gateway:
• System Uptime – How long the operating system has been running
• Kernel / Firewall Uptime – How long the firewall kernel is actually active
• Firewall Services START_TIME(from "cpwd_admin list") – Whether any firewall-related daemons were restarted after system boot
By comparing system uptime with individual service START_TIME values, the tool detects silent service restarts that do not appear in standard uptime checks but may indicate crashes, manual restarts, or partial outages.
Only services that were restarted after the last system boot are reported, keeping the output clean and operationally meaningful.
Note: One-time before running the script
Expert mode: chmod +x cp_uptime_integrity_checker.py
Expert mode: dos2unix cp_uptime_integrity_checker.py
