技術文章 · IT 指令工具箱

Check Point Gaia CLI:系統、介面、路由、Policy 與效能檢查

整理 Check Point R82 Gaia Clish/Expert 的 version、interface、route、ARP、cpview、cpstat、fw stat、CoreXL、SecureXL 與 process 指令。

作者 Steve Chen · 發布  · 約 6 分鐘閱讀 · 更新

IT 指令工具箱 — 廷皓技術專欄插圖

Check Point 要先分 Gaia Clish、Expert、Security Gateway、Management、VSX 與 Scalable Platform。相同指令在不同 context 看到的 scope 不同,先記錄 hostname、version、role 與 VSID。

22 組範例Check Point R81.20/R82/R82.10Gaia Clish/Expert查核日期:2026-11-14
動手前:Expert mode 權限高,fw ctl、fw tab 與 CoreXL 指令有些能修改 kernel state。本頁只列唯讀健康檢查;不要把 cpstop/cpstart 當一般排錯,也不要在未確認 context 下清 table。

Gaia 與系統盤點

查看 Gaia 版本Gaia Clish

show version all

記錄 product、OS build、kernel 與 hotfix。

查看已安裝 HotfixGaia Clish

show installer packages all

不同版本可用語法以 Clish ? 為準。

查看介面Gaia Clish

show interfaces all

看 state、IPv4/IPv6、MTU 與 link。

查看路由Gaia Clish

show route all

確認 static、dynamic、default 與 next hop。

查看 ARPGaia Clish

show arp dynamic all

Static 與 dynamic 分開查,確認鄰居是否完整。

查看 NTPGaia Clish

show ntp

Cluster、VPN、log 與憑證都依賴對時。

查看 DNSGaia Clish

show dns

確認 search、server 與管理面解析。

即時健康儀表板Expert mode

cpview

按 q 離開;可看 CPU、memory、traffic、accelerated traffic、blades。

Check Point Processes 與 Policy

查看 WatchDog processesExpert mode

cpwd_admin list

STAT 應穩定,反覆 restart 要查對應 log 與 crash。

查看作業系統統計Expert mode

cpstat os

os 是作業系統狀態,查特定 Blade 應使用文件對應的 application flag,並核對該角色是否已啟用。查範圍與可用 flavor 時先看當版說明。

查看 Firewall 統計Expert mode

cpstat fw

確認 policy、connection、fragment、inspection 統計。

查看目前安裝 PolicyExpert mode

fw stat

確認 policy name、install time、host 與 interface。

查看 Firewall kernel memoryExpert mode

fw ctl pstat

看 memory、connections、fragments 與 sync 提示。

列出介面與 chainExpert mode

fw ctl chain

用於確認 inspection chain 與 blades;輸出依版本。

查看 kernel interfacesExpert mode

fw getifs

VSX 環境先 vsenv 到正確 VS。

CoreXL、SecureXL 與連線

查看 CoreXL instancesExpert mode

fw ctl multik stat

確認 instances 數量、狀態與 active。

查看 CoreXL affinityExpert mode

fw ctl affinity -l -r

唯讀檢查目前分配;不要照別台硬改 affinity。

查看 SecureXL 狀態Expert mode

fwaccel stat

不同硬體/VSX/Maestro context 需用對應工具。

查看 Accelerated connections 摘要Expert mode

fwaccel stats -s

比較 accelerated、medium path、slow path。

查看 connection table 摘要Expert mode

fw tab -t connections -s

只看摘要,避免直接傾印完整 table。

高負載先看連線表摘要Expert mode

fw tab -t connections -s

查看連線表的 #VALS 等摘要,依該版文件解讀。需要單筆連線時,另外使用當版支援的有限範圍選項,不在負載尖峰傾印全部表格。

查看系統網路路由Expert mode

ip route show

和 Gaia routing daemon、VRF/VS context 比較。

驗收與排錯

同一個 Gateway CPU 突升,先確認負載來自哪裡

  1. 記錄版本、Jumbo Hotfix、Gateway 或 Management 角色,以及 Cluster 成員、VSID。從相同 member/context 先取 CPView、連線表摘要和 SecureXL 基線。
  2. 在相同長度的時間窗比較活躍連線及加速統計差值並與應用流量、政策安裝、CPU 排程對照。如果管理或索引使用 CPU,回查對應 process 與管理任務;如果大量流量走不同轉送路徑,查相關功能及 policy。
  3. 驗收以相同測試負載重跑,保留每個時間窗 CPU、連線數、丟包和業務延遲。Cluster/VSX 分別記錄成員與 VS,必要時核對 SmartConsole 的安裝時間、目標與結果。

常見錯誤

  • 在 Clish、Expert、gClish 間直接照貼同一指令。
  • 看到 process 有問題就 cpstop/cpstart。
  • 傾印完整 fw table 造成終端或設備負擔。
  • 忽略 JHF take 與 gateway/management 角色差異。

常見問題

cpview CPU 高就一定是 Firewall blade 嗎?

不一定。要看是哪個 core/process、SecureXL/CoreXL path、log、IPS、HTTPS inspection、management task 與流量型態,再用時間相關資料確認。

fw stat 有 policy 就代表 policy 最新嗎?

要對 policy name、install time、gateway target、revision 與 SmartConsole install result;Cluster/VSX 每個適用成員也要核對。

延伸閱讀

版本與官方文件

參數會隨工具版本與作業系統實作改變。正式環境先用 --help、-h 或系統內建說明確認,再以當版官方文件為準。

查核資料

  1. Check Point R82 cpstat
  2. Check Point R82 ClusterXL 監控

常見問題

cpview CPU 高就一定是 Firewall blade 嗎?

不一定。要看是哪個 core/process、SecureXL/CoreXL path、log、IPS、HTTPS inspection、management task 與流量型態,再用時間相關資料確認。

fw stat 有 policy 就代表 policy 最新嗎?

要對 policy name、install time、gateway target、revision 與 SmartConsole install result;Cluster/VSX 每個適用成員也要核對。

聯絡廷皓討論 看更多文章