For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Macaron's avatar
Macaron
Icon for Nimbostratus rankNimbostratus
Sep 07, 2017

f5 maintenance page when LB_Failed using iFiles

Hi, I Created an HTML maintenance page and want to call it in iRule using iFiles. I am not using HTTP profile with VIP. Can someone please help how can I call maintenance page using iFile.

My iRule is:

When LB_Failed {

  if {[active_members [LB::server pool]] <1 } {
  content [ifile get maintenance_page]
  }}

1 Reply

  • P_K's avatar
    P_K
    Icon for Altostratus rankAltostratus

    Try this

     

    when LB_FAILED {

     

    if {[active_members [LB::server pool]] <1 } {

     

    HTTP::respond 200 content [ifile get "Maintenance_Page_Name"] }

     

    }

     

    Note: You should upload your html file onto BigIP before calling it using iFile.