Thanks cisco4ng & Christian!

I have tried to export the log in the default log directory. But still no
luck.

However, I have tired to change the order in the LD_LIBRARY_PATH from

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

To

LD_LIBRARY_PATH=/opt/CPrt-R55/lib:/opt/CPfw1-R55/lib:/opt/CPshrd-R55/lib:/us
r/openwin/lib:/usr/local/lib:/opt/CPshared/5.0/lib:/usr/lib

I have just change the order and added /usr/lib

And this time it gives me different error

fwm logexport -i fw.log -o ~clive/out.txt -n
The requested command can not run because this station is not configured.
 Aborting.

What does that mean? This station is not configured? Err....

And Christian,

Here is my ldd output. Thanks again!

ldd /opt/CPfw1-R55/bin/fwm
        libCPSrvIS.so =>         /opt/CPshared/5.0/lib/libCPSrvIS.so
        libcpsql.so =>   /opt/CPfw1-R55/lib/libcpsql.so
        libCPMIBase501.so =>     /opt/CPfw1-R55/lib/libCPMIBase501.so
        libCPMIServer501.so =>   /opt/CPfw1-R55/lib/libCPMIServer501.so
        libkeydb.so =>   /opt/CPfw1-R55/lib/libkeydb.so
        libDkmAddon.so =>        /opt/CPfw1-R55/lib/libDkmAddon.so
        libextauth.so =>         /opt/CPfw1-R55/lib/libextauth.so
        libvpnmgmt.so =>         /opt/CPfw1-R55/lib/libvpnmgmt.so
        libvpninfo.so =>         /opt/CPfw1-R55/lib/libvpninfo.so
        libikessl.so =>  /opt/CPfw1-R55/lib/libikessl.so
        libRemoteLicAddon.so =>  /opt/CPshared/5.0/lib/libRemoteLicAddon.so
        librs_access_api.so =>   /opt/CPshrd-R55/lib/librs_access_api.so
        libfwcode.so =>  /opt/CPfw1-R55/lib/libfwcode.so
        libwa_uaccess.so =>      /opt/CPfw1-R55/lib/libwa_uaccess.so
        libana_ds.so =>  /opt/CPfw1-R55/lib/libana_ds.so
        libsecuritycontext.so =>
/opt/CPfw1-R55/lib/libsecuritycontext.so
        libcpstatext.so =>       /opt/CPshared/5.0/lib/libcpstatext.so
        librtmFilterParser.so =>
