I do not use R54 but I am using R55w  and Provider-1 and the way to automate
the upgrade_export process would be:

source /opt/CPshrd-R55/tmp/.CPprofile.csh
cd /tmp
echo "/opt/CPmds-R55" | /opt/CPmds-R55/scripts/mds_backup

The key line here is:  source /opt/CPshrd-R55/tmp/.CPprofile.csh
You may have to change 55 to 54.

HTH


Edouard Zorrilla <[EMAIL PROTECTED]> wrote: Hello,

I'm struggle with getting a crontab working to automate the upgrade_export 
process on Checkpoint NG R54; even though I'm not a shell guru, I believe my 
issue is with syntax of getting the crontab to execute the upgrade_export 
command. I've pasted what I have done:

-------------------------------------------
bash-2.03# more /export/home/ezorrilla/cpbackup.sh
FWDIR=/opt/CPfw1-54
export FWDIR
YYMMDD=`getdate`
$FWDIR/bin/upgrade_tools/upgrade_export -n 
/export/home/ezorrilla/BKP-CONFIG-$YYMMDD
bash-2.03#
-------------------------------------------

When I run the script using a crontab I get the error:

bash-2.03# more bkp.rerr
 Checking the existence of necessary files...
 Error: /opt/CPfw1-54/conf/rulebases.fws does not exists, aborting upgrade
 Error: Not all the necessary files have been exported.

Nevertheless, when I run this script inside solaris shell it works and I get:

bash-2.03# $FWDIR/bin/upgrade_tools/upgrade_export -d -n 
/export/home/ezorrilla/BKP-CONFIG-$YYMMDD
 Checking the existence of necessary files...
 Copying files to temp dir...
 Building configuration file...
 Compressing the files...
The export operation finished successfully.
Note: /export/home/ezorrilla/BKP-CONFIG-.tgz contains your Security 
configuration, it is highly recommended to delete it after completing the 
process.

Could someone tell me if you run into this issue before so that I can make it 
works. Thanks in advance for your assistance.

Regards
Edouard

=================================================
To set vacation, Out-Of-Office, or away messages,
send an email to [EMAIL PROTECTED]
in the BODY of the email add:
set fw-1-mailinglist nomail
=================================================
To unsubscribe from this mailing list,
please see the instructions at
http://www.checkpoint.com/services/mailing.html
=================================================
If you have any questions on how to change your
subscription options, email
[EMAIL PROTECTED]
=================================================


 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

=================================================
To set vacation, Out-Of-Office, or away messages,
send an email to [EMAIL PROTECTED]
in the BODY of the email add:
set fw-1-mailinglist nomail
=================================================
To unsubscribe from this mailing list,
please see the instructions at
http://www.checkpoint.com/services/mailing.html
=================================================
If you have any questions on how to change your
subscription options, email
[EMAIL PROTECTED]
=================================================

Reply via email to