Forum Discussion
Patrick_Chang_7
Mar 29, 2008Historic F5 Account
How to get server IP when LB_Selected
when HTTP_REQUEST {
set clientIP [IP::client_addr]
}
when LB_SELECTED {
set serverIP [serverside {IP::remote_addr}]
}
when LB_FAILED {
log local0. "LB Failed for client $clientIP and server $serverIP"
}
I am trying to grab the server IP when the the LB selection is made. However, it is saying that IP::remote_addr is undefined in the serverside context at the time of this event. What is the right way to get this?
- The_Bhattman
Nimbostratus
Try thiswhen HTTP_REQUEST { set clientIP [IP::client_addr] } when LB_SELECTED { set serverIP [LB::server addr] } when LB_FAILED { log local0. "LB Failed for client $clientIP and server $serverIP" }
- mycisco_65288
Nimbostratus
LB_ SELECTED
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