cancel
Showing results for 
Search instead for 
Did you mean: 

Problem this snippet solves:

Summary: This pyControl v2 script turns timing on/off, generates load against virtual servers with specified iRule and calculates TMM impact, and inserts test information as header in iRule.

How to use this snippet:

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

Code :

iRuleStatsHeaderInsert.py 172.16.99.5 admin w3c http://172.16.100.99 200
Please enter your password:
Password:

Resetting statistics for the w3c iRule

Enabling timing and removing header information

Making 200 requests to host http://172.16.100.99

### iRule w3c Performance Results
        BIG-IP LTM Z100 has 2454400000 availabe CPU Cycles (1 cores, 3068.000 MHz)
        Average Cycles/sec:     665391
        CPU Utilization/req:    0.0271101287484 percent
        Max Requests/sec:       3688

Inserting Header in iRule and disabling timing

Final iRule:

#hdr_info: ### BEGIN ###
#hdr_info: Name: w3c
#hdr_info: Trials: 4
#hdr_info: Time: Wed Mar  9 09
#hdr_info: Platform: Z100
#hdr_info: Cores: 1, Speed: 3068.000
#hdr_info: Target: http://172.16.100.99
#hdr_info: Total Avg Cycles: 665391
#hdr_info: CPU Util / request: 0.0271101287484
#hdr_info: ### END ###
when HTTP_REQUEST {
Version history
Last update:
‎09-Mar-2015 13:04
Updated by:
Contributors