Forum Discussion
Anthony_Hatch_3
Mar 28, 2011Nimbostratus
Thanks 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?