Forum Discussion

Roman_80473's avatar
Roman_80473
Icon for Nimbostratus rankNimbostratus
Jun 29, 2011

restart 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
  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    I 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
  • 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