Checkpoint Cli
Checkpoint Cli
cpwd_admin list great way to explain the CP watchdog- run the command with
watch -d, and from another terminal terminate one of the PID,
and observe how the watchdog bring it back.
and its also a great way to see that everything is up
cpview -t used often review mem, core usage at any snapshot in time. When
getting a checkup device back or reviewing a DAT file
fw stat Shows what policy is loaded on the current gateway and what
interfaces it has seen traffic on
fw fetch mastername Fetches the policy from the management station named
mastername. You can also use localhost as a way to reload the
previously installed policy on the gateway
push_cert –s Cust_CMA –u admin –p It is used on the management to establish SIC with a newly
adminpw –o examplegw –k test123 installed security gateway without using SmartConsole or
SmartDashboard, making it extremely useful in automation
scenarios.
–s Cust_CMA Management or CMA IP/hostname (can be
localhost)
–u admin Username of admin user in
SmartConsole/SmartDashboard
–p adminpw Password of admin user specified above
–o examplegw Name (in SmartConsole/SmartDashboard) of
gateway to establish SIC with
–k test123 SIC one-time-password (should match what was
specified on the gateway during first-time wizard)
fw monitor To do a live packet capture
fw ctl affinity -l -v -r is a useful command when you're attempting to finetune the
affinity of an IRQ to an interface. This is especially useful when
looking at the amount of traffic received by an interface that
deserves more "horsepower" and should not be sharing CPU time
with other interfaces. This command will list what interface is
connected to what IRQ to what core.
"fw ctl affinity -s" will subsequently allow you to set the values.
netstat -ni check drop on interfaces
cpstat mg Shows connected clients and status.
cpstat ha -f all Shows sync details
cpstat blades Shows packets accepted, dropped, peak connections, and top rule
hits
cprid_util (--help) This command allowed me to execute commands, transfer files etc
with a remote gateway without needing credentials. I was able to
use it to copy a new shadow file to the remote gateway when
password was lost/corrupted.
fw tab -u -t connections | awk '{ print $2 }' | This will show the top ten source IPs hogging slots in the
sort -n | uniq -c | sort -nr | head -10 connection table in descending order, however you will need to
manually convert the IP addresses displayed from hex to decimal
like so: 0a1e0b53 = 10.30.11.83. For the top 10 destinations,
substitute $4 for $2 in the awk command above.
fw getifs shows interfaces, IP addresses and subnet masks in quick easy
format. I do this almost everytime I login to quickly orient myself.
fw ctl multik stat shows multi-kernel connections and peak connections
./CentralDeploymentTool -generate The Central Deployment Tool (CDT) is a utility that runs on an
Candidates_List.csv R77 / R77.X / R80 / R80.10 Security Management Server / Multi-
Domain Security Management Server (running Gaia OS).
It allows the administrator to automatically install CPUSE Offline
packages (Hotfixes, Jumbo Hotfix Accumulators (Bundles),
Upgrade to a Minor Version, Upgrade to a Major Version) on
multiple managed Security Gateways and Cluster Members at the
same time.
./vsx_provisioning_tool -s localhost -u The VSX Provisioning Tool allows the VSX administrator to add
user -p pwd -o add vd name VSW1 vsx VSX1 and remove Virtual Devices (VS, VR, VSW), interfaces and routes
type vsw from the command line of a Security Management Server / Multi-
Domain Security Management Server. This allows the automation
of the required VSX Provisioning operations in the environment.
(sk100645)
cpwd_admin start -name <application Great to get reset processes without cpstop/cpstart/reboot.
name> -path <executable path> -command
<command line>
cpprod_util FwIsActiveManagement To find out the current status of the active SMS (HA). 1= Active
0= Standby
On the SG
cp_conf sic state shows trust state of SIC
All CP Products