Difference between revisions of "local firewall objects database"

From cpwiki.net
Jump to: navigation, search
Check Point Profressional Services
(Created page with "Firewall Versions: R65 to R75 (tested) Object information such as IPs can be gathered locally on the firewall. This is useful for situations where you might cat $FWDIR/con...")
 
Line 14: Line 14:
  
 
a little cleaner command for bash on SPLAT or Gaia  
 
a little cleaner command for bash on SPLAT or Gaia  
  # NAME="mysmartcenter"; grep -A 200 -r ": ($NAME" * $FWDIR/database/objects.C | grep -i ipaddr
+
  # '''NAME="mysmartcenter"; grep -A 200 -r ": ($NAME" * $FWDIR/database/objects.C | grep -i ipaddr'''
 
   
 
   
 
ipso
 
ipso
  
  # set NAME="mysmartcenter"; grep -A 200 -r ": ($NAME" * $FWDIR/database/objects.C | grep -i ipaddr
+
  # '''set NAME="mysmartcenter"; grep -A 200 -r ": ($NAME" * $FWDIR/database/objects.C | grep -i ipaddr'''
  
 
[[category:misc]]
 
[[category:misc]]

Revision as of 16:59, 27 March 2014

Firewall Versions: R65 to R75 (tested)


Object information such as IPs can be gathered locally on the firewall. This is useful for situations where you might cat $FWDIR/conf/masters to check the manager and logger configurations. You might what the associated IP address but not want to take the time to look it up on the GUI.

The local firewall object information can be found in

$FWDIR/database/objects.C


# grep -A 200 -r ": (mysmartcenter" * $FWDIR/database/objects.C | grep -i ipaddr
objects.C-                      :ipaddr (192.168.1.100)

where mysmartcenter should be replaced with you object name of interest

a little cleaner command for bash on SPLAT or Gaia

# NAME="mysmartcenter"; grep -A 200 -r ": ($NAME" * $FWDIR/database/objects.C | grep -i ipaddr

ipso

# set NAME="mysmartcenter"; grep -A 200 -r ": ($NAME" * $FWDIR/database/objects.C | grep -i ipaddr