pyControl iRule Timing And Comment Header Insert
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 {
Published Mar 09, 2015
Version 1.0CodeCentral_194
Cirrus
Joined May 05, 2019
CodeCentral_194
Cirrus
Joined May 05, 2019
No CommentsBe the first to comment