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

# sk180465 - SNMP shell extension scripts fail to run on a Check Point Appliance

| Property | Value |
|----------|-------|
| Solution ID | sk180465 |
| Date Created | 2022-12-29 |
| Last Modified | 2023-01-02 |
| Technical Level | Advanced |
| Products | Hardware |
| Versions | Not Version-Specific |
| OS | Gaia |

## Symptoms

- * When users run the snmpwalk shell extension in the CLI of a Quantum appliance, the Object Identifier (OID) times out:

  ```
   
  [Expert@LAB:0]# snmpwalk -v2c  -c LAB localhost 1.3.6.1.4.1.2620.1.0.0.1 
  
  SNMPv2-SMI::enterprises.2620.1.0.0.1.1.0 = INTEGER: 1
  
  SNMPv2-SMI::enterprises.2620.1.0.0.1.2.1.2.4.116.101.115.116 = STRING: "/bin/bash" 
  
  SNMPv2-SMI::enterprises.2620.1.0.0.1.2.1.3.4.116.101.115.116 = STRING: "/home/admin/snmp/test.sh"
  
  SNMPv2-SMI::enterprises.2620.1.0.0.1.2.1.4.4.116.101.115.116 = ""
  
  SNMPv2-SMI::enterprises.2620.1.0.0.1.2.1.5.4.116.101.115.116 = INTEGER: 5
  
  SNMPv2-SMI::enterprises.2620.1.0.0.1.2.1.6.4.116.101.115.116 = INTEGER: 1
  
  SNMPv2-SMI::enterprises.2620.1.0.0.1.2.1.7.4.116.101.115.116 = INTEGER: 1
  
  SNMPv2-SMI::enterprises.2620.1.0.0.1.2.1.20.4.116.101.115.116 = INTEGER: 4
  
  SNMPv2-SMI::enterprises.2620.1.0.0.1.2.1.21.4.116.101.115.116 = INTEGER: 1
  
  Timeout: No Response from 10.20.10.42
  
   
  ```

* Increasing the timeout causes empty results to return:

  ```
  
  [Expert@LAB:0]# snmpwalk -v2c  -c LAB localhost  1.3.6.1.4.1.2620.1.0.0.1 -t 60 
  
  SNMPv2-SMI::enterprises.2620.1.0.0.1.1.0 = INTEGER: 1 
  
  SNMPv2-SMI::enterprises.2620.1.0.0.1.2.1.2.4.116.101.115.116 = STRING: "/bin/bash"
  
  SNMPv2-SMI::enterprises.2620.1.0.0.1.2.1.3.4.116.101.115.116 = STRING: "/home/admin/snmp/test.sh"
  
  SNMPv2-SMI::enterprises.2620.1.0.0.1.2.1.4.4.116.101.115.116 = ""
  
  SNMPv2-SMI::enterprises.2620.1.0.0.1.2.1.5.4.116.101.115.116 = INTEGER: 5
  
  SNMPv2-SMI::enterprises.2620.1.0.0.1.2.1.6.4.116.101.115.116 = INTEGER: 1
  
  SNMPv2-SMI::enterprises.2620.1.0.0.1.2.1.7.4.116.101.115.116 = INTEGER: 1
  
  SNMPv2-SMI::enterprises.2620.1.0.0.1.2.1.20.4.116.101.115.116 = INTEGER: 4
  
  SNMPv2-SMI::enterprises.2620.1.0.0.1.2.1.21.4.116.101.115.116 = INTEGER: 1
  
  SNMPv2-SMI::enterprises.2620.1.0.0.1.3.1.1.4.116.101.115.116 = ""
  
  SNMPv2-SMI::enterprises.2620.1.0.0.1.3.1.2.4.116.101.115.116 = ""
  
  SNMPv2-SMI::enterprises.2620.1.0.0.1.3.1.3.4.116.101.115.116 = INTEGER: 1
  
  SNMPv2-SMI::enterprises.2620.1.0.0.1.3.1.4.4.116.101.115.116 = INTEGER: 1
  
  SNMPv2-SMI::enterprises.2620.1.0.0.1.4.1.2.4.116.101.115.116.1 = ""
  
  ```

* When users run the script directly in the Bash shell, the script works as expected.

## Cause

The script triggered by the *snmpwalk* shell extension contains the *snmpwalk*command within it. The SNMP socket is stuck because it cannot finish the second SNMP query.

## 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
