Monitoring CPU Resources (vsx resctrl)
Use the vsx resctrl
commands to monitor the CPU resources on a VSX Gateway Physical server that hosts VSX virtual networks, including all Virtual Devices that provide the functionality of physical network devices. It holds at least one Virtual System, which is called VS0.. You can also see real-time statistics on the current and average CPU consumption by the Virtual Devices.
Note - You must enable VSX Virtual System Extension. Check Point virtual networking solution, hosted on a computer or cluster with virtual abstractions of Check Point Security Gateways and other network devices. These Virtual Devices provide the same functionality as their physical counterparts. Resource Control Monitoring to see data about CPU usage for each Virtual System
Virtual Device on a VSX Gateway or VSX Cluster Member that implements the functionality of a Security Gateway. Acronym: VS. over SNMP.
fw vsx resctrl load_configuration
Description
Initializes Resource Control. This command uses the contents of the resctrl
file to configure CPU resource Control.
Syntax
fw vsx resctrl load_configuration
Example output
Loading Resource Control configuration from $FWDIR/conf/resctrl Resource Control Monitor is disabled Resource Control monitoring configuration successfully read. |
Comment
After you run fw vsx resctrl load_configuration
, the commands in the resctrl
file enable or disable Resource Control monitoring.
fw vsx resctrl monitor
Description
Configures the Resource Monitor and shows its current status. This command overrides the settings in the Resource Control configuration file, but does not survive reboot.
Syntax
fw vsx resctrl monitor {enable | disable | show}
Parameter |
Description |
|
Enables Resource Monitor |
|
Disables Resource Monitor |
|
Displays whether Resource Monitor is enabled or disabled |
Example
Resource Control Monitor is enabled |
fw vsx resctrl reset
Description
Resets the Resource Control monitoring statistics.
Syntax
fw vsx resctrl reset
fw vsx resctrl stat
Description
Shows the percentage of the total CPU resources that each Virtual Device Logical object that emulates the functionality of a type of physical network object. Virtual Device can be on of these: Virtual Router, Virtual System, or Virtual Switch. uses.
Syntax
fw vsx resctrl [-u | -d| -d -q] stat
Parameter |
Description |
|
Displays information per CPU (SMP only). |
|
Displays 24 hours of statistics. These statistics are only available after 24 hours of monitoring. |
|
Same as |
Example
# Virtual Systems CPU Usage Statistics ==================================== Number of CPUs/Hyper-threading: 4 Monitoring active time: 14s ID Name |1sec 10sec 1min 1hr 24hr* =============================+==================================== 0 VSX2 |0.11 0.06 0.08 0.07 0.01 1 VSX2_vs1 |15.80 21.57 21.75 22.28 1.94 2 VSX2_vsw |0.00 0.00 0.00 0.00 0.00 3 VSX2_vs2 |16.91 22.57 22.77 23.09 2.01 =============================+==================================== Total Virtual Devices CPU Use|32.82 44.20 44.60 45.44 3.96 =============================+==================================== |
Example
# fw vsx resctrl -u Virtual Systems CPU Usage Statistics [%] ======================================== Number of CPUs: 4 Monitoring active time: 9m 4s ID Name | CPU | 1sec 10sec 1min 1hr* 24hr* =============================+======+================================== 0 vsxb | 0 | 0.30 0.44 0.48 0.00 0.00 | 1 | 12.50 1.33 0.48 0.00 0.00 | 2 | 3.40 1.36 5.25 0.00 0.00 | 3 | 0.20 0.24 0.41 0.00 0.00 | Avg. | 4.10 0.84 1.65 0.00 0.00 -----------------------------+------+---------------------------------- 1 vs1 | 0 | 0.00 0.02 0.11 0.00 0.00 | 1 | 0.00 0.01 0.01 0.00 0.00 | 2 | 0.20 0.04 0.11 0.00 0.00 | 3 | 0.00 0.01 0.01 0.00 0.00 | Avg. | 0.05 0.02 0.06 0.00 0.00 =============================+======+================================== Total Virtual Devices CPU Use| 0 | 0.30 0.46 0.59 0.00 0.00 | 1 | 12.50 1.34 0.48 0.00 0.00 | 2 | 3.60 1.40 5.35 0.00 0.00 | 3 | 0.20 0.25 0.42 0.00 0.00 | Avg. | 4.15 0.86 1.71 0.00 0.00 =============================+======+================================== |
Comments
-
For systems with more than one CPU, time is an average for all CPUs. To see the usage for each Virtual Device per CPU, run
vsx resctrl -u stat
-
Total Virtual System CPU Usage includes the total for all Virtual Devices: Virtual Routers, Virtual Switches, Virtual Systems and the VSX Gateway.