Pages

Monday, March 10, 2014

File Copy Between Two Juniper SRX Cluster Members

I have two SRX Cluster Members and managed from remotely. Each time when transferring package file remotely it will take several hours for 140M new junos file.

File copy command can copy file between routing engines but looks does not work well on SRX Cluster.

I tried to login into routing engine re0 or re1 on SRX. It is always in same routing engine. But with node 0 and node 1, it works well.


root@fw-1% cli
{primary:node0}
root@fw-1> 



root@fw-1% request routing-engine login re0  
root@fw-1%

root@fw-1% request routing-engine login re1
root@fw-1%


root@fw-1> request routing-engine login node 1 

--- JUNOS 11.4R7.5 built 2013-03-01 11:40:03 UTC



root@fw-2> file copy /var/tmp/junos10.3.tgz re1:/var/tmp/junos10.3.tgz
re1: No route to host
re1: No route to host
error: put-file failed
error: could not send local copy of file

root@fw-2> file copy /var/tmp/junos10.3.tgz node0:/var/tmp/junos10.3.tgz
ssh: Could not resolve hostname node0: hostname nor servname provided, or not known
lost connection
error: put-file failed
error: could not send local copy of file

After a couple of times try, I found a way to use fxp0.0 interface ip to do file transferring:
  file copy /var/tmp/junos10.3.tgz 10.2.8.4:/var/tmp/junos10.3.tgz


and the speed is 2.2MB/s. pretty nice. And file transferring can be done in 1 minutes.

Thursday, March 6, 2014

Juniper NSM Schema Upgrade Failed


My Juniper NSM version is 2012.1R6.
Tried to upgrade Juniper NSM Schema online from current 280 to latest 293, but got following failed message:
Error Code: 

Error Text:
   Schema Download Failed.

Error Details:
   No such file or directory
svn: Can't open file '/usr/netscreen/GuiSvr/var/dmi-schema-stage/nsm/dmi/junos-es/releases/12.1R5.5/.svn/text-base/config.xsd.svn-base': No such file or directory

Basically this NSM will have to manually upgrade schema, online is not working. Here are steps for how to do it:


Note: Technote ID:TN86 -NSM & Junos Compatibility Matrix, will be needed to download latest Schema from Schema Offline Download Links.


Thursday, February 27, 2014

Excel Formula : Convert a text to Number

Got a Excel file from other resource witch Column A is set as text. At the tail and start of number there are some spaces filled in, for example cell A1 is '  4 '.

My challenge is to convert whole column to numbers which can be used to do sum or other math calculation.


With some research, I constructed this formula for a new column :
=VALUE(TRIM(CLEAN(SUBSTITUTE(A1,CHAR(160)," "))))

it perfectly resolved this challenge as you can see from following screen shot.

Note: trim will not work with the only space cell. Thanks reply from Hari Krishna.

Friday, February 21, 2014

Checkpoint SmartDashboard Error - No Rule Bases Exist for the Policy Package


Got this issue in the morning. Searched the Checkpoint Support Site and found sk72440


CAUSE
$FWDIR/conf/applications.C* and $FWDIR/conf/CPMILinks* files have become corrupted on Management Server / Multi-Domain CMA.
SOLUTION
To resolve this issue, remove the $FWDIR/conf/applications.C* and $FWDIR/conf/CPMILinksMgr.* files from the Management Server.


On Management Server: 
  1. Stop Check Point services:

    [Expert@HostName]# cpstop
  2. Go to $FWDIR/conf/ directory and remove applications.C* and CPMILinks* files:

    [Expert@HostName]# cd $FWDIR/conf/
    [Expert@HostName]# mkdir backup_cache
    [Expert@HostName]# mv $FWDIR/conf/applications.C* $FWDIR/conf/backup_cache/
    [Expert@HostName]# mv $FWDIR/conf/CPMILinks* $FWDIR/conf/backup_cache/
  3. Start Check Point services:

    [Expert@HostName]# cpstart
  4. Connect with SmartDashboard to Management Server.

Notes:
  • $FWDIR/conf/applications.C and $FWDIR/conf/CPMILinksMgr.db will be created again automatically.
  • The '$FWDIR/conf/backup_cache' directory can be removed after the solution is verified.





Thursday, February 20, 2014

Checkpoint Smartview Monitor Shows Firewall Disconnected

