Hi,

did you set the environment ? See .profile

<script solaris>
#!/bin/sh

# FIRST
# Running Check Point environment script
.  /opt/CPshared/5.0/tmp/.CPprofile.sh

cd /opt/CPmds-50/customers
for MYCMA in *
do
   if [  -d $MYCMA ]; then
           mdsenv $MYCMA
           # do what ever you want
           ......

   fi
   # go back to customers
   cd /opt/CPmds-50/customers
done
<EOF>

regards,
bernd





Ryan, Kennedy wrote:

Good Day,

Provider-1 (NG FP2) alias 'mdsenv', which appears (among other things) to
set $FWDIR variable to CMA dir (mdsenv cmaname), doesn't work from shell
scripts or cron, making automated log switch impossible when using
multi-domain log server.  To make logswitch work for individual CMA's, it's
necessary to:

mdsenv cmaname
fw logswitch

For each CMA.

Any thoughts on how to get mdsenv to work from script/cron are appreciated.



thanks!

=================================================
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]
=================================================




=================================================
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