Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology

answers

counting number of total connections to VIP during time period

Updated 9/26/2008 • Originally posted on 25-Sep-2008 by MrBelvedr 0

I am tasked with finding a way to calculate the total number of connections that were established to a VIP during a time period. I am aware that we will need to use some kind of logging to log each connection that is established. What is the easiest "built in" way to do this logging within the f5 itself?

Thx!
0
Rate this Question

Answers to this Question

8 Answers:

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
Updated 26-Sep-2008 • Originally posted on 26-Sep-2008 by hoolio 2066
Hi there,

Do you know in advance what interval you want to count the requests for? If so, you could clear the VIP stats at the start and then check the VIP stats at the end of the interval? If not, can you provide more detail on the scenario?

Aaron
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
Updated 30-Sep-2008 • Originally posted on 30-Sep-2008 by MrBelvedr 0
We need to count the number of total connections to VIP every 24 hours (every day at midnight). Yes, resetting the statistics would be a viable solution. Is it possible to reset the statistics just for a single vip? or does everything need to be reset? Also, can I get the statistics by issuing a command in the linux cli? I would need to scp the statistics to another server where we create a PDF report automatically every night.

Thx!

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
Updated 01-Oct-2008 • Originally posted on 01-Oct-2008 by hoolio 2066
You can view/reset the VIP stats using 'b virtual':

b virtual VIP_NAME or b virtual VIP_NAME stats

and

b virtual VIP_NAME stats reset

You could do this and scp the output via a script called from crontab.

Aaron
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
Updated 01-Oct-2008 • Originally posted on 01-Oct-2008 by MrBelvedr 0
This is exactly the info I needed. Thx Aaron. What a great community.
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
Updated 12-May-2011 • Originally posted on 12-May-2011 by pallocca 0
super old post but I know hoolio is always around ...

does the BigIP record anywhere the date when the stats for a virtual has been cleared? like of like on a cisco router "Last clearing of 'show interface' counters"

i hate to flush the stats on the system everyday just for reporting.
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
Updated 13-May-2011 • Originally posted on 13-May-2011 by hoolio 2066
I don't think audit logging for bigpipe or the GUI records stats being reset. I did a quick test on 10.2.1 and don't see anything logged. And this type of data isn't displayed anywhere I know of if it is even recorded.

Aaron
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
Updated 16-May-2011 • Originally posted on 16-May-2011 by smp 333
I just tested this on 10.2.0 - "bigpipe" audit logging must be enabled. When it is, the command "tmsh reset-stats ltm virtual " gets logged to /var/log/audit. When bigpipe audit logging is not enabled, there is no entry in /var/log/audit.

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
Updated 16-May-2011 • Originally posted on 16-May-2011 by smp 333
I was going to claim that I get the audit entry when I reset the stats for one particular virtual, but not others. But I was grepping for the wrong string...duh. I stand by my statement above.
;