- CheckMates
- :
- Products
- :
- General Topics
- :
- Re: How can I find Throughput statistics?
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How can I find Throughput statistics?
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can work with that. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have a version that works on 77.20 and 77.30?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is the exact syntax which you are calling cpview?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
`cpview_start.sh -p &> /var/log/statscollect/cpv$tstamp`
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It might be worth a TAC case to see what's going on.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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..
