Forum Discussion
How iRule get Destination IP of Virtual server?
Hi Phong,
there is no build-in command available to resolve a given Virtual Server name to its IP address. But you could write an iCall script to periodically enumerate your LTM configuration and create/update an internal data-group with Key=VSName and Value=VSIP.
Note: I've published an iCall script on CodeShare that created a data-group to resolve Node_IPs to Node_Names. The code can be very easily recycled to resolve VS_Name to VS_IP. Let me know if you have troubles to modify the iCall script as needed...
https://devcentral.f5.com/codeshare/periodic-icall-script-to-auto-generate-nodeip-to-nodename-datagroup-969
Cheers, Kai
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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