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 12/8, (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 And Related Products > Miscellaneous
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2006-12-15
Junior Member
 
Join Date: 2006-11-21
Posts: 5
Rep Power: 0
Gutts has an average reputation (10+)
Default Bulk User Renewing

Hey all,

Does anyone know if you can or can't mass renew users in checkpoint or maybe in a single group within checkpoint?

Example: Group A users are going to expire in 12/31/2006, anyway to bump the date to 2007 for all at once?
Reply With Quote
  #2 (permalink)  
Old 2006-12-15
Senior Member
 
Join Date: 2006-04-27
Location: Twillight zone
Posts: 465
Rep Power: 3
abusharif has an average reputation (10+)
Default Re: Bulk User Renewing

there is no automated function but u could do:

-fwm dbexport -f /root/myusers.txt
-cd /root; cat myusers.txt |sed 's/31-dec-2008/31-dec-2020/g' > /root/mynewusers.txt
*(first date is the expiration date, second date is new date to set it to)
-and them fwm dbimport on the newcreated mynewusers.txt file.

Try it in test enviorment first
Reply With Quote
  #3 (permalink)  
Old 2006-12-15
Junior Member
 
Join Date: 2006-11-21
Posts: 5
Rep Power: 0
Gutts has an average reputation (10+)
Default Re: Bulk User Renewing

Ooh nice..

Just curious do you happen to know the type of DB it is? Or is it a proprietary db?
Reply With Quote
  #4 (permalink)  
Old 2006-12-15
Senior Member
 
Join Date: 2006-04-27
Location: Twillight zone
Posts: 465
Rep Power: 3
abusharif has an average reputation (10+)
Default Re: Bulk User Renewing

Quote:
Originally Posted by Gutts View Post
Ooh nice..

Just curious do you happen to know the type of DB it is? Or is it a proprietary db?
No idea on the format but its a semi-binary so its not possible to go berserk on the db file straight away so you need to export it first.
Reply With Quote
  #5 (permalink)  
Old 2006-12-15
Senior Member
 
Join Date: 2006-07-28
Location: New Zealand
Posts: 857
Rep Power: 3
northlandboy has an average reputation (10+)
Default Re: Bulk User Renewing

Nice use of sed from abusharif, but there is in fact a proper way of doing this:

fwm expdate <dd-mmm-yyyy> [-f dd-mmm-yyyy]

The first date field is the one you want to set them to, the second one is optional, if you only want to change users expiring on a specific date.

sk522, also in the CLI guide.

No need to run it through a test environment either, this is a standard Check Point command. I've used it quite a few times.
Reply With Quote
  #6 (permalink)  
Old 2006-12-16
Senior Member
 
Join Date: 2006-04-27
Location: Twillight zone
Posts: 465
Rep Power: 3
abusharif has an average reputation (10+)
Default Re: Bulk User Renewing

Quote:
Originally Posted by northlandboy View Post
Nice use of sed from abusharif, but there is in fact a proper way of doing this:

fwm expdate <dd-mmm-yyyy> [-f dd-mmm-yyyy]

The first date field is the one you want to set them to, the second one is optional, if you only want to change users expiring on a specific date.

sk522, also in the CLI guide.

No need to run it through a test environment either, this is a standard Check Point command. I've used it quite a few times.
*blush* missed that one completely :(
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:14.


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