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 (2009) 1/19, 2/9, 3/9, 4/6, 5/4, 6/8, 7/6, 8/3.
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 Platforms > Check Point SecurePlatform (SPLAT)
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2007-07-25
Junior Member
 
Join Date: 2007-02-09
Posts: 3
Rep Power: 0
CuseHokie has an average reputation (10+)
Default Scripting - output different as cron

So I'm trying to make a script that will output "fw ver" information and run a comparison.

Essentially, my issue is when I run this manually (the script or the command itself), it outputs:

This is Check Point VPN-1(TM) & FireWall-1(R) NG with Application Intelligence (R55) HFA_19, Hotfix 848 - Build 022


When cron runs the script (as I'm trying to automate this), it outputs:

This is Check Point VPN-1(TM) & FireWall-1(R) Major Version 5, Feature Pack 4, Service Pack 1, Hotfix 848 - B
uild 022


This is a problem because for the script, I'm trying to compare what "fw ver" will output against what it is expected to be (stored in a seperate file).

Does anyone know how to manipulate the command so said example would output identical information, especially as cron? This is really driving me nuts...

I've tried other commands, such as /bin/ver, or /bin/cpver_start, which point to files within the $CPDIR directory...

Anyhow, the underlying problem seems to be that the script runs differently (specifically any of these version commands) as cron!

Thanks.
Reply With Quote
  #2 (permalink)  
Old 2007-07-25
Senior Member
 
Join Date: 2005-08-29
Location: Upstate NY
Posts: 1,681
Rep Power: 5
chillyjim has an average reputation (10+)
Send a message via AIM to chillyjim Send a message via Skype™ to chillyjim
Default Re: Scripting - output different as cron

Try using /bin/cpfw_start

[Expert@irish]# which fw
alias fw='/bin/cpfw_start'
/bin/cpfw_start
[Expert@irish]# ls -la /bin/cpfw_start
-rwxr-xr-x 1 root root 80 Oct 11 2006 /bin/cpfw_start
[Expert@irish]#
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 11:45.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0