CPUG

The Check Point User Group

A Resource For The Check Point Community.  Fast.  Useful.  Independent.

1. CCSA/CCSE One-Week Dual-Certification Training Course with CPUG in San Francisco!
    Courses Starting (2009) 1/19, 2/9, 3/9, 4/6, 5/4, 6/8, 7/6, 8/3.
2. Join Us On LinkedIn - We now have a CPUG group.


Go Back   CPUG: The Check Point User Group > Check Point Firewall-1/VPN-1 Platforms > Check Point SecurePlatform (SPLAT)
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2007-06-22
Junior Member
 
Join Date: 2007-06-21
Posts: 3
Rep Power: 0
moonunit has an average reputation (10+)
Default cron fwm logexport incomplete

for some reason on splat cron fwm logexport won't make a full file. Doesn't write any error to var/log/messages or /var/log/cron. Any troubleshooting ideas?

commandline works fine - creates a full file=789MB

command:
/opt/CPsuite-R62/fw1/bin/fwm logexport -n -i /var/opt/CPsuite-R62/fw1/log/2007-06-21_235900.log -o /var/opt/CPsuite-R62/fw1/log/2007-06-21.log

Starting... There are 3911606 log records in the file


same command in script called from cron script creates only partial file=170MB

cron:
00 30 * * * /usr/local/bin/log.export

script:
#!/bin/sh
. /opt/CPshrd-R62/tmp/.CPprofile.sh

/opt/CPsuite-R62/fw1/bin/fwm logexport -n -i /var/opt/CPsuite-R62/fw1/log/2007-06-21_235900.log -o /var/opt/CPsuite-R62/fw1/log/2007-06-21.log
Reply With Quote
  #2 (permalink)  
Old 2007-06-22
Senior Member
 
Join Date: 2006-01-25
Posts: 1,005
Rep Power: 4
melipla has an average reputation (10+)
Default Re: cron fwm logexport incomplete

Try using /bin/bash as your shell and /etc/bashrc to set your environment variables...
Reply With Quote
  #3 (permalink)  
Old 2007-06-25
Junior Member
 
Join Date: 2007-06-21
Posts: 3
Rep Power: 0
moonunit has an average reputation (10+)
Default Re: cron fwm logexport incomplete

Thanks, I figured it out. It was something else.

To cron fwm logexport you need to make sure to send console messages somewhere. Otherwise all the "Processed 1930000 out of 3855499 records (50%)" messages make the job die.

e.g.
cron:
10 00 * * * /usr/local/bin/exportlog.sh > /dev/null 2>&1

exportlog.sh:
#!/bin/sh
. /opt/CPshrd-R62/tmp/.CPprofile.sh

$FWDIR/bin/fwm logexport -n -i $FWDIR/log/2007-06-24_235900.log -o $FWDIR/log/2007-06-24.log
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -7. The time now is 12:47.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0