Clive, I don't think you can do it that way. I believe the file 2006-01-30_235900.log has to stay in the $FWDIR/log directory. If you move it outside the $FWDIR/log directory, it will not work. Remember the 2006-01-30_235900.log also has pointer files associate with it. The output file can be anywhere but the input file (-i) has to be in the $FWDIR/log directory. cisco4ng
Clive Luk <[EMAIL PROTECTED]> wrote: Hi cisco4ng, Thanks for the quick reply. I am currently on R55 I have tried: fwm logexport -i /tmp/2006-01-30_235900.log -o /tmp/out.txt -n ld.so.1: fwm: fatal: relocation error: file fwm: symbol OBJVER_BUF_FCS: referenced symbol not found Killed Still no luck. Is that because I have problem with my env? ENV dump: PWD=/opt/CPshrd-R55/tmp TZ=Australia/NSW RTDIR=/opt/CPrt-R55 HZ= SUDIR=/opt/CPfw1-R55/sup HOSTNAME=xxxxxxxxxx LD_LIBRARY_PATH=/opt/CPshared/5.0/lib:/opt/CPrt-R55/lib:/opt/CPfw1-R55/lib:/ opt/CPshrd-R55/lib:/usr/openwin/lib:/usr/local/lib:/usr/lib FW_BOOT_DIR=/etc/fw.boot OPENWINHOME=/usr/openwin MANPATH=:/usr/man:/usr/share/man CPMDIR=/opt/CPfw1-R55 MACHTYPE=sparc-sun-solaris2.9 OLDPWD=/opt/CPfw1-R55/bin EDITOR=vi SUROOT=/var/suroot LOGNAME=root SHLVL=1 FWDIR=/opt/CPfw1-R55 INFODIR=/opt/CPinfo-R55 CPDIR=/opt/CPshared/5.0 SHELL=/sbin/sh HOSTTYPE=sparc OSTYPE=solaris2.9 HOME=/ TERM=xterm PATH=/opt/CPshared/5.0/bin:/opt/CPrt-R55:/opt/CPrt-R55/bin:/opt/CPfw1-R55/bi n:/opt/CPinfo-R55/bin:/opt/CPshrd-R55/util:/opt/CPshrd-R55/bin:/usr/sbin:/us r/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/ccs/bin:/usr/openwin/bin:/usr/d t/bin:/usr/platform/SUNW,Sun-Blade-100/sbin:/opt/sun/bin:/usr/bin/nsr:/usr/s bin/nsr _=/usr/bin/env Thanks again! _____ From: cisco4ng [mailto:[EMAIL PROTECTED] Sent: Wednesday, 1 February 2006 3:35 PM To: FW-1-MAILINGLIST@AMADEUS.US.CHECKPOINT.COM Cc: [EMAIL PROTECTED] Subject: Re: [FW-1] export log question What version of Checkpoint are you using? NG, NG AI or NGx? The command is quite simple for NG AI R55w or NGx: [EMAIL PROTECTED] fwm logexport -i fw.log -o log.ascii -n -n is not to do dns lookup, log.ascii is you ascii log file. However, if you are thinking about doing it cron, I would suggest you setup a script called "dumplog" and put the following in the content file: source /opt/CPshrd-R60/tmp/.CPprofile.sh HOSTNAME=`hostname` DMY=`date +%H%M%h%d%Y` cd $FWDIR/log /opt/CPsuite-R60/fw1/bin/fwm logexport -i fw.log -o /tmp/log.ascii -n Again, I am using NGx R60 so the "source" is different AI R55. If you don't put in the source, the cron will not work because it will not source all the environment variable properly and you will be scratching your head wondering why it works mannually but fails in cron. Good Luck!!!!! cisco4ng Clive Luk wrote: Hi all, I hope someone can help me here. I want to export a raw log to an ASCII file. I have used this command: fw logexport -n -m raw -i fw.log -o out.txt However, I got the following error message. ld.so.1: fw: fatal: relocation error: file fw: symbol __user_mode_inet6__: referenced symbol not found Killed Is that the right way to export a log file to ascii by using command(I don't want to use the SmartDash Board, because I want to write a corn job to export the file nightly). Can someone please give me a hand here. Thanks in advance! ================================================= 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] ================================================= _____ What are the most popular cars? Find out at Yahoo! wNtYWlsdGFncwRzbGsDMmF1dG9z/*http:/autos.yahoo.com/newcars/popular/thisweek. html%20%0d%0a> Autos ================================================= 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] ================================================= --------------------------------- Bring words and photos together (easily) with PhotoMail - it's free and works with Yahoo! Mail. ================================================= 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] =================================================