CPUG

The Check Point User Group

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

1. Come to CPUG CON 2008 EUROPE in Switzerland on September 8th - 9th!
    Two days full of technical content for Check Point administrators in the beautiful Swiss Alps!
    We already have 52 attendees signed up from 14 countries!
2. CCSA/CCSE One-Week Dual-Certification Training Course with CPUG in San Francisco!
    Courses Starting 8/25, 10/6, 11/3, 12/8, (2009) 1/19, 2/9, 3/9, 4/6, 5/4, 6/8, 7/6, 8/3, 9/7.
3. Corrent S3500 SecureXL Turbocards For Sale - Last Six Remaining - Get Your Spares!
4. 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 > SmartCenter Server (Formerly Management Server)
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2007-04-03
mamakos mamakos is offline
Member
 
Join Date: 2007-01-19
Posts: 33
Rep Power: 0
mamakos has an average reputation (10+)
Default Performing database revision control via a script

Hello All,

I'm using NGX R60 (in fact on Provider 1 but it must be the same with smartcenter).

I would like to automatically generate a database revision control using the dbver function provided by checkpoint. Yet, this command does not permit to set "admin/password/command" in CLI. There does not seem to be any option like that.

For now, I did not achieve to pass the admin password via any script.

Has one of you made a script to use the dbver stuff ?

Here is what I get from the help option.

Quote:
foufourc{root}# dbver -help

Note: A connection to SmartCenter Server must be established before executing any of the following commands. ('Print' can be done without such a connection)

Usage: dbver [-p version_file_path] [-help]

export <version_numbers> <delete | keep>
import <exported_version_file_name>
create <version_name> <version_comment>
delete <version_numbers>
print <version_file_path>
print_all
help
quit


Examples:
=========
-Export versions and delete them from the SmartCenter Server repository:
export 1,2 delete

-Export a version and keep it in the SmartCenter Server repository:
export 3 keep

-Import a previously exported version from $FWDIR/conf/db_versions/export/
import myserver_2002-09-12_081223

-Create a new version:
create my_daily_version for_backup

-Delete version/versions:
delete 1,2

-Print properties of an imported version:
print /tmp/local_filename

-Print properties of all versions in the SmartCenter Server repository:
print_all
Reply With Quote
  #2 (permalink)  
Old 2007-04-03
david david is offline
Senior Member
 
Join Date: 2006-06-28
Posts: 140
Rep Power: 3
david has an average reputation (10+)
Default Re: Performing database revision control via a script

this works on R65, i don't have access to a R60 box to test.

dbver -s server -u user -w password -m 'create test test'
Reply With Quote
  #3 (permalink)  
Old 2007-07-24
mamakos mamakos is offline
Member
 
Join Date: 2007-01-19
Posts: 33
Rep Power: 0
mamakos has an average reputation (10+)
Default Re: Performing database revision control via a script

in fact this is a new functionality of R65...
Reply With Quote
  #4 (permalink)  
Old 2007-09-21
docstephano docstephano is offline
Junior Member
 
Join Date: 2007-09-05
Posts: 7
Rep Power: 0
docstephano has an average reputation (10+)
Default Re: Performing database revision control via a script

Hello,
have you tried a simple redirecting standard input script like this one ?

#!/bin/bash
cat <<EOF | $FWDIR/bin/dbver
127.0.0.1
U
fwadmin
password
print_all
quit
EOF
Reply With Quote
  #5 (permalink)  
Old 2007-10-21
mamakos mamakos is offline
Member
 
Join Date: 2007-01-19
Posts: 33
Rep Power: 0
mamakos has an average reputation (10+)
Default Re: Performing database revision control via a script

Nope... we have upgraded to R65 ! :)
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 06:56.


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