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

# sk181865 - The command "hcp -r all" fails on Security Group Members (Maestro or Scalable Chassis)

| Property | Value |
|----------|-------|
| Solution ID | sk181865 |
| Date Created | 2024-01-17 |
| Last Modified | 2024-01-18 |
| Technical Level | General |
| Products | Scalable Platforms |
| Versions | R81.20, R81.10 (EOS), R81 (EOS) |
| OS | Gaia |

## Symptoms

- * The command "`hcp -r all`" fails on a Security Group (Maestro or Scalable Chassis):

  `
  Running HCP tests on all Scalable Platform members. To run HCP tests only on the local member please use the -L flag.`  
  `
  `  
  `
  Task Status`  
  `
  -------------------------------------------------------------------`  
  `
  Executing hcp on members....................................[Failed]`  
  `
  Traceback (most recent call last):`  
  `
  File "/usr/bin/hcp", line 889, in `  
  sys.exit(main())  
  File "/usr/bin/hcp", line 859, in main  
  file_output_path=args.output_file)  
  File "/usr/bin/hcp", line 600, in execute_on_members  
  out = gexec.gexec(members, hcp_cmd, timeout=TIMEOUT)  
  File "/etc/hcp/source/hcp/utils/system/gexec.py", line 29, in gexec  
  raise e.HCPException('gexec failed: cmd={}\nstderr={}'.format(gexec_cmd.cmd, gexec_cmd.stderr))  
  hcp.infra.exception.HCPException: gexec failed: cmd=b"/bin/gexec -a -x 600 -f -b all -c 'hcp -L --run all --format json --output-file /var/run/hcp/member_CLUSTER_ID.json ; echo rc=[$?]' "  
  stderr=
* The command "`hcp -L`" works as expected on individual Security Group Members.

## Solution

This problem was fixed. The fix is included starting from:

* [HealthCheck Point (HCP) Release Update](https://support.checkpoint.com/results/sk/sk171436) starting from Update 15 - Take 67

<br />

**This immediate workaround is available:**

1. Connect to the command line on the Security Group.

2. Log in to the Expert mode.

3. Back up the current /etc/hcp/source/hcp.py file:

   `g_all cp -v /etc/hcp/source/hcp.py`
4. Edit the current /etc/hcp/source/hcp.py file:

   `vi /etc/hcp/source/hcp.py`
5. Change the timeout value in this line from `600` to `6000`:

   from:

   `TIMEOUT = 600`

   to:

   `TIMEOUT = 6000`
6. Save the changes in the file and exit Vi editor.

7. Copy the modified file to all Security Group Members:

   `asg_cp2blades -a /etc/hcp/source/hcp.py`

---

# 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