/opt/CPshrd-R55/lib/librtmFilterParser.so
        libcpstatlib.so =>       /opt/CPshared/5.0/lib/libcpstatlib.so
        libcpstatreg.so =>       /opt/CPshared/5.0/lib/libcpstatreg.so
        libcpauth.so =>  /opt/CPshared/5.0/lib/libcpauth.so
        libcplog.so =>   /opt/CPshared/5.0/lib/libcplog.so
        libfwsnmp.so =>  /opt/CPshared/5.0/lib/libfwsnmp.so
        libsnmp.so =>    /opt/CPshared/5.0/lib/libsnmp.so
        libPtaAddon.so =>        /opt/CPshared/5.0/lib/libPtaAddon.so
        libcptfmt.so =>  /opt/CPshared/5.0/lib/libcptfmt.so
        libcpsc.so =>    /opt/CPshared/5.0/lib/libcpsc.so
        libcpfwsys.so =>         /opt/CPshared/5.0/lib/libcpfwsys.so
        libcpsys.so =>   /opt/CPshared/5.0/lib/libcpsys.so
        libfwdclient.so =>       /opt/CPshared/5.0/lib/libfwdclient.so
        libfwldaputil.so =>      /opt/CPshared/5.0/lib/libfwldaputil.so
        libcpconnreg.so =>       /opt/CPshared/5.0/lib/libcpconnreg.so
        libcpdag.so =>   /opt/CPshared/5.0/lib/libcpdag.so
        libxrc.so =>     /opt/CPfw1-R55/lib/libxrc.so
        libxrmverify.so =>       /opt/CPfw1-R55/lib/libxrmverify.so
        libexm_objlib.so =>      /opt/CPfw1-R55/lib/libexm_objlib.so
        libCPLogLUUID.so =>      /opt/CPfw1-R55/lib/libCPLogLUUID.so
        libCPLogCommApi.so =>    /opt/CPfw1-R55/lib/libCPLogCommApi.so
        libCpdAdmin.so =>        /opt/CPshared/5.0/lib/libCpdAdmin.so
        libCpd.so =>     /opt/CPshared/5.0/lib/libCpd.so
        libCpdSched.so =>        /opt/CPshared/5.0/lib/libCpdSched.so
        libopsec.so =>   /opt/CPshared/5.0/lib/libopsec.so
        liblogfilter.so =>       /opt/CPfw1-R55/lib/liblogfilter.so
        libcpsic.so =>   /opt/CPshared/5.0/lib/libcpsic.so
        libmessaging.so =>       /opt/CPshared/5.0/lib/libmessaging.so
        libgetversion.so =>      /opt/CPshared/5.0/lib/libgetversion.so
        libsicauth.so =>         /opt/CPshared/5.0/lib/libsicauth.so
        libsic.so =>     /opt/CPshared/5.0/lib/libsic.so
        libcp_policy.so =>       /opt/CPshared/5.0/lib/libcp_policy.so
        libverify.so =>  /opt/CPshared/5.0/lib/libverify.so
        libfwadb.so =>   /opt/CPshared/5.0/lib/libfwadb.so
        libfwsmtpobj.so =>       /opt/CPshared/5.0/lib/libfwsmtpobj.so
        libobjlib.so =>  /opt/CPshared/5.0/lib/libobjlib.so
        libskey.so =>    /opt/CPshared/5.0/lib/libskey.so
        libsicobj.so =>  /opt/CPshared/5.0/lib/libsicobj.so
        libmastersapi.so =>      /opt/CPshared/5.0/lib/libmastersapi.so
        libdynamicobjects.so =>  /opt/CPshared/5.0/lib/libdynamicobjects.so
        libbackcomp.so =>        /opt/CPshared/5.0/lib/libbackcomp.so
        libconvert.so =>         /opt/CPshared/5.0/lib/libconvert.so
        libcmscomm.so =>         /opt/CPfw1-R55/lib/libcmscomm.so
        libcpldap.so =>  /opt/CPshared/5.0/lib/libcpldap.so
        libcpprng.so =>  /opt/CPshared/5.0/lib/libcpprng.so
        libckpssl.so =>  /opt/CPshared/5.0/lib/libckpssl.so
        libcpca.so =>    /opt/CPshared/5.0/lib/libcpca.so
        libcpP11Modules.so =>    /opt/CPshared/5.0/lib/libcpP11Modules.so
        libp11Prov.so =>         /opt/CPshared/5.0/lib/libp11Prov.so
        libcpcert.so =>  /opt/CPshared/5.0/lib/libcpcert.so
        libcpbcrypt.so =>        /opt/CPshared/5.0/lib/libcpbcrypt.so
        libcpcryptutil.so =>     /opt/CPshared/5.0/lib/libcpcryptutil.so
        libcvars.so =>   /opt/CPshared/5.0/lib/libcvars.so
        libGenDb.so =>   /opt/CPfw1-R55/lib/libGenDb.so
        libndb.so =>     /opt/CPshared/5.0/lib/libndb.so
        libfwsetdb.so =>         /opt/CPshared/5.0/lib/libfwsetdb.so
        libcpopenssl.so =>       /opt/CPshared/5.0/lib/libcpopenssl.so
        librtmp.so =>    /opt/CPshared/5.0/lib/librtmp.so
        libcpprod50.so =>        /opt/CPshared/5.0/lib/libcpprod50.so
        libmgmtha.so =>  /opt/CPfw1-R55/lib/libmgmtha.so
        libReg.so =>     /opt/CPshared/5.0/lib/libReg.so
        libEncode.so =>  /opt/CPshared/5.0/lib/libEncode.so
        libComUtils.so =>        /opt/CPshared/5.0/lib/libComUtils.so
        libResolver.so =>        /opt/CPshared/5.0/lib/libResolver.so
        libResolve.so =>         /opt/CPshared/5.0/lib/libResolve.so
        libAppUtils.so =>        /opt/CPshared/5.0/lib/libAppUtils.so
        libEventUtils.so =>      /opt/CPshared/5.0/lib/libEventUtils.so
        libDataStruct.so =>      /opt/CPshared/5.0/lib/libDataStruct.so
        libMisc.so =>    /opt/CPshared/5.0/lib/libMisc.so
        libcpii.so =>    /opt/CPshared/5.0/lib/libcpii.so
        libCP_version_info.so =>
/opt/CPshared/5.0/lib/libCP_version_info.so
        libOS.so =>      /opt/CPshared/5.0/lib/libOS.so
        libcpsqlsab.so =>        /opt/CPfw1-R55/lib/libcpsqlsab.so
        libthread.so.1 =>        /usr/lib/libthread.so.1
        librt.so.1 =>    /usr/lib/librt.so.1
        libresolv.so.2 =>        /usr/lib/libresolv.so.2
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libintl.so.1 =>  /usr/lib/libintl.so.1
        libm.so.1 =>     /usr/lib/libm.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libw.so.1 =>     /usr/lib/libw.so.1
        libkstat.so.1 =>         /usr/lib/libkstat.so.1
        libkvm.so.1 =>   /usr/lib/libkvm.so.1
        libelf.so.1 =>   /usr/lib/libelf.so.1
        libCrun.so.1 =>  /usr/lib/libCrun.so.1
        libobjlibclient.so =>    /opt/CPshared/5.0/lib/libobjlibclient.so
        libcp_bdb.so =>  /opt/CPrt-R55/lib/libcp_bdb.so
        libaio.so.1 =>   /usr/lib/libaio.so.1
        libmd5.so.1 =>   /usr/lib/libmd5.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/SUNW,Sun-Blade-100/lib/libc_psr.so.1
        /usr/platform/SUNW,Sun-Blade-100/lib/libmd5_psr.so.1

-----Original Message-----
From: Mailing list for discussion of Firewall-1
[mailto:[EMAIL PROTECTED] On Behalf Of cisco4ng
Sent: Thursday, 2 February 2006 12:38 AM
To: FW-1-MAILINGLIST@AMADEUS.US.CHECKPOINT.COM
Subject: Re: [FW-1] export log question

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

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

Reply via email to