gerald_wegener_
Aug 23, 2006Nimbostratus
Method for reading variables needed
I looking for a way to read varibles (integers) into an iRule. The variables must be able to be modified on the fly via the command line. So far the best I can come up with is to use data group lists defined as integers for each variable. Each DGL has a single integer entry in it (e.g. 5). I can modify these on the fly via the command line using the bigpipe command.
My question is if a DGList has a single integet in it can it be read directly into a variable? For example if I have a DGList named "percent" with a single value of integer 5 in it is there someway I can read that into a variable e.g.
set a [matchclass::percent] (so I get the value of a = 5)
How can I do this? Can I use DGLists or is the a better/simplier way to do it?
Thank you.