It is a interesting error on Checkpoint Smartview Monitor Gateway Status page.

One of cluster members shows disconnected, and another one shows attention. Usually after I refreshed the status, attention will go away, but disconnected status keeps no change in this case.

Followed KB32920, this issue fixed.

SYMPTOMS
  • In SmartView Monitor, several properties in the 'Gateway View' (such as Security Policy, Security Policy Status, or Firewall Status) display incorrect information about the Security Management server or the Security Gateway.
CAUSE
Some files on the Security Management server are corrupted.

SOLUTION
To resolve the problem, remove the corrupted files from the Security Management server. To do so, perform:
  1. Close all GUI clients.
  2. Run cpstop.
  3. Back up the following files:

    $FWDIR/conf/applications.C 
    $FWDIR/conf/applications.C.backup 
    $FWDIR/conf/CPMILinksMgr.db 
    $FWDIR/conf/CPMILinksMgr.db.private 

    Note: Backups are not necessary for files that do not exist.
  4. Remove the following files:

    $FWDIR/conf/applications.C 
    $FWDIR/conf/applications.C.backup 
    $FWDIR/conf/CPMILinksMgr.db 
    $FWDIR/conf/CPMILinksMgr.db.private 
  5. Run cpstart.
  6. Open SmartDashboard.
  7. Install the Security policy.

After completing this procedure, the SmartView Monitor displays correct information regarding the Security Management server or the Security Gateway. 



------------------------------

[Expert@CP-Management]# cp $FWDIR/conf/applications.C  .
[Expert@CP-Management]# cp $FWDIR/conf/applications.C.backup .
[Expert@CP-Management]# cp $FWDIR/conf/CPMILinksMgr.db  .
[Expert@CP-Management]# cp $FWDIR/conf/CPMILinksMgr.db.private .
[Expert@CP-Management]# ls
CPMILinksMgr.db  CPMILinksMgr.db.private  applications.C  applications.C.backup
[Expert@CP-Management]# rm $FWDIR/conf/applications.C
[Expert@CP-Management]# rm $FWDIR/conf/applications.C.backup 
[Expert@CP-Management]# rm $FWDIR/conf/CPMILinksMgr.db 
[Expert@CP-Management]# rm $FWDIR/conf/CPMILinksMgr.db.private 
[Expert@CP-Management]# ls
CPMILinksMgr.db  CPMILinksMgr.db.private  applications.C  applications.C.backup
[Expert@CP-Management]# cpstart
cpstart: Power-Up self tests passed successfully

cpstart: Starting product - SVN Foundation

SVN Foundation: Starting cpWatchDog
SVN Foundation: Starting cpd
SVN Foundation: cpsnmpd already running
SVN Foundation: Starting PostgreSQL Database
Multiportal daemon: starting mpdaemon
SVN Foundation started

cpstart: Starting product - VPN-1

 Local host is not a FireWall-1 module
FireWall-1: Starting fwd
FireWall-1: Starting fwm (SmartCenter Server)

FireWall-1: This is a SmartCenter server. No security policy will be loaded
FireWall-1 started

cpstart: Starting product - SmartView Monitor

SmartView Monitor: Not active

cpstart: Starting product - Eventia Suite

evstart: dbsync started
Starting SmartReporter...
Starting SmartReporter Server.
Done.
evstart: Starting product - SmartEvent Server
evstart: Starting product - SmartEvent Correlation Unit
Check Point SmartEvent Server started
Check Point SmartEvent Correlation Unit started

cpstart: Starting product - Edge Embedded Connector

cpwd_admin: 
Process VPN-1 Embedded Connector started successfully (pid=11771) 

cpstart: Starting product - Management Portal

Management Portal: Starting CPWMD
CPWMD Started
Management Portal: Starting CPHTTPD
CPHTTPD started

cpstart: Starting product - SmartLog

cpwd_admin: 
Process SMARTLOG_SERVER started successfully (pid=11791) 

cpstart: Starting product - Mobile Access

Mobile Access service is disabled.
If you wish to start Mobile Access, please enable the Mobile Access blade in the SmartDashboard and configure the Mobile Access policy.

cpstart: Starting product - Advanced Routing

Advanced Routing is not enabled. Please use 'cpconfig' to enable it.
----------------------------------



Note: You may need to repeat this process for a couple of times to let management server generate those files correctly.