Firewall-1

Re: [FW-1] cronjob problem on secureplatform

Subject: Re: [FW-1] cronjob problem on secureplatform
From: Tom Brown <tom.brown AT GOODTECHNOLOGY DOT COM>
To: FW-1-MAILINGLIST AT AMADEUS.US.CHECKPOINT DOT COM
Date: Tue, 24 Aug 2004 16:16:17 +0100
make sure you set you LD_LIBRARY_PATH to include the libs from fw1

>I modified the script based on some errors in the log to the following
>
> #! /bin/csh
> cd /opt/CPfw1-50-04/log/
> /opt/CPfw1-50-04/bin/fwm logexport -i 2004-08-15_235900.log -o
> 2004-08-15_235900.txt
> cp test /home/trinity
> gzip -9 2004-08-15_235900.txt
> ftp -i -n -v -d ip_add <<SCRIPT
> user username password
> binary
> cd sct
> put 2004-08-15_235900.txt.gz
> exit
> SCRIPT
>
> This is what I get from the cron logs:
>
> Aug 24 14:54:00 MGR CronDaemon: Cron <root@MGR> /opt/CPfw1-5
> 0-04/log/testtest (Environment: <SHELL=/bin/sh>, <HOME=/root>,
> <PATH=/usr/bin:/b
> in>, <LOGNAME=root>) : /opt/CPfw1-50-04/bin/fwm: error while loading
> shared
> libr
> aries: libCPSrvIS.so: cannot open shared object file:
>
> Where do I get this library file from or do I need an additional line in
> the
> script?
>
> Thanks
>
>
> -----Original Message-----
> From: Mailing list for discussion of Firewall-1
> [mailto:FW-1-MAILINGLIST AT AMADEUS.US.CHECKPOINT DOT COM]On Behalf Of Tom
> Brown
> Sent: 23 August 2004 17:29
> To: FW-1-MAILINGLIST AT AMADEUS.US.CHECKPOINT DOT COM
> Subject: Re: [FW-1] cronjob problem on secureplatform
>
>
> what do the cron logs show you?
>
>>I have added the path in the script as below but the result is the same.
>>Any
>> other thoughts?
>> /opt/CPfw1-50-04/bin/fwm logexport -i 2004-08-15_235900.log -o
>> 2004-08-15_235900.txt
>>
>> Thanks
>>
>> -----Original Message-----
>> From: Mailing list for discussion of Firewall-1
>> [mailto:FW-1-MAILINGLIST AT AMADEUS.US.CHECKPOINT DOT COM]On Behalf Of Tom
>> Brown
>> Sent: 23 August 2004 15:39
>> To: FW-1-MAILINGLIST AT AMADEUS.US.CHECKPOINT DOT COM
>> Subject: Re: [FW-1] cronjob problem on secureplatform
>>
>>
>> make sure fwm is in the PATH of the user that is running the script or
>> put
>> the PATH into the script
>>
>>> Hi David,
>>>
>>> I have a problem with a cronjob that does the log export and ftp from a
>>> secure platform box. When run manually it works fine but
>>> when in a cron job it does not run correctly. The script will run but it
>>> just skips the fwm logswitch command. The script is below.
>>> I am a real newbee on this stuff so any help would be greatly
>>> appreciated.
>>> My PATH includes the checkpoint directories /opt/CPfw1-50-04/
>>>
>>> Thanks
>>>
>>> #! /bin/csh
>>> CPDIR=/opt/CPshrd-50-04
>>> export CPDIR
>>> CPMDIR=/opt/CPfw1-50-04
>>> export CPMDIR
>>> cd /opt/CPfw1-50-04/log/
>>> cp testtest /home/trinity      --> it does this
>>> fwm logexport -i 2004-08-15_235900.log -o 2004-08-15_235900.txt --> it
>>> doesn't do this
>>> cp test /home/trinity          --> it does this
>>> gzip -9 2004-08-15_235900.txt
>>> ftp -i -n -v -d "ip add" <<SCRIPT
>>> user username password
>>> binary
>>> cd sct
>>> put 2004-08-15_235900.txt.gz
>>> exit
>>> SCRIPT
>>> cp testdate /home/trinity       --> it does this
>>>
>>> =================================================
>>> To set vacation, Out-Of-Office, or away messages,
>>> send an email to LISTSERV AT amadeus.us.checkpoint DOT com
>>> 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
>>> fw-1-owner AT ts.checkpoint DOT com
>>> =================================================
>>>
>>
>> =================================================
>> To set vacation, Out-Of-Office, or away messages,
>> send an email to LISTSERV AT amadeus.us.checkpoint DOT com
>> 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
>> fw-1-owner AT ts.checkpoint DOT com
>> =================================================
>>
>> =================================================
>> To set vacation, Out-Of-Office, or away messages,
>> send an email to LISTSERV AT amadeus.us.checkpoint DOT com
>> 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
>> fw-1-owner AT ts.checkpoint DOT com
>> =================================================
>>
>
> =================================================
> To set vacation, Out-Of-Office, or away messages,
> send an email to LISTSERV AT amadeus.us.checkpoint DOT com
> 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
> fw-1-owner AT ts.checkpoint DOT com
> =================================================
>
> =================================================
> To set vacation, Out-Of-Office, or away messages,
> send an email to LISTSERV AT amadeus.us.checkpoint DOT com
> 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
> fw-1-owner AT ts.checkpoint DOT com
> =================================================
>

=================================================
To set vacation, Out-Of-Office, or away messages,
send an email to LISTSERV AT amadeus.us.checkpoint DOT com
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
fw-1-owner AT ts.checkpoint DOT com
=================================================

<Prev in Thread] Current Thread [Next in Thread>