Forum Discussion
Anthony_Hatch_3
Nimbostratus
Mar 27, 2011External class and class command
I recently came across the 2009 iRule Winner by Chetan Bhatt, Click Here, and wanted to implement it on our v10.2.0 LTMs. I have modified the cron job to write the external class file in the appropr...
Anthony_Hatch_3
Nimbostratus
Mar 28, 2011Thanks for the response Aaron! This works as I intended and outputs correctly. The problem isn't actually with that command, but with how the class commands are processing the contents of the class file that is output from that command. I was actually just in the process of posting an update when you replied. üôÇ
It looks like the problem may be that all keys that are output from the command are not unique. Therefore when I run commands like class size class_name, I get a result that identifies the number of unique keys and not the total number of keys as I had originally intended. As a possible resolution, I was thinking of modifying the command to output each key (poolname) uniquely and then stripping out the unique identifier during iRule processing. An example output might instead look something like this:
"test_http-pool_1" := "1.1.1.1:http",
"test_http-pool_2" := "2.2.2.2:http",
"test_http-pool_3" := "3.3.3.3:http",
Is my thinking correct on this?
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