iRule Maintenance Windows
A fun, but not well known, feature on BIG-IP is the Statistics Profile. This tech tip is the second in a series on how the Statistics Profile and iRules, when working together, can save time, product...
Published Apr 10, 2007
Version 1.0Brian_69413
Mar 18, 2010Nimbostratus
I am having trouble with your code in that the STATS profile fields do not seem to hold the values set in them or rather are not consistent. I have added two log statements, one for when /disable is called and I dump the STATS fields, and the second when I run /check. You will see that multiple hits to /check show different STATS field values:
Mar 18 08:13:17 lbprd501dd_v652 info tmm3[2548]: Rule maintenance_window : Stats Reset to 0 - Day: 0, Start_Time: 0, End_Time: 0
Mar 18 08:13:30 lbprd501dd_v652 info tmm1[2546]: Rule maintenance_window : Check Stats - Day: 4, Start_Time: 800, End_Time: 805
Mar 18 08:13:32 lbprd501dd_v652 info tmm[2545]: Rule maintenance_window : Check Stats - Day: 4, Start_Time: 800, End_Time: 805
Mar 18 08:13:33 lbprd501dd_v652 info tmm3[2548]: Rule maintenance_window : Check Stats - Day: 0, Start_Time: 0, End_Time: 0
Mar 18 08:13:35 lbprd501dd_v652 info tmm2[2547]: Rule maintenance_window : Check Stats - Day: 0, Start_Time: 0, End_Time: 0
Mar 18 08:13:35 lbprd501dd_v652 info tmm[2545]: Rule maintenance_window : Check Stats - Day: 4, Start_Time: 800, End_Time: 805
Mar 18 08:13:36 lbprd501dd_v652 info tmm3[2548]: Rule maintenance_window : Check Stats - Day: 0, Start_Time: 0, End_Time: 0
Mar 18 08:13:37 lbprd501dd_v652 info tmm2[2547]: Rule maintenance_window : Check Stats - Day: 0, Start_Time: 0, End_Time: 0
Mar 18 08:13:38 lbprd501dd_v652 info tmm1[2546]: Rule maintenance_window : Check Stats - Day: 4, Start_Time: 800, End_Time: 805
Mar 18 08:13:40 lbprd501dd_v652 info tmm[2545]: Rule maintenance_window : Check Stats - Day: 4, Start_Time: 800, End_Time: 805
Any ideas on this?