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

# sk121121 - Show Package tool (web_api_show_package.sh) fails on MDS R80 / R80.10

| Property | Value |
|----------|-------|
| Solution ID | sk121121 |
| Date Created | 2017-10-25 |
| Last Modified | 2018-08-22 |
| Technical Level | Advanced |
| Products | Multi-Domain Security Management Server |
| Versions | R82.10, R81.20, R82 |
| OS | Gaia |

## Symptoms

- * When running the web_api_show_package.sh script, users get the following:  

  `Script finished running with warnings!`  
  `Result file location: show_package-2017-09-06_01-06-01.tar.gz`  

* The output file includes an .elg file and it shows the following (failing on "show-packages"):  

  `[Date: com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Local Ips: [x.x.x.x, y.y.y.y, z.z.z.z, a.a.a.a, b.b.b.b, 127.0.0.1]`  
  ` [Date: com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Login As root: true`  
  ` [Date: com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Login with 'read-only' flag.`  
  ` [Date: com.checkpoint.mgmt_api.examples.ShowPackageTool.writeTheVersionsToTheLogger()INFO]: Management API running version: 1.1`  
  ` [Date: com.checkpoint.mgmt_api.examples.ShowPackageTool.writeTheVersionsToTheLogger()INFO]: show_package v1.1.3`  
  ` [Date: com.checkpoint.mgmt_api.examples.ShowPackageTool.writeTheVersionsToTheLogger()INFO]: Chosen port: 443`  
  ` [Date: com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Chosen server IP: 127.0.0.1`  
  ` [Date: com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Login response: ..............`  
  ` [Date: com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Run command: 'show-gateways-and-servers' with details level 'full'`  
  ` [Date: com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Found 125 gateways from 'show-gateways-and-servers'`  
  ` [Date: com.checkpoint.mgmt_api.examples.ShowPackageTool.collectGatewaysInUseAndInstalledPolicies()INFO]: Found 26 gateways that have a policy installed on them `  
  ` .........`  
  ` [Date: com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Found 0 packages `  
  `[Date: com.checkpoint.mgmt_api.examples.MyLogger.warning()WARNING]: No packages found on the server. Try to login to a user's domain `  
  `[Date: com.checkpoint.mgmt_api.examples.ShowPackageTool.logoutReportAndExit()INFO]: Script finished running with warnings `  

* OR: Exception in thread \^main\^ java.lang.NullPointerException at com.checkpoint.mgmt_api.examples.ShowPackageTool.setGatewayAndServerPolicy(ShowPackageTool.java:1213) at com.checkpoint.mgmt_api.examples.ShowPackageTool.buildNewGatewayOrServer(ShowPackageTool.java:1185) at com.checkpoint.mgmt_api.examples.ShowPackageTool.collectGatewaysInUseAndInstalledPolicies(ShowPackageTool.java:244) at com.checkpoint.mgmt_api.examples.ShowPackageTool.main(ShowPackageTool.java:158)

## Cause

Show package fails under condition where only one policy (Threat or Access) is installed on a gateway.

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