Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Andrew_Larrick
Participant

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

0 Kudos
13 Replies
PhoneBoy
Admin
Admin

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).

0 Kudos
(1)
Andrew_Larrick
Participant

I can work with that.  Thanks!

0 Kudos
Andrew_Larrick
Participant

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

0 Kudos
PhoneBoy
Admin
Admin

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.

0 Kudos
Andrew_Larrick
Participant

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.

0 Kudos
PhoneBoy
Admin
Admin

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)

0 Kudos
Andrew_Larrick
Participant

Have a version that works on 77.20 and 77.30?

0 Kudos
PhoneBoy
Admin
Admin

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)

0 Kudos
Andrew_Larrick
Participant

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.

0 Kudos
PhoneBoy
Admin
Admin

What is the exact syntax which you are calling cpview?

0 Kudos
Andrew_Larrick
Participant

`cpview_start.sh -p &> /var/log/statscollect/cpv$tstamp`

0 Kudos
PhoneBoy
Admin
Admin

It might be worth a TAC case to see what's going on.

0 Kudos
Martin_Valenta
Advisor

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..

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events