Forum Discussion
Roman_80473
Nimbostratus
Jun 29, 2011restart pool member from iRule?
Hi folks,
I need to restart a pool member from inside an iRule (using LTM 9.4.8). I detect if a node is down, take it out of the mix, and resend the traffic. That part is working. However, I can't figure out how to restart the node (weblogic server) which went down. We use HP Orchestration service (has a REST webservice to manage servers) to do that remotely, but I don't know if there's a way to invoke a webservice from inside an iRule?
Any help is appreciated.
Thanks Roman
2 Replies
- Colin_Walker_12Historic F5 AccountI suppose it depends on how the webservice needs to be called. Technically in 9.4.8 there isn't a way to just say "Send this HTTP request that I custom formatted to that IP over there". You have to be more tricky about it with custom payloads and HTTP::retry and whatnot.
It might be doable though, depending on what you need to send, and to where. So what does the request you're trying to send look like?
Colin - Roman_80473
Nimbostratus
Colin,
Thank you for speedy response. Since I don't know how to create a SOAPRequest inside iRule, I use a REST-ful webservice which can be invoked via HTTP/HTTPS like this:
http://host.company.com:port/servicename?action=restart&host=host_ip&user=jdoe&passwd=passwd&retry=3, etc. Webservice should restart a server and send back a status. That's pretty much it.
Thanks Roman
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