Print Download PDF Send Feedback

Previous

Next

VSX CPU Monitoring Commands

Use the fw vsx resctrl commands to monitor the CPU resources on a VSX Gateway. You can also see real-time statistics on the current and average CPU consumption by the Virtual Devices.

Note - You must enable VSX Resource Control Monitoring to see data about CPU usage for each Virtual System over SNMP.

Included Topics

fw vsx resctrl load_configuration

fw vsx resctrl monitor

fw vsx resctrl reset

fw vsx resctrl stat

Sample Output fw vsx resctrl -u

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

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

enable

Enables Resource Monitor

disable

Disables Resource Monitor

show

Displays whether Resource Monitor is enabled or disabled

Example

fw vsx resctrl monitor enable

Output

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 uses.

Syntax

fw vsx resctrl [-u | -d| -d -q] stat

Parameter

Description

-u

Displays information per CPU (SMP only).

-d

Displays 24 hours of statistics. These statistics are only available after 24 hours of monitoring.

-d -q

Same as -d parameter without details for each CPU. Shows an average of all the CPUs for each Virtual Device.

Example

fw vsx resctrl -d -q stat

Output

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

=============================+====================================