Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
nilanjan_lahiri
Explorer
Jump to solution

Unable to export Checkpoint firewall rulebase

Hello All,

I am trying to export the Checkpoint firewall rulebase, however, getting the following error :- 


[Expert@HAL-VPN-FW1:0]# $MDS_FWDIR/scripts/web_api_show_package.sh
Script stopped running due to severe error!
Result file location: show_package-2025-09-22_10-09-14.tar.gz

The generated file is just 4/5 lines and doesn't show the expected output. 

[Expert@HAL-VPN-FW1:0]# mgmt_cli show access-rulebase
Username: admin
Password:
Couldn't connect to server
If you need to use a proxy server, add the '--proxy' parameter
[Expert@HAL-VPN-FW1:0]#

 

Please could you help to resolve this issue. 

 

Thank You,

Nilanjan 

0 Kudos
2 Solutions

Accepted Solutions
Danny
MVP Gold
MVP Gold

The hostname indicates that you are trying to run this on the firewall gateway while those commands are meant to be run on the firewall management.

View solution in original post

(1)
the_rock
MVP Gold
MVP Gold

Here is the proof from my lab.

Andy

*********************************

[Expert@CP-FW-01:0]# fwm ver
This is not a Security Management Server station.
[Expert@CP-FW-01:0]#

 

[Expert@CP-MANAGEMENT:0]# fwm ver
This is Check Point Security Management Server R82 - Build 007
[Expert@CP-MANAGEMENT:0]#

 

 

 

[Expert@CP-MANAGEMENT:0]# $MDS_FWDIR/scripts/web_api_show_package.sh
Script finished running successfully!
Result file location: show_package-2025-09-23_13-15-50.tar.gz
[Expert@CP-MANAGEMENT:0]# ls -lh show_package-2025-09-23_13-15-50.tar.gz
-rw-rw---- 1 admin root 367K Sep 23 13:16 show_package-2025-09-23_13-15-50.tar.gz
[Expert@CP-MANAGEMENT:0]# pwd
/home/admin
[Expert@CP-MANAGEMENT:0]#

View solution in original post

0 Kudos
8 Replies
Danny
MVP Gold
MVP Gold

The hostname indicates that you are trying to run this on the firewall gateway while those commands are meant to be run on the firewall management.

(1)
the_rock
MVP Gold
MVP Gold

That was the first thing I noticed what @Danny mentioned, just run fwm ver and see what it gives, if it does not work, then 100% you are on the gateway and NOT mgmt server.

Anddy

0 Kudos
the_rock
MVP Gold
MVP Gold

Here is the proof from my lab.

Andy

*********************************

[Expert@CP-FW-01:0]# fwm ver
This is not a Security Management Server station.
[Expert@CP-FW-01:0]#

 

[Expert@CP-MANAGEMENT:0]# fwm ver
This is Check Point Security Management Server R82 - Build 007
[Expert@CP-MANAGEMENT:0]#

 

 

 

[Expert@CP-MANAGEMENT:0]# $MDS_FWDIR/scripts/web_api_show_package.sh
Script finished running successfully!
Result file location: show_package-2025-09-23_13-15-50.tar.gz
[Expert@CP-MANAGEMENT:0]# ls -lh show_package-2025-09-23_13-15-50.tar.gz
-rw-rw---- 1 admin root 367K Sep 23 13:16 show_package-2025-09-23_13-15-50.tar.gz
[Expert@CP-MANAGEMENT:0]# pwd
/home/admin
[Expert@CP-MANAGEMENT:0]#

0 Kudos
nilanjan_lahiri
Explorer

Thank you for responding on this. I am trying to export the rule from the Management only. Please refer to the output below :- 

[Expert@HAL-VPN-FW1:0]# fwm ver
This is Check Point Security Management Server R80.40 - Build 039
[Expert@HAL-VPN-FW1:0]# $MDS_FWDIR/scripts/web_api_show_package.sh
Script stopped running due to severe error!
Result file location: show_package-2025-09-23_19-18-33.tar.gz

Please could you help...

0 Kudos
the_rock
MVP Gold
MVP Gold

Of course we can help and we will help, thats what we do here!

Anywho, if I were you, since its management, just try either cprestart and see if that works, but if not, just do a quick reboot.

Andy

0 Kudos
nilanjan_lahiri
Explorer

Neither cprestart, nor reboot helped me to resolve the issue. Could it be due to cluster issue? Is there any way that could be checked. 

Thanks !

0 Kudos
the_rock
MVP Gold
MVP Gold

its management ha?

0 Kudos
the_rock
MVP Gold
MVP Gold

Here is example of what it would look like (again, just my lab, but you get an idea, this is when you extract the file it generates)

Andy

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events