> Source: [sk177045](https://support.checkpoint.com/results/sk/sk177045)

# sk177045 - Error when running the "asg perf" command: can't read "stats(system_total,fw_load,cores_num)": no such element in array

| Property | Value |
|----------|-------|
| Solution ID | sk177045 |
| Date Created | 2021-12-23 |
| Last Modified | 2021-12-23 |
| Technical Level | Advanced |
| Products | Scalable Platforms |
| Versions | R82.20, R82.10, R82, R81.20 |

## Symptoms

- * The "`asg perf`" command does not show full output.

* This error message is displayed:

  ```
  
  
  can't read "stats(system_total,fw_load,cores_num)": no such element in array
  
      while executing
  
  "puts_ " * Instances / Acceleration Cores: $stats(system_total,fw_load,cores_num) / $stats(system_total,sxl_load,cores_num)""
  
      invoked from within
  
  "if $stats(system_total,cores_num,affinity_problem) {
  
                  puts_ " * Instances / Acceleration Cores:
   $stats(system_total,fw_load,cores_num) / $stats(syste..."
      (procedure "print_default_view" line 36)
  
      invoked from within
  
  "$func"
  
      (procedure "gperfanalyze" line 147)
  
      invoked from within
  
  "$func_name "$g_flag_str"  "$flg""
  
      ("function" arm line 11)
  
      invoked from within
  
  "case $type in {
  
          simple {
                  stream "$g_flag_str" 1 $str $usage_flag
          }
  
          stream {
  
                  stream "$g_flag_..."
  
      (file "/opt/CPsmo-R80.30/bin/g_perf" line 368)
  
  ```

## Cause

An administrator configured the CoreXL Affinity settings to assign the "`fwk`" process to all CPU cores in one of the Virtual systems. As a result, the value of the variable "`fw_instances_num`" is zero (0) in the "`asg perf`" script, which divides by the value of this variable. Because division by zero (0) is an undefined operation, the "`asg perf`" script fails.   

![](https://sc1.checkpoint.com/sc/SolutionsStatics/NEW_SK_NOID1640268597851/fw_affinity_wrong202112230819141.png)

<br />

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
