- CheckMates
- :
- Products
- :
- Quantum
- :
- Management
- :
- Scheduled export via web_api_show_package.sh not w...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Labels:
-
Logging
-
Monitoring
-
Multi-Domain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is the precise error message?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Suggest a TAC case here: https://help.checkpoint.com
