Forum Discussion
Lee_Sutcliffe
Aug 23, 2018Nacreous
You can use the virtual command to return the name of the VS
when HTTP_REQUEST {
log local0. "Current virtual server name: [virtual name]"
}
https://devcentral.f5.com/wiki/iRules.virtual.ashx
You can use [LB::server pool] to return the selected pool, assuming one has been selected.
when CLIENT_ACCEPTED {
Save the name of the VIP's default pool
set default_pool [LB::server pool]
}