FTPing logs off the firewall automatically You can add the following command as part of your regular log rotation scripts: Unix:
ftp logserver <<_EOF username password cd /place/to/put/logs bin put fwlogfile _EOF
NT:
Add the part between the "ftp" line (or equivelant) and the _EOF line to a file (ftpsess.txt) and you can use it as follows:
ftp -s ftpsess.txt logserver
Note: To make it easier to get the log file name for the script, you may want to add a filename argument to 'fw logswtich' (e.g. 'fw logswitch fw.log.19990128') so that you know what the log file's name is.
--
GuyR - 08 Jan 2004
FAQForm FAQs.Class:
LoggingAndAlertingFAQs FAQs.OS: FAQs.Version: