- Products
- Learn
- Local User Groups
- Partners
- More
Firewall Uptime, Reimagined
How AIOps Simplifies Operations and Prevents Outages
Introduction to Lakera:
Securing the AI Frontier!
Check Point Named Leader
2025 Gartner® Magic Quadrant™ for Hybrid Mesh Firewall
HTTPS Inspection
Help us to understand your needs better
CheckMates Go:
SharePoint CVEs and More!
I am working on starting a Score Card for our gateways and I am trying to automate this as much as possible. Does anyone know of a way to get the throughput value easily? When you run CPview on the overview page there is a Bits/sec under the Network section. This is the number I would like to get. I intend to gather that data on interval and collect CPU data with the sar command. I want to collect this data and report weekly on the Peak numbers. Meaning the Peak throughput for the week and likely the Peak CPU usage for Worker_0. I will likely grab the average CPU usage as well, but this stat ill be watered down since we use mainly open servers and have unlicensed cores diluting the result.
Or this already packaged nicely for me and I missed it?
Regards
Drew Larrick
If you run cpview -p, everything from cpview will be output at once.
This output could be parsed for whatever you’re looking for.
Also possible the specific stats you’re after can be found another way (eg through other commands).
I can work with that. Thanks!
All the data I need is there in that print out. However, I don't seem to be able to make cpview work from a Cron Job. I have added path statement etc... and I get a little further through the script before it error each time. Has anyone called cpview from a Cron before?
Thanks
Drew Larrick
Keep in mind cpview is actually a shell script.
More specifically, it's an alias that runs the command /bin/cpview_start.sh
My guess is that you want to run that script directly in the cronjob.
Or maybe run it as /bin/sh /bin/cpview_start.sh -p and whatever other options.
Correct. I worked that part out. I also had to make a copy of the cpview_start.sh and modify it, because it calls ifconfig which is actually an alias to cp-ifconfig. It also can't populate the $CPDIR variable. Once I got past this one, I now get
" kiss_params: failed to create mutex (fwctl_set_mutex)
kiss_apps_internal_init: Unable to init kiss_apps module" as the output.
At this point I stopped and came here so see if anyone has already done this.
Have your version of the cpview script execute (near the top):
if [ -r /opt/CPshrd-R80.20/tmp/.CPprofile.sh ]; then
. /opt/CPshrd-R80.20/tmp/.CPprofile.sh
fi
(Replace path with your version)
Have a version that works on 77.20 and 77.30?
Check /etc/profile.d/CP.sh for the exact syntax for your version (should be just replacing R80.20 with R77.20 or R77.30)
The if statement in the profile.d worked like a champ. However my next hurdle is it appears to be trying to find a Window site to display in, which from crontab there is none.
Here is the error I get.....
"cptop_main.c:308: Failed windows size ioctl with 22, Invalid argument"
Any thoughts here?'
Thanks again.
What is the exact syntax which you are calling cpview?
`cpview_start.sh -p &> /var/log/statscollect/cpv$tstamp`
It might be worth a TAC case to see what's going on.
You should disable inactive CPU cores in BIOS or average CPU data based on licensed amount of CPU. Why throughout is needed? I personally prefer to monitor interfaces bandwidth and graph it..
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
User | Count |
---|---|
13 | |
12 | |
11 | |
10 | |
9 | |
8 | |
7 | |
5 | |
5 | |
5 |
Tue 07 Oct 2025 @ 10:00 AM (CEST)
Cloud Architect Series: AI-Powered API Security with CloudGuard WAFThu 09 Oct 2025 @ 10:00 AM (CEST)
CheckMates Live BeLux: Discover How to Stop Data Leaks in GenAI Tools: Live Demo You Can’t Miss!Thu 09 Oct 2025 @ 10:00 AM (CEST)
CheckMates Live BeLux: Discover How to Stop Data Leaks in GenAI Tools: Live Demo You Can’t Miss!Wed 22 Oct 2025 @ 11:00 AM (EDT)
Firewall Uptime, Reimagined: How AIOps Simplifies Operations and Prevents OutagesAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY