Forum Discussion
vallesm77_95699
Nimbostratus
Feb 14, 2012foreach 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
Employee
Feb 14, 2012is there anything i missed?
root@ve1110(Active)(/Common)(tmos) list ltm data-group internal ActionBasedOnUrl
ltm data-group internal ActionBasedOnUrl {
records {
/hungry {
data go-7-11
}
/sleepy {
data go-home
}
}
type string
}
root@ve1110(Active)(/Common)(tmos) list ltm rule myrule
ltm rule myrule {
when RULE_INIT {
log local0. "\[class get ActionBasedOnUrl\]: [class get ActionBasedOnUrl]"
foreach entry [class get ActionBasedOnUrl] {
log local0. "\[getfield $entry \" \" 1\]: [getfield $entry " " 1]"
}
}
}
[root@ve1110:Active] config cat /var/log/ltm
Feb 14 06:07:37 tmm info tmm[7321]: Rule /Common/myrule : [class get ActionBasedOnUrl]: {/hungry go-7-11} {/sleepy go-home}
Feb 14 06:07:37 tmm info tmm[7321]: Rule /Common/myrule : [getfield /hungry go-7-11 " " 1]: /hungry
Feb 14 06:07:37 tmm info tmm[7321]: Rule /Common/myrule : [getfield /sleepy go-home " " 1]: /sleepy
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