Forum Discussion
Universal Persistence w. AS3 vs. SCF - the same but not the same
- May 21, 2025
Never mind, I managed to figure it out on my own.
Option 1: Use the REST API:
daniel@ubuntu-vm:~$ curl -sk -u admin:<password> GET https://172.31.254.240/mgmt/tm/ltm/persistence/persist-records | jq.exe . -M
{
"kind": "tm:ltm:persistence:persist-records:persist-recordsstats",
"selfLink": "https://localhost/mgmt/tm/ltm/persistence/persist-records?ver=17.1.2.1",
"apiRawValues": {
"apiAnonymous": "Sys::Persistent Connections\nuniversal 12345abcde 10.100.155.182:80 10.100.153.127:80 (tmm: 1)\nuniversal abcde12345 10.100.155.182:80 10.100.153.126:80 (tmm: 0)\nTotal records returned: 2\n"
}
}Option 2: Don't be me... change to the right partition
root@(bigip)(cfg-sync Standalone)(Active)(/Common)(tmos)# cd /universal_persist_jsessionid/
root@(bigip)(cfg-sync Standalone)(Active)(/universal_persist_jsessionid)(tmos)# show ltm persistence persist-records
Sys::Persistent Connections
universal 12345abcde 10.100.155.182:80 10.100.153.127:80 (tmm: 1)
universal abcde12345 10.100.155.182:80 10.100.153.126:80 (tmm: 0)
Total records returned: 2
Have you checked that irule is applied on Virtual Server correctly?
Have not played a lot with AS3, but shouldn't you apply irule also under "service_http_80"?
for example
"service_http_80": {
"persistenceMethods": [{
"use": "uie_jsessionid"
}
],
"iRules": ["persist_irule"],
"pool": "pl_persistence_test",
"translateServerAddress": true,
"translateServerPort": true,
"class": "Service_HTTP",
..........
..........
Thanks Injeyan_Kostas, but that is not the issue.
When using Universal Persistence the iRule is applied to the persistence profile, not to the virtual.
I can also see from the statistics that the iRule is executed. No tcl errors in /var/log/ltm either.
- Injeyan_KostasMay 21, 2025
Nacreous
Hmm, you are totally right. my bad
Recent Discussions
Related Content
* 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