Forum Discussion
DDA_176163
Nimbostratus
Aug 23, 2018iRule able to ask what Virtual it's running on?
My question is: In iRules, is there a way for a running iRule to return the name or names of the VIP or Pool (name or ID)?
What sort of call would it be? Maybe a simple example?
We're tryi...
youssef1
Cumulonimbus
Aug 23, 2018Hello,
you can do this simply (If in understand your need):
when HTTP_RESPONSE {
log local0. "VS Name: [virtual]"
serverside {
log local0. "pool member IP: [serverside {IP::remote_addr}]:[serverside {IP::remote_port}]"
}
}
So using this irule you can retrieve Pool memeber that you reach an VS that you use for each request.
If you give me more details about your need keep me in touch.
Regards
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
