NETWORK PRESENCE ABOUT SERVICES PRODUCTS TRAINING CONTACT US SEARCH SUPPORT
 


Search
display results
words begin  exact words  any words part 

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [FW-1] Running "fw" commands from cron under NG on Solaris!



At 04:56 PM 1/30/02, Daniel Fischer (J) wrote:
Hi,

I am running NG FP1 on Solaris 8 and would like to automate the command
"/opt/CPfw1-50/bin/fw logswitch" using cron. With 4.1, this was not an
issue, it worked fine but under NG, I get the error "ld.so.1:
/opt/CPfw1-50/bin/fw: fatal: libfw1.so: open failed: No such file or directory"

Daniel,


Yep, that happened to me also.  I now run this script every night and it
works for me.  It has extra functions you probably don't need but you can
take them out.  The resulting logs are in a 31Jan2002.log format.

Hope this helps...


-- Joe



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #! /bin/sh


# set -x # DEBUG i='/tmp' # directory for creating 'semaphore' file

echo "Started at: `date`" # Monitor progress

# Will only run under UserID root

   if [ `/usr/xpg4/bin/id -un` != "root" ]; then
      echo "Pls run $0 as user 'root'"; exit
   fi

   if [ -f "$i/0_MOV_IN_PROCESS" ]; then        # work already in progress?
      exit                                      # yes
   else touch $i/0_MOV_IN_PROCESS               # no, create semaphore
   fi

# Run root's profile -- needed for Checkpoint environment variables

. /.profile

# Location of some Checkpoint files

   mylogs='/var/opt/CPfw1-50/log'  # directory for logs
   myhome=$FWDIR'/bin'             # directory for 'fw' command

# Do some housekeeping status checks

# File system status

   echo "/var File System Status:"
   df -k /var

# List expired log files -- log files that were not modified
# in the last 4 days

   echo "Listing log files more than 4 days old:"
   find $mylogs -name "*200?.log*" -mtime +4 -exec ls -lt "{}"  ";"

# Rotate the log files

   cd $myhome
   ./fw logswitch `/bin/date +%b%d%Y`

# Clean up and get out

rm $i/0_MOV_IN_PROCESS # delete semaphore file

echo "Ended at: `date`"  # capture run time
exit

#eof

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



 
----------------------------------

ABOUT SERVICES PRODUCTS TRAINING CONTACT US SEARCH SUPPORT SITE MAP LEGAL
   All contents © 2004 Network Presence, LLC. All rights reserved.