- Products
- Learn
- Local User Groups
- Partners
- More
MVP 2026: Submissions
Are Now Open!
What's New in R82.10?
10 December @ 5pm CET / 11am ET
Announcing Quantum R82.10!
Learn MoreOverlap in Security Validation
Help us to understand your needs better
CheckMates Go:
Maestro Madness
Good afternoon, dear community.
I have a question regarding job scheduler.
I wish to create some scheduled job for save config files.
I try to create some scheduled jobs, but if i use some variables in my commands changes couldn't be saved. It's just ignored.
For example if i try to set command <clish -c "save configuration backup123"> it will be saved fine.
If i try to set command <clish -c "save configuration ${HOSTNAME}_backup_$(date +"%d-%m-%Y")"> sheduled job doesn't save changes.
I also try to create #/bin/bash! script and place it to /usr/bin/ directory with +x permissions but result the same...
From console in expert mode all operations works fine.
I try it on Security Gateway SG5100 which running on Gaia r81.20
I found the solution, I solve it by call script.
command syntax which work:
/bin/sh /usr/bin/saveconfig.sh
Great thanks to all participants!
CLISH "save configuration" command does not support any scheduling. You may want to run a cron script, if you want the backups to be scheduled.
Also you can look here: https://sc1.checkpoint.com/documents/R81.10/WebAdminGuides/EN/CP_R81.10_Gaia_AdminGuide/Topics-GAG/W...
Dear _Val_,
I have 2 question in this case.
1) If LISH "save configuration" command does not support, why clish -c "save configuration backup123" works fine?
Looks like job scheduler don't save changes because system variables used in command syntax.
2) I tried to schedule in job scheduler (cron) bin/bash script which i previously create by myself on equipment.
Command syntax was <./saveconfig.sh> of course i place saveconfig.sh in /usr/bin/ directory with executable permissions.
Body of safeconfig.sh:
__________________________________________________________________________________________
#!/bin/bash
clish -c "save configuration ${HOSTNAME}_backup_$(date +"%d-%m-%Y")"
__________________________________________________________________________________________
I also tried this script in console in expert mode and it works fine.
And please, correct me if i'm wrong. Behind link that you shared documentation about save configuration command. Which corn script you are meaning?
He meant cron, not corn. I'm betting autocorrect was being its normal, unhelpful self.
As for the script you shared, keep in mind cronjobs don't get any environment. The HOSTNAME variable isn't set, and it may not have a path to clish. Be sure to include this line to set up the Check Point environment:
. /etc/profile.d/CP.sh
And be sure to either set the $PATH or use the full path to clish.
Exactly that, thanks @Bob_Zimmerman
What I am saying is, CLISH does not support any of the variables you want to use natively. You have to feed it from bash, and run the command with the help of "clish -c" expert command. Which, as I can see, you already know how to do.
And yes, I meant cron, fixed above as well
I found the solution, I solve it by call script.
command syntax which work:
/bin/sh /usr/bin/saveconfig.sh
Great thanks to all participants!
great to hear
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
| User | Count |
|---|---|
| 16 | |
| 12 | |
| 8 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
Fri 12 Dec 2025 @ 10:00 AM (CET)
Check Mates Live Netherlands: #41 AI & Multi Context ProtocolTue 16 Dec 2025 @ 05:00 PM (CET)
Under the Hood: CloudGuard Network Security for Oracle Cloud - Config and Autoscaling!Fri 12 Dec 2025 @ 10:00 AM (CET)
Check Mates Live Netherlands: #41 AI & Multi Context ProtocolTue 16 Dec 2025 @ 05:00 PM (CET)
Under the Hood: CloudGuard Network Security for Oracle Cloud - Config and Autoscaling!Thu 18 Dec 2025 @ 10:00 AM (CET)
Cloud Architect Series - Building a Hybrid Mesh Security Strategy across cloudsAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY