root@ve1110(Active)(/Common)(tmos) list ltm data-group internal ActionBasedOnUrl
ltm data-group internal ActionBasedOnUrl {
records {
"/ wls cookie1 pool_internet" { }
"/docs wls cookie2 pool_internet" { }
}
type string
}
root@ve1110(Active)(/Common)(tmos) list ltm rule myrule
ltm rule myrule {
when RULE_INIT {
set init [class get ActionBasedOnUrl]
log local0. $init
foreach entry $init {
log local0. $entry
foreach item $entry {
if {$item ne ""} {
for {set i 0} {$i < [llength $item]} {incr i} {
log local0. [lindex $item $i]
}
}
}
}
}
}
[root@ve1110:Active] config cat /var/log/ltm
Feb 14 06:59:34 tmm info tmm[7321]: Rule /Common/myrule : {{/ wls cookie1 pool_internet} {}} {{/docs wls cookie2 pool_internet} {}}
Feb 14 06:59:34 tmm info tmm[7321]: Rule /Common/myrule : {/ wls cookie1 pool_internet} {}
Feb 14 06:59:34 tmm info tmm[7321]: Rule /Common/myrule : /
Feb 14 06:59:34 tmm info tmm[7321]: Rule /Common/myrule : wls
Feb 14 06:59:34 tmm info tmm[7321]: Rule /Common/myrule : cookie1
Feb 14 06:59:34 tmm info tmm[7321]: Rule /Common/myrule : pool_internet
Feb 14 06:59:34 tmm info tmm[7321]: Rule /Common/myrule : {/docs wls cookie2 pool_internet} {}
Feb 14 06:59:34 tmm info tmm[7321]: Rule /Common/myrule : /docs
Feb 14 06:59:34 tmm info tmm[7321]: Rule /Common/myrule : wls
Feb 14 06:59:34 tmm info tmm[7321]: Rule /Common/myrule : cookie2
Feb 14 06:59:34 tmm info tmm[7321]: Rule /Common/myrule : pool_internet