[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [FW1] Log file rotation on IP600
Hi Lars and Jimmy,
Dont use the fw logswitch on an IP650 as you will find that it does not
rotate all of the log files. Credit goes to Nokia for the following
scripts....
-[snip]-
This script should be run from cron daily, weekly, or whenever. It will
rotate all the other log files FireWall-1 generates (these are plaintext
ones) as fw logswitch only rotates the security policy and accounting logs.
Note that not all log files will exist in all configurations.
The following script should work for FireWall-1 4.1:
#!/bin/sh
DATE=`date +%Y-%m-%d.%H:%M:%S`
cd $FWDIR/log
mv fwd.elg fwd.${DATE}.elg
mv cpmgmt.aud cpmgmt.${DATE}.aud
mv mdq.elg mdq.${DATE}.elg
mv polsrvd.elg polsrvd.${DATE}.elg
mv netsod.elg netsod.${DATE}.elg
mv sam.log sam.${DATE}.log
mv aclientd.elg aclientd.${DATE}.elg
mv aftpd.elg aftpd.${DATE}.elg
mv ahttpd.elg ahttpd.${DATE}.elg
mv ahttpdauth1.elg ahttpdauth1.${DATE}.elg
mv ahttpdauth2.elg ahttpdauth2.${DATE}.elg
mv arlogind.elg arlogind.${DATE}.elg
mv asmtpd.elg asmtpd.${DATE}.elg
mv atelnetd.elg atelnetd.${DATE}.elg
The following script should work for FireWall-1 4.0 and earlier:
#!/bin/sh
DATE=`date +%Y-%m-%d.%H:%M:%S`
cd $FWDIR/log
mv fwd.log fwd.${DATE}.log
mv fwui.log fwui.${DATE}.log
mv mdq.log mdq.${DATE}.log
mv sam.log sam.${DATE}.log
mv aclientd.log aclientd.${DATE}.log
mv aftpd.log aftpd.${DATE}.log
mv ahttpd.log ahttpd.${DATE}.log
mv arlogind.log arlogind.${DATE}.log
mv asmtpd.log asmtpd.${DATE}.log
mv atelnetd.log atelnetd.${DATE}.log
-[snip]-
-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of
[email protected]
Sent: Wednesday, 1 November 2000 3:06 a.m.
To: [email protected];
[email protected]
Subject: RE: [FW1] Log file rotation on IP600
crontab -e
59 23 * * * /insert-your-firewall-dir-here/bin/fw logswitch
> -----Original Message-----
> From: DEARING, JIMMY (EDS Contractor)
> [mailto:[email protected]]
> Sent: 31. oktober 2000 13:32
> To: '[email protected]'
> Subject: [FW1] Log file rotation on IP600
>
>
>
> What is the best method for rotating log files daily on a
> Nokia IP 600 with
> a Remote Management console? Anyone have any pre written
> scripts or anything
> else to help in this process?
>
> Jimmy Dearing
> ARPERSCOM (EDS Contractor)
>ext 3724
>
>
> ==============================================================
> ==================
> To unsubscribe from this mailing list, please see the
> instructions at
> http://www.checkpoint.com/services/mailing.html
> ==============================================================
> ==================
>
============================================================================
====
To unsubscribe from this mailing list, please see the instructions at
http://www.checkpoint.com/services/mailing.html
============================================================================
====
================================================================================
To unsubscribe from this mailing list, please see the instructions at
http://www.checkpoint.com/services/mailing.html
================================================================================