Forum Discussion
dubdub
Nimbostratus
May 03, 2016Persistence across virtuals
Environment: 11.6.0 HF6 on a vCMP guest
I have two virtual servers, one with a persistence profile and one without. I am trying to query the persistence table from an iRule on the VS without a pe...
nitass_89166
Noctilucent
May 03, 2016e.g.
config
root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm virtual one
ltm virtual one {
destination 172.28.24.248:80
ip-protocol tcp
mask 255.255.255.255
persist {
universal {
default yes
}
}
pool foo
profiles {
http { }
tcp { }
}
rules {
ruleone
}
source 0.0.0.0/0
source-address-translation {
type automap
}
vs-index 19
}
root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm virtual two
ltm virtual two {
destination 172.28.24.249:80
ip-protocol tcp
mask 255.255.255.255
pool foo
profiles {
http { }
tcp { }
}
rules {
ruletwo
}
source 0.0.0.0/0
source-address-translation {
type automap
}
vs-index 20
}
[root@ve11c:Active:In Sync] config tmsh list ltm rule ruleone
ltm rule ruleone {
when HTTP_REQUEST {
persist uie [HTTP::path]
log local0. "persist uie [HTTP::path]"
}
}
[root@ve11c:Active:In Sync] config tmsh list ltm rule ruletwo
ltm rule ruletwo {
when HTTP_REQUEST {
log local0. "\[persist lookup uie \"[HTTP::path] any virtual\"\] = [persist lookup uie "[HTTP::path] any virtual"]"
}
}
test
[root@ve11c:Active:In Sync] config tail -f /var/log/ltm
May 3 23:14:20 ve11c info tmm[9061]: Rule /Common/ruleone : persist uie /hello
May 3 23:14:25 ve11c info tmm1[9061]: Rule /Common/ruletwo : [persist lookup uie "/hello any virtual"] = /Common/foo 200.200.200.101 80
dubdub
Nimbostratus
May 03, 2016Hi Nitass,
I was able to try the "any virtual" option, and it did enable me to see the persistence record from the second VS. Thank you very much for the help!
Thanks,
Jen
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
