Forum Discussion
Thales_92506
Nimbostratus
May 14, 2012iRule to restart a server (pool member) when marked down
Is there a way that an iRule can restart a server (pool member) when it is marked down?
By sending a restart command or anything like that..
Thanks
4 Replies
- Michael_Yates
Nimbostratus
Hi Thales,
The functionality that you are describing would best be contained within the Server Health Check and not an iRule.
iRules are event driven, so a client would have to hit the Virtual Server that the iRule was applied to and then the iRule would have to trigger an event like actvive_members in order to detect the status of the pool members.
You can always submit a feature request to F5. I can see where it would be something useful...
Hope this helps. - Anthony_Graber
Employee
You could configure an external monitor that could connect to the server and restart it when the monitor fails.
https://devcentral.f5.com/wiki/advdesignconfig.ExternalMonitor.ashx - Thales_92506
Nimbostratus
Ok. In case of a get eav (https://devcentral.f5.com/wiki/AdvDesignConfig.HTTPMonitor_cURL_BasicGET.ashx), how could i connect to the server and send this command? - Pawel_Kwasniewi
Nimbostratus
Thales,
in the example you provided linux command:
curl -fNs http://${IP}:${PORT}${URI} | grep -i "${RECV}" 2>&1 > /dev/null
is used.
Unfortunatelly you can't reboot the server useng "curl".
You would have to create script in ie. bash which will login to the server and perform reboot.
Pawel.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
