Forum Discussion
vallesm77_95699
Feb 14, 2012Nimbostratus
foreach v11
hello,
I want to check in dataGroup the correspondence between URI and all records to my DataGroup
foreach entry [class get $ActionBasedOnUrl] {
log local0. "...
nitass
Feb 14, 2012Employee
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
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