F5 iRule assistance

I am having trouble finding a solution for writing an iRule that redirects all traffic to a different pool if the assigned pool is offline. Could anyone assist?

Thanks!

This article might help you:

Niels,

Thank you! I believe this will do the trick! Thanks!