Forum Discussion
hirox_127495
Dec 05, 2006Historic F5 Account
Getting server port number
I just want to get server port when I use ASM.
Normally, without ASM, we can use SERVER_CONNECTED event to do it for example. Like this.
when SERVER_CONNECTED {
log local0. "[TCP::server_p...
hoolio
Cirrostratus
Dec 05, 2006What version and hotfix are you running (b version; ls -latr /hotfix)? There have been a lot of changes between the versions.
I think this should work for most versions of the _ASM_clientside rule:
when HTTP_REQUEST_SEND {
log local0. "tmm_ts_lbserver: $tmm_ts_lbserver / [lindex $tmm_ts_lbserver 4]"
}Specifically, [lindex $tmm_ts_lbserver 4] should get you the pool member's port.
What are you actually trying to do though? If you're trying to modify the pool the request is sent to, you should consider upgrading to 9.2.4 to take advantage of the changes in priority in the events in the _ASM_clientside rule. Actually, you should consider upgrading to 9.2.4 regardless, as there have been a lot of important ASM-related fixes built into the latest version.
Here's a post that provides a bit more detail on the new functionality in 9.2.4 for iRules (Click here).
Aaron
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
