Forum Discussion
Get Active/Standby Device in iRule
Is there a simple way to determine if a device is standby in an iRule? I have a unique requirement with a virtual that has to be in the local-only traffic group, but also need to determine if the device is active.
- Andy_McGrathCumulonimbus
A few points on this:
-
iRules run within TMM as a traffic event process and have no direct access to the underlying F5 system, only get the data provided from pre-defined commands and events.
-
If you assign a Virtual Server to the
traffic group it will always, as long as TMM is running, be seen as active as each traffic group holds its own HA state. Also if thelocal-only
was not in antraffic-group
state it wouldn't process traffic and so you iRule would never be executed.active
Like Vijay said maybe give a little more info on what you are trying to accomplish and see if someone on here can help.
-
- Vijay_ECirrus
Sorry, I am not giving you a straightforward answer but have you tried looking into watch command, script run or iCall
Maybe if you can explain why you need to find the device status, someone might be able to provide an alternate solution to using iRule.
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