pyControl iRule Timing

Problem this snippet solves:

This pyControl v2 script generates load against virtual servers with specified iRule and calculates TMM impact.

How to use this snippet:

Usage: iRuleStats.py < host> < username> < iRule> < URL>

Code :

./iRuleStats.py 10.10.20.5 admin timing_test http://10.10.20.50
Please enter your password:
Password:

Resetting Statistics for the timing_test iRule

Running load test to host http://10.10.20.50
### Raw Data ###
Event:  HTTP_REQUEST
        STATISTIC_RULE_AVERAGE_CYCLES = 41950
Event:  HTTP_RESPONSE
        STATISTIC_RULE_AVERAGE_CYCLES = 93347

### iRule timing_test Performance Results
        BIG-IP LTM 3600 has 3413568000 availabe CPU Cycles (2 cores, 2133.480 MHz)
        Average Cycles/sec:     135297
        CPU Utilization/req:    0.00396350680578 percent
        Max Requests/sec:       25230
Published Mar 09, 2015
Version 1.0