- Products
- Learn
- Local User Groups
- Partners
- More
Policy Insights and Policy Auditor in Action
19 November @ 5pm CET / 11am ET
Access Control and Threat Prevention Best Practices
Watch HereOverlap in Security Validation
Help us to understand your needs better
CheckMates Go:
Maestro Madness
Hello everyone,
I need to export a policy package from the MGMT R80.10. This policy is applied to a virtual FW on VSX R76 Environment, however when I run "web_api_show_package.sh -g FW_1" it shows me the error "Script stopped running due to severe error!".
I've visited some forums without finding the answer, have you experienced this issue?
[Expert@MGMT-PRI:0]# ./web_api_show_package.sh -g FW_1
Script stopped running due to severe error!
Result file location: show_package-2018-03-20_03-51-32.tar.gz
[Expert@MGMT-PRI:0]#
Thank you for your assistance in this matter.
Best regards !
Hi Simon,
The tool reports that it failed to login to the management server (login as root).
Try logging in using user name and possword instead.
If it still fails, run on the management server "api status" command and paste the output here.
Robert.
Hi,
Inside the generated tar archive, there is a log file, with ".elg" extension.
Please paste its content here, for analysis.
BTW, why are you exporting the policy out of your management?
Robert.
Hi Robert,
I show file ".elg".
[Tue Mar 20 15:51:33 BRT 2018 com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: The parameters that were received: userRequestGateway:(-g)=FW_1
[Tue Mar 20 15:51:33 BRT 2018 com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Limit number of object per page: 10
[Tue Mar 20 15:51:33 BRT 2018 com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Local Ips: [192.168.1.2, 172.16.1.100, 10.25.3.250, 127.0.0.1]
[Tue Mar 20 15:51:35 BRT 2018 com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Login As root: true
[Tue Mar 20 15:51:35 BRT 2018 com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Login with 'read-only' flag.
[Tue Mar 20 15:51:36 BRT 2018 com.checkpoint.mgmt_api.examples.MyLogger.severe()SEVERE]: An error occurred while logging in to the server Error: failed to get string data
[Tue Mar 20 15:51:36 BRT 2018 com.checkpoint.mgmt_api.examples.ShowPackageTool.logoutReportAndExit()INFO]: Script stopped running due to severe error!
[Tue Mar 20 15:51:36 BRT 2018 com.checkpoint.mgmt_api.examples.ShowPackageTool.logoutReportAndExit()INFO]: dirPath: /opt/CPsuite-R80/fw1/scripts/c3f05923-3cbb-4dd3-a334-17142aa2ae09
[Tue Mar 20 15:51:36 BRT 2018 com.checkpoint.mgmt_api.examples.ShowPackageTool.logoutReportAndExit()INFO]: tarGzPath: show_package-2018-03-20_03-51-32.tar.gz
- Why are you exporting the policy out of your management?
We export the policies from the management, however we can not visualize the IPs that the groups in the ".csv" file.
Thanks for answering.
Hi Simon,
The tool reports that it failed to login to the management server (login as root).
Try logging in using user name and possword instead.
If it still fails, run on the management server "api status" command and paste the output here.
Robert.
Hi Robert,
The api process was stopped.
[Expert@MGMT-PRI:0]# api status
API Settings:
---------------------
Accessibility: Require all granted
Automatic Start: Enabled
Processes:
Name State PID More Information
-------------------------------------------------
API Stopped
CPM Started 17874 Check Point Security Management Server is running and ready
FWM Started 21383
Port Details:
-------------------
JETTY Internal Port: 50276
APACHE Gaia Port: 443
--------------------------------------------
Overall API Status: The API Server Is Not Running!
--------------------------------------------
Notes:
------------
To collect troubleshooting data, please run 'api status -s <comment>'
[Expert@MGMT-PRI:0]# api restart
2018-Mar-21 11:03:07 - API already stopped.
2018-Mar-21 11:03:07 - Starting API...
. . . . . . . . . . . . . . . . . . . .
2018-Mar-21 11:04:37 - API started successfully.
[Expert@MGMT-PRI:0]# api status
API Settings:
---------------------
Accessibility: Require all granted
Automatic Start: Enabled
Processes:
Name State PID More Information
-------------------------------------------------
API Started 7142
CPM Started 17874 Check Point Security Management Server is running and ready
FWM Started 21383
Port Details:
-------------------
JETTY Internal Port: 50276
APACHE Gaia Port: 443
--------------------------------------------
Overall API Status: Started
--------------------------------------------
I really appreciate your help.
Best regards !
Hi Robert,
We have run "web_api_show_package.sh -g FW-1", however we see the error "failed to get string data", we verify the process API Stopped.
[Expert@MGMT-PRI:0]# ./web_api_show_package.sh -g FW-1
Exception in thread "main" com.checkpoint.mgmt_api.client.ApiClientRunTimeException: Error: failed to get string data
at com.checkpoint.mgmt_api.client.UtilClass.convertToJson(UtilClass.java:54)
at com.checkpoint.mgmt_api.client.ApiClient.apiCall(ApiClient.java:296)
at com.checkpoint.mgmt_api.client.ApiClient.apiCall(ApiClient.java:394)
at com.checkpoint.mgmt_api.client.ApiClient.exit(ApiClient.java:501)
at com.checkpoint.mgmt_api.examples.ShowPackageTool.logoutReportAndExit(ShowPackageTool.java:1538)
at com.checkpoint.mgmt_api.examples.ShowPackageTool.logoutReportAndExit(ShowPackageTool.java:1602)
at com.checkpoint.mgmt_api.examples.ShowPackageTool.main(ShowPackageTool.java:169)
[Expert@MGMT-PRI:0]# api status
API Settings:
---------------------
Accessibility: Require all granted
Automatic Start: Enabled
Processes:
Name State PID More Information
-------------------------------------------------
API Stopped
CPM Started 17874 Check Point Security Management Server is running and ready
FWM Started 21383
Port Details:
-------------------
JETTY Internal Port: 50276
APACHE Gaia Port: 443
--------------------------------------------
Overall API Status: The API Server Is Not Running!
--------------------------------------------
Notes:
------------
To collect troubleshooting data, please run 'api status -s <comment>'
[Expert@MGMT-PRI:0]#
- We try with the user and password without success
[Expert@MGMT-PRI:0]# ./web_api_show_package.sh -u ******** -p ********* -g FW-1
Script stopped running due to severe error!
Result file location: show_package-2018-03-21_11-24-35.tar.gz
[Expert@MGMT-PRI:0]# api status
API Settings:
---------------------
Accessibility: Require all granted
Automatic Start: Enabled
Processes:
Name State PID More Information
-------------------------------------------------
API Started 11450
CPM Started 17874 Check Point Security Management Server is running and ready
FWM Started 21383
Port Details:
-------------------
JETTY Internal Port: 50277
APACHE Gaia Port: 443
Apache port retrieved from: httpd-ssl.conf
--------------------------------------------
Overall API Status: Started
--------------------------------------------
API readiness test SUCCESSFUL. The server is up and ready to receive connections
Notes:
------------
To collect troubleshooting data, please run 'api status -s <comment>'
File ".elg":
[Wed Mar 21 11:24:36 BRT 2018 com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: The parameters that were received: username:(-u)=******* password:(-p)=******* userRequestGateway:(-g)=FW-1
[Wed Mar 21 11:24:36 BRT 2018 com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Limit number of object per page: 10
[Wed Mar 21 11:24:38 BRT 2018 com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Login As root: false
[Wed Mar 21 11:24:38 BRT 2018 com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Login with 'read-only' flag.
[Wed Mar 21 11:24:38 BRT 2018 com.checkpoint.mgmt_api.examples.MyLogger.severe()SEVERE]: An error occurred while logging in to the server. Message: 'Authentication to server failed.'. Status Code: '400'
[Wed Mar 21 11:24:38 BRT 2018 com.checkpoint.mgmt_api.examples.ShowPackageTool.logoutReportAndExit()INFO]: Script stopped running due to severe error!
[Wed Mar 21 11:24:38 BRT 2018 com.checkpoint.mgmt_api.examples.ShowPackageTool.logoutReportAndExit()INFO]: dirPath: /opt/CPsuite-R80/fw1/scripts/e165923f-9fb4-4d7e-ba6e-902efefad19c
[Wed Mar 21 11:24:38 BRT 2018 com.checkpoint.mgmt_api.examples.ShowPackageTool.logoutReportAndExit()INFO]: tarGzPath: show_package-2018-03-21_11-24-35.tar.gz
Thank you for your assistance in this matter.
Best regards
your login request to the server fails due to an authentication error.
please verify that you can connect to the server using SmartConsole GUI with the same credentials.
Hi all,
I am having a similar problem, well, same error message at the end.
Looking at the log file, I can see a bunch of successful operations, then it starts to successfully collect rules until it stops, here are the last few messages before the crash:
[6/29/23 4:02 PM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Command [show-access-rulebase] uid d1d3d573-4fe0-4cef-9ac6-735899cc2511 limit 10 offset 1780 SUCCESSFUL
[6/29/23 4:02 PM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Command [show-access-rulebase] uid d1d3d573-4fe0-4cef-9ac6-735899cc2511 limit 10 offset 1790 SUCCESSFUL
[6/29/23 4:02 PM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Command [show-access-rulebase] uid d1d3d573-4fe0-4cef-9ac6-735899cc2511 limit 10 offset 1800 SUCCESSFUL
[6/29/23 4:02 PM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Command [show-access-rulebase] uid d1d3d573-4fe0-4cef-9ac6-735899cc2511 limit 10 offset 1810 SUCCESSFUL
[6/29/23 4:02 PM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Command [show-access-rulebase] uid d1d3d573-4fe0-4cef-9ac6-735899cc2511 limit 10 offset 1820 SUCCESSFUL
[6/29/23 4:02 PM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Command [show-access-rulebase] uid d1d3d573-4fe0-4cef-9ac6-735899cc2511 limit 10 offset 1830 SUCCESSFUL
[6/29/23 4:03 PM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Command [show-access-rulebase] uid d1d3d573-4fe0-4cef-9ac6-735899cc2511 limit 10 offset 1850 SUCCESSFUL
[6/29/23 4:03 PM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Command [show-access-rulebase] uid d1d3d573-4fe0-4cef-9ac6-735899cc2511 limit 10 offset 1860 FAILED
[6/29/23 4:03 PM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Command [show-access-rulebase] uid d1d3d573-4fe0-4cef-9ac6-735899cc2511 limit 10 offset 1840 SUCCESSFUL
[6/29/23 4:03 PM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Command [show-access-rulebase] uid d1d3d573-4fe0-4cef-9ac6-735899cc2511 limit 10 offset 1870 SUCCESSFUL
[6/29/23 4:03 PM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Command [show-access-rulebase] uid d1d3d573-4fe0-4cef-9ac6-735899cc2511 limit 10 offset 1890 FAILED
[6/29/23 4:03 PM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Command [show-access-rulebase] uid d1d3d573-4fe0-4cef-9ac6-735899cc2511 limit 10 offset 1880 SUCCESSFUL
[6/29/23 4:03 PM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Command [show-access-rulebase] uid d1d3d573-4fe0-4cef-9ac6-735899cc2511 : Finished execution of 190 tasks
[6/29/23 4:03 PM com.checkpoint.mgmt_api.examples.MyLogger.severe()SEVERE]: Error: failed while creating policy package: 'Rezidor-VPN'. Exception: null. Error message: null
[6/29/23 4:03 PM com.checkpoint.mgmt_api.examples.ShowPackageTool.logoutReportAndExit()INFO]: Script stopped running due to severe error!
[6/29/23 4:03 PM com.checkpoint.mgmt_api.examples.ShowPackageTool.logoutReportAndExit()INFO]: dirPath: /home/_nonlocl/ab1ab100-f4e2-495f-917d-d227f3199c04
[6/29/23 4:03 PM com.checkpoint.mgmt_api.examples.ShowPackageTool.logoutReportAndExit()INFO]: tarGzPath: /home/_nonlocl/show_package-2023-06-29_15-58-53.tar.gz
any help appreciated.
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
Wed 19 Nov 2025 @ 11:00 AM (EST)
TechTalk: Improve Your Security Posture with Threat Prevention and Policy InsightsThu 20 Nov 2025 @ 05:00 PM (CET)
Hacking LLM Applications: latest research and insights from our LLM pen testing projects - AMERThu 20 Nov 2025 @ 10:00 AM (CST)
Hacking LLM Applications: latest research and insights from our LLM pen testing projects - EMEAWed 26 Nov 2025 @ 12:00 PM (COT)
Panama City: Risk Management a la Parrilla: ERM, TEM & Meat LunchWed 19 Nov 2025 @ 11:00 AM (EST)
TechTalk: Improve Your Security Posture with Threat Prevention and Policy InsightsThu 20 Nov 2025 @ 05:00 PM (CET)
Hacking LLM Applications: latest research and insights from our LLM pen testing projects - AMERThu 20 Nov 2025 @ 10:00 AM (CST)
Hacking LLM Applications: latest research and insights from our LLM pen testing projects - EMEAThu 04 Dec 2025 @ 12:30 PM (SGT)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - APACThu 04 Dec 2025 @ 03:00 PM (CET)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - EMEAWed 26 Nov 2025 @ 12:00 PM (COT)
Panama City: Risk Management a la Parrilla: ERM, TEM & Meat LunchAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY