Sunday, January 26, 2020

CPVIEW History

[Expert@CP-Gateway-R77]# cpview history export
Stopping the history daemon
cpwd_admin:
Process HISTORYD terminated
cpwd_admin:
successful Del operation
Exporting the database

Exported DB to /var/log/CPView_history/exported_db_13_02_2015_1111.gz
Starting the history daemon
cpwd_admin:
Process HISTORYD started successfully (pid=22067) 

[Expert@CP-Gateway-R77]#



Check Point CPView Utility allows to activate/deactivate (start/stop) CPView history daemon as needed. The current status of CPView history daemon can be viewed using command 'cpview history stat'.

Syntax:

cpview history on
cpview history off
cpview history stat



Usage:

cpview history <option>

Option:
    on      Starts the history daemon
    off     Stops the history daemon
    stat    Check whether history daemon is activated




Example:

[Expert@CP-Gateway-R77]# cpview history stat
history daemon is activated
[Expert@CP-Gateway-R77]#

Saturday, January 4, 2020

Checkpoint Unix - Commands




gwk

gawk -F: '{ print $1, $2, $3 }' /etc/passwd

gawk '{ sum += $1 }; END { print sum }' file


How to Print Static-Routes netstat -nr | grep -v D
netstat -rn |grep eth1 | awk -F' ' ' {print $1, $2, $3}' | sort >routes.txt
netstat -rn |grep eth1 | awk -F' ' ' {print $1, $2, $3}' | sort | wc -l

Unload Local Firewall Policy fwunload local