Forum Discussion
Jon_Macy
Altostratus
Feb 09, 2018Virtual Server IP Address in SERVER_DATA event
We have a straight up load balancing VS for UDP DNS running on an LTM license. To meet some logging and analytic requirements, I want to include the IP address of the VS inside the SERVER_DATA event...
crodriguez
Feb 09, 2018Ret. Employee
You don't need a global variable to pass the virtual server IP address from the CLIENT_DATA event to the SERVER_DATA event. A local variable will work just fine. For example:
when CLIENT_DATA { set vipAddress [IP::local_addr] }
when SERVER_DATA { log local0. "Client is connected to $vipAddress" }
In other words, set variable vipAddress on the CLIENT_DATA event, and refer to the variable as $vipAddress on the SERVER_DATA event.
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