Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Maller
Contributor

Scheduled export via web_api_show_package.sh not working

Hi

I'm trying to schedule an rule export job once a week using this small script

 

#!/bin/bash

source /etc/profile.d/CP.sh
source $MDSDIR/scripts/MDSprofile.sh
source $MDS_SYSTEM/shared/mds_environment_utils.sh
source $MDS_SYSTEM/shared/sh_utilities.sh

/opt/CPsuite-R81.20/fw1/scripts/web_api_show_package.sh -c -d RULEBASE -o /var/tmp/ &

It works when it's executed via cli but  when it's called  via job scheduler it doesn't work . I'm forgetting some environment parameters?

 

thanks

0 Kudos
3 Replies
PhoneBoy
Admin
Admin

What is the precise error message?

0 Kudos
Maller
Contributor

I don't see  any error message. Simply process seems to be stucked   and these processes never finish

 

admin 82590 1 0 17:11 ? 00:00:00 /bin/bash /opt/CPsuite-R81.20/fw1/scripts/web_api_show_package.sh -c -d DOMAIN -o /var/tmp/
admin 82591 82590 3 17:11 ? 00:00:03 java -jar /opt/CPsuite-R81.20/fw1/api/samples/lib/web_api_show_package-jar-with-dependencies.jar -c -d DOMAIN -o /var/tmp/

Inside temporary directory , content of show_package-2023-11-07_17-11-02.elg is : 

[11/7/23 5:11 PM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: The parameters that were received: showRule**bleep**Counts:(-c)=true domain:(-d)=DOMAIN folderPath:(-o)=/var/tmp/
[11/7/23 5:11 PM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Limit number of object per page: 10
[11/7/23 5:11 PM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Local Ips: [10.82.188.28, 10.82.188.24, 10.82.188.26, 10.82.188.21, 127.0.0.1]
[11/7/23 5:11 PM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Login As root: true
[11/7/23 5:11 PM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Login with 'read-only' flag.

I have to kill  the processes manually

This job in MDS R80.40 was running  but with R81.20 it's failing.

0 Kudos
PhoneBoy
Admin
Admin

Suggest a TAC case here: https://help.checkpoint.com 

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events