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]

[FW-1] Need Help with log switch script



Greetings,
I found a cron job script on the nokia site that switches the log and mail
the log of dropped pakets to me.  But of course I am having problems getting
this script to run properly.
It is running on a Nokia IP300 running IPSO 3.3.1-FCS7.  This is the script:
#!/bin/sh
source/var/etc/pm_profile
cd /var/fw/log
#Filename will include date
PERIOD='date +%d%m%y'
/opt/pkg/FireWall-1-strong.v4.1.SP-3.ipso-3.3/bin/fw logswitch $PERIOD
# output logfile to comma seperated file.
/opt/pkg/FireWall-1-strong.v4.1.SP-3.ipso-3.3/bin/fw
logexport -d, -i$PERIOD.log -oyesterday.log -n
# Search for all dropped packets
ATTACK=$PERIOD.attack
grep "drop"yesterday.log>>$ATTACK
# uuencoded files for email attachment
uuencode $ATTACK $PERIOD.csv>$PERIOD.csv
# mail attach to administrator
mail -s "Curacao FireWall Log" [email protected] <$PERIOD.csv

The problem is the log file that is created is %d%m%y.log and not the date
that I am looking for.  I am new to this and not sure if it is something
that I am doing wrong, so any advice in this matter would be greatly
appreciated.

Cheers Debbie Farris

===============================================
To unsubscribe from this mailing list,
please see the instructions at
http://www.checkpoint.com/services/mailing.html
===============================================



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

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