Hi Everyone,
Recently due to multiple performance issues on the Checkpoint VSX, we have been trying to set up more monitors on Checkpoint platform and one of them is to record the history data of CPView.
As all of you may already know cpview history cannot be well supported on VSX platform, we are now testing a bash script to export the output of "cpview -p" to one file with timestamp appended and save to one specific folder. Pretty straightforward. We can manually run the script and get the result, however when scheduling the script to run every minute via crontab, we are getting below error:
CPView: Failed windows size ioctl with 22, Invalid argument
We then updated the script by using "when true;do...done" loop and use "nohup script.sh > /PATH/TO/LOG 2>&1 &" to run it at the background. No luck and we are getting the same error as above"
We then run the script directly with "&", and then use the disown command to clear the job. Got the same error.
We then run the script directly with "&", and then use the disown command with -h option on the job. This time it worked fine until we closed the putty client.
From the tests above it looks like "CPView -p" relies on terminal. Anyone had the same experience? And in this case how we can record the cpview history?
Thanks!
David