CPUG

The Check Point User Group

A Resource For The Check Point Community.  Fast.  Useful.  Independent.

1. CCSA/CCSE One-Week Dual-Certification Training Course with CPUG in San Francisco!
    Courses Starting 11/3, 12/8, (2009) 1/19, 2/9, 3/9, 4/6, 5/4, 6/8, 7/6, 8/3, 9/7.
2. Join Us On LinkedIn - We now have a CPUG group.


Go Back   CPUG: The Check Point User Group > Check Point Firewall-1/VPN-1 And Related Products > SmartView Tracker/Logging And Alerting
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2005-09-20
Youngy Youngy is offline
Member
 
Join Date: 2005-09-20
Posts: 83
Rep Power: 4
Youngy has an average reputation (10+)
Default fw logswitch fails to create file

Hello all,

Due to a script failing I have just discovered that the fw logswitch
command does not appear to be working as expected.

This is on a win2k Checkpoint management machine.

By example,

If you type the command fw logswitch blah.txt

you would expect the file blah.txt (containing the log information) to
be created and for the logs to roll.

The logs are rolling but no file called blah.txt is being created at
all.

What is going on?

Thanks

PS please let me know if I need to include more details
Reply With Quote
  #2 (permalink)  
Old 2005-09-21
srikrishnak srikrishnak is offline
Junior Member
 
Join Date: 2005-09-06
Location: Singapore
Posts: 16
Rep Power: 0
srikrishnak has an average reputation (10+)
Default Re: fw logswitch fails to create file

I dont see an isuse unless the NT permissions doesnt allow you to write anything on the disk. May be you can check the permissions.
Reply With Quote
  #3 (permalink)  
Old 2005-09-22
Youngy Youngy is offline
Member
 
Join Date: 2005-09-20
Posts: 83
Rep Power: 4
Youngy has an average reputation (10+)
Default Re: fw logswitch fails to create file

I am logged onto the management server as the local administrator. I have rights to write to the drive.

No error message occurs at the command prompt at the time of the command running. However no file is produced.

Thanks
Reply With Quote
  #4 (permalink)  
Old 2005-09-22
srikrishnak srikrishnak is offline
Junior Member
 
Join Date: 2005-09-06
Location: Singapore
Posts: 16
Rep Power: 0
srikrishnak has an average reputation (10+)
Default Re: fw logswitch fails to create file

Hmm...Have you tried from the GUI to switch the log file n see weather it works or not.
Reply With Quote
  #5 (permalink)  
Old 2005-09-22
Youngy Youngy is offline
Member
 
Join Date: 2005-09-20
Posts: 83
Rep Power: 4
Youngy has an average reputation (10+)
Default Re: fw logswitch fails to create file

No I have not.

My understanding is that the GUI only refers to the underlying command. Which would be the same as running it from the command line. At this point in time I have raised a case with Checkpoint who appear to be equaly perplexed by this issue.

Today I tried simply the following:

fw logswitch max

expecting that a file called max would be created (should be created with an *.log extension). This file would be the summation of the log file and three pointer files CP uses to log to before the switch occurs.

What I can see is that four new files are created (1 log files and 3 pointer files) and the old four files cease to be written to. But no file is created called max
Reply With Quote
  #6 (permalink)  
Old 2005-10-04
Youngy Youngy is offline
Member
 
Join Date: 2005-09-20
Posts: 83
Rep Power: 4
Youngy has an average reputation (10+)
Default Re: fw logswitch fails to create file

Hi all,

Just thought I would update everyone with what is going on with this case. Well it is still open and the symptoms have not changed.

One thing I found interesting is that I was on a NG wit AI II course last week and half the class had the same symptoms when using the logswitch command as I have occurring in our production systems.

What a bug.............
Reply With Quote
  #7 (permalink)  
Old 2005-10-11
Youngy Youngy is offline
Member
 
Join Date: 2005-09-20
Posts: 83
Rep Power: 4
Youngy has an average reputation (10+)
Default Re: fw logswitch fails to create file

Another update for all.

Well Uri from checkpoint has helped look into this for a while now and this is what he found.

From the command line interface doc found here:

http://www.checkpoint.com/support/te.../docs_r55.html

on page 62 it states:

The rename operation fails on Windows if the active log that is being
renamed, is open at the same time that the rename operation is taking
place; however; the Logswitch will succeed and the file will be given
the default name $FWDIR/log/current_time_stamp.log.

The new Log File that is created is given the default name
$FWDIR/log/fw.log. Old Log Files are located in the same directory.


He went on to say that this open state of the file occurs if you have smart tracker open at the time of the logswitch.

Unfortunately in my case with nothing else open I still have the same issue when performing a logswitch. I am suspicious though that this may be caused by symantec rimporter running on this box.

Feel free to add your thoughts.
Reply With Quote
  #8 (permalink)  
Old 2005-10-12
Youngy Youngy is offline
Member
 
Join Date: 2005-09-20
Posts: 83
Rep Power: 4
Youngy has an average reputation (10+)
Default Re: fw logswitch fails to create file

More updates.

Uri from checkpoint suggested I run a cpstop and cpstart just before running the logswitch:

Check these results out:

C:\>cpstop
The Check Point SmartView Monitor service is stopping..
The Check Point SmartView Monitor service was stopped successfully.

The Check Point FireWall-1 service is stopping.
The Check Point FireWall-1 service was stopped successfully.

The Check Point SVN Foundation service is stopping..........
The Check Point SVN Foundation service was stopped successfully.


C:\>cpstart

cpstart: Starting product - SVN Foundation

The Check Point SVN Foundation service is starting.
The Check Point SVN Foundation service was started successfully.


cpstart: Starting product - VPN-1

The Check Point FireWall-1 service is starting.
The Check Point FireWall-1 service was started successfully.


cpstart: Starting product - SmartView Monitor

The Check Point SmartView Monitor service is starting.
The Check Point SmartView Monitor service was started successfully.


C:\>fw logswitch paul.log
Log file has been switched to: paul.log

C:\>

Now the cool thing is that it created a file called paul.log which is the same size as the log file was roughly before the logswitch. This is how I expect the command to react and expected outputs:

paul.log
paul.loginitial_ptr
paul.logptr
paul.logaccount_ptr


Now to see what happens when I logswitch without doing a start stop.

Again feel free to add your own experience or thoughts
Reply With Quote
  #9 (permalink)  
Old 2005-10-18
Youngy Youngy is offline
Member
 
Join Date: 2005-09-20
Posts: 83
Rep Power: 4
Youngy has an average reputation (10+)
Default Re: fw logswitch fails to create file

This is probably mine final update on this issue:

From the look of it - is seems like the issue is resolved - partly as I still think it is a bit buggy.

Doing a log switch on a windows management could create problems while the current log file is beeing held or is opened exclusively so issuing cprestart releases it and then the log switch is enabled.

Cheers all
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 21:06.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0