Forum Discussion

Siddarth_84779's avatar
Siddarth_84779
Icon for Nimbostratus rankNimbostratus
Apr 08, 2011

hits on virtual server

Hi all,

 

 

I need to know the number of hits on each of the virtual servers in a month, is there any way to know that. Basically i am trying to find out the virtual sever with the maximunm hits in a month.

 

 

Any help would be appreciated.

 

 

Regards,

 

Siddarth.

3 Replies

  • Hi Siddarth,

     

     

    In current versions, you could compare the output from 'b virtual' to see which virtual server had received the most connections.

     

     

    The virtual server stats available via 'b virtual' or SNMP would be reset whenever the unit is restarted. A failover would also affect the stats as a new unit would be processing the request.

     

     

    Aaron
  • Thanks Aaron,

     

     

    The data from 'b virtual' is same as that in statistics right. I need to collect the data for every month. As of now i am resetting the statistics in the beggining of the month and will check the data in the end of the month. Can we write any scripts to automate this.

     

     

    Regareds,

     

    Siddarth.
  • You could write a script in perl or bash to write out the stats you want and reset them at the beginning of each month. You can call the scripts from cron following the steps in SOL8430

     

     

    sol8430: Archive UCS files using the logrotate and crontab utilities

     

    http://support.f5.com/kb/en-us/solutions/public/8000/400/sol8430.html

     

     

    Aaron