Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
MladenAntesevic
Collaborator
Jump to solution

R80.40 "cpview -t" is not working

Hi,

we got strange issue, cpview command is not working in a history mode, so when we tried cpview -t we got response:

History is initializing

 

Ordinary cpview is working normally.

 

[Expert@CP1:0]# cpview -t

CPView: History is initializing
[Expert@CP1:0]# exit
exit
CP1> show version all
Product version Check Point Gaia R80.40
OS build 294
OS kernel version 3.10.0-957.21.3cpx86_64
OS edition 64-bit

 

Do you have some ideas what could be the reason cpview -t is not working?

0 Kudos
1 Solution

Accepted Solutions
Timothy_Hall
Legend Legend
Legend

Make sure your /var/log partition is not full with df -h as that will halt cpview history logging.

Next try restarting the cpview services like this:

cpview -s off

cpview -s on

If still having the problem, there may be some corruption in the cpview history database file here: $CPDIR/log/cpview_services/* 

If you can turn cpview services off, back up all files in this directory, remove them, then restart cpview services.

Attend my 60-minute "Be your Own TAC: Part Deux" Presentation
Exclusively at CPX 2025 Las Vegas Tuesday Feb 25th @ 1:00pm

View solution in original post

5 Replies
_Val_
Admin
Admin

@Arik_Ovtracht can you assist please?

0 Kudos
Timothy_Hall
Legend Legend
Legend

Make sure your /var/log partition is not full with df -h as that will halt cpview history logging.

Next try restarting the cpview services like this:

cpview -s off

cpview -s on

If still having the problem, there may be some corruption in the cpview history database file here: $CPDIR/log/cpview_services/* 

If you can turn cpview services off, back up all files in this directory, remove them, then restart cpview services.

Attend my 60-minute "Be your Own TAC: Part Deux" Presentation
Exclusively at CPX 2025 Las Vegas Tuesday Feb 25th @ 1:00pm
MladenAntesevic
Collaborator

Thanks @Timothy_Hall  after restarting cpview services I got cpview history for the time since restart (not before).  Before restarting cpview services I also noticed that my cpview database history file is quite old, and that after restart it got refreshed. Also, I have checked df -h and its fine. Here is my complete command log:

[Expert@CP1:0]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_splat-lv_current 32G 9.3G 23G 30% /
/dev/sda1 291M 60M 217M 22% /boot
tmpfs 3.8G 6.2M 3.8G 1% /dev/shm
/dev/mapper/vg_splat-lv_log 60G 6.7G 54G 12% /var/log
[Expert@CP1:0]# ls -lah /opt/CPshrd-R80.40/log/cpview_services/
total 1.5G
drwx------ 2 admin root 99 Jun 1 16:24 .
drwxrwx--- 4 admin root 4.0K Oct 14 2020 ..
-rw-r----- 1 admin root 480M Sep 21 2020 CPViewDB_1600676357.dat
-rw-r----- 1 admin root 985M Dec 23 21:32 cpview_services.dat
-rw-r----- 1 admin root 149K Jun 1 16:24 cpview_services.dat-journal

[Expert@CP1:0]# cpview -s off
[Expert@CP1:0]# cpview -s on
[Expert@CP1:0]# cpview -s stat
CPView services running

[Expert@CP1:0]# ls -lah /opt/CPshrd-R80.40/log/cpview_services/
total 1.5G
drwx------ 2 admin root 99 Jun 1 16:27 .
drwxrwx--- 4 admin root 4.0K Jun 1 16:27 ..
-rw-r----- 1 admin root 480M Sep 21 2020 CPViewDB_1600676357.dat
-rw-r----- 1 admin root 985M Jun 1 16:27 cpview_services.dat
-rw-r----- 1 admin root 251K Jun 1 16:27 cpview_services.dat-journal
[Expert@CP1:0]#

0 Kudos
Arik_Ovtracht
Employee
Employee

Hi @MladenAntesevic ,

we require more details to help you.

Can you please contact me at ariko@checkpoint.com and we'll take it offline?

0 Kudos
MladenAntesevic
Collaborator

Hi @Arik_Ovtracht  I sent you an e-mail, now I got it working for the time since restart.

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events