Forum Discussion
Stevenson_88156
Nimbostratus
Jul 04, 2010iRule Help!!
I am newbie with iRule and I am just trying out some sample codes to test out how iRule works. I started to developed a simple custom persister whereby a cookie is created to store the serverid on the...
Stevenson_88156
Nimbostratus
Jul 04, 2010Hi,
Thank you so much for your reply, Aaron. You are indeed right that the pool command requires separate parameter values for IP and port. On the log files $serverid displays the following sample value "TestPoolA 10.2.3.48 80". So when I did the substr function, I was able to parse the value "10.2.3.48 80" (the first 10 char in the string that is taken out is "TestPoolA ").
The problem I think is that I am just passing the $serverid variable into pool function as one parameter than two thinking that iRule will be able to interpret the space within the variable as two parameters than one.
I had done more parsing in the code to separate the IP and the Port and passing two parameters rather than one and the code seems to work. Thanks.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
