Forum Discussion

JP88730K_296639's avatar
JP88730K_296639
Icon for Nimbostratus rankNimbostratus
Nov 07, 2016

Virtual Server Control Page

I’m trying to setup a way for site admins to take virtual servers down for maintenance while still allowing admin access to the site/application. I’m trying to find a solution that can be implemented without changing pool members or take action on the web/application server. Ideally, I’d like to use an iRule to display an html site where admins can select the virtual server status:






  Normal
  Maintenance




I’d like to set the returned, numeric value into a subtable key so another iRule can perform a site status check.

Table set –subtable “maint_status” “[virtual]” 1 indefinite

I'm not sure of the best way to display a website via an iRule and setting the user input into a variable. I know this is a fairly complex project and wanted to see if anyone has any suggestions.

1 Reply

  • Hi,

     

    I think I kind of get what you're looking to do, but I'm not sure that you'd want to tackle this account of coding in an iRule. You could definitely build an iRule that displays a webpage with a form, and have that form post the info on whether a virtual server is in Normal or Maintenance mode, but there will still need to be a receiving application that takes that data and then makes the change on the F5. Plus you'd need a way to query the virtual server(s) and get the status back.

     

    It seems like it would be simpler to have a one-page website that communicates with the F5 via iControlREST and gets and sets the status of the various virtual servers. If you want, you can have the page make a REST call that adds or removes an iRule on a specified virtual server.

     

    -Joel