Forum Discussion
Brian_Gupta_115
Nimbostratus
Nov 04, 2005Debugging a rule...
For some reason, my browser is having to request a certain URL 5 times before the BigIP sends the request... (please note this only happens the first time the browser requests the document.)
-Bria...
Brian_Gupta_115
Nimbostratus
Nov 04, 2005I added log statements for LB_SELECTED and SERVER_CONNECTED. Note: It is taking about 30 seconds for the BigIP to connect to the server.
-Brian
Nov 4 16:17:26 tmm tmm[14602]: 01220002:6: Rule psoft_parse : /psreports/PSUNX/14064/.stdout
Nov 4 16:17:26 tmm tmm[14602]: 01220002:6: Rule psoft_parse : /psreports/psunx/14064/.stdout
Nov 4 16:17:42 tmm tmm[14602]: 01220002:6: Rule psoft_parse : /psreports/PSUNX/14064/.stdout
Nov 4 16:17:42 tmm tmm[14602]: 01220002:6: Rule psoft_parse : /psreports/psunx/14064/.stdout
Nov 4 16:17:58 tmm tmm[14602]: 01220002:6: Rule psoft_parse : /psreports/PSUNX/14064/.stdout
Nov 4 16:17:58 tmm tmm[14602]: 01220002:6: Rule psoft_parse : /psreports/psunx/14064/.stdout
Nov 4 16:17:58 tmm tmm[14602]: 01220002:6: Rule psoft_parse : /psreports/psunx/14064/.stdout
Nov 4 16:17:58 tmm tmm[14602]: 01220002:6: Rule psoft_parse : /psreports/psunx/14064/.stdout
Nov 4 16:18:00 tmm tmm[14602]: 01220002: repeated 6 times
when HTTP_REQUEST {
set my_uri [string tolower [HTTP::uri]]
set usessl 0
if { $my_uri starts_with "/servlets/iclientservlet/hr" } {
redirect to "/hr"
} elseif { $my_uri starts_with "/servlets/iclientservlet/selfservice" } {
redirect to "/selfservice"
} elseif { $my_uri == "/hr" } {
redirect to "/HR/signon.html"
} elseif { $my_uri == "/selfservice" } {
redirect to "/SELFSERVICE/signon.html"
} elseif { $my_uri == "/payroll" } {
redirect to "/PAYROLL/signon.html"
} elseif { $my_uri == "/finti" } {
redirect to "/FINTI/signon.html"
} elseif { $my_uri == "/finspc" } {
redirect to "/FINSPC/signon.html"
} elseif { $my_uri contains "/finti/?cmd=login" } {
redirect to "/psp/PAEP/?cmd=login"
} elseif { $my_uri contains "/finspc/?cmd=login" } {
redirect to "/psp/PAEP/?cmd=login"
} elseif { $my_uri contains "/crmp/?cmd=login" } {
redirect to "/psp/PAEP/?cmd=login"
} elseif { $my_uri == "/paep" } {
redirect to "/PAEP/signon.html"
} elseif { $my_uri == "/crmp" } {
redirect to "/CRMP/signon.html"
} elseif { [matchclass $my_uri contains $::ps_portal_uris] } {
pool ps_pa_ssl
snat none
set usessl 1
} elseif { [matchclass $my_uri contains $::ps_rpt_hrms_uris] } {
pool ps_rpt_hrms_ssl
set usessl 1
} elseif { [matchclass $my_uri contains $::ps_rpt_fin_uris] } {
pool ps_rpt_fin_ssl
log [HTTP::uri]
set usessl 1
} elseif { [matchclass $my_uri contains $::ps_rpt_crm_uris] } {
pool ps_rpt_crm
} elseif { [matchclass $my_uri contains $::ps_hrms_uris] } {
pool ps_hrms_ssl_prod
set usessl 1
} elseif { [matchclass $my_uri contains $::ps_fin_uris] } {
pool ps_fin_ssl_prod
set usessl 1
} elseif { [matchclass $my_uri contains $::ps_crm_uris] } {
pool ps_crm_ssl
snat none
set usessl 1
} elseif { [matchclass $my_uri contains $::ps_gwib_uris] } {
pool ps_hrms_ssl_prod
snat none
set usessl 1
} elseif { [matchclass $my_uri contains $::ps_gwam_uris] } {
pool ps_fin_ssl_prod
snat none
set usessl 1
} else {
reject
}
}
when SERVER_CONNECTED {
if { $usessl == 0 } {
SSL::disable
}
if { [matchclass $my_uri contains $::ps_rpt_fin_uris] } {
log $my_uri
}
}
when HTTP_REQUEST_SEND {
if { [matchclass $my_uri contains $::ps_rpt_fin_uris] } {
log $my_uri
}
}
when HTTP_RESPONSE {
if { [matchclass $my_uri contains $::ps_rpt_fin_uris] } {
log $my_uri
}
}
when HTTP_RESPONSE_CONTINUE {
if { [matchclass $my_uri contains $::ps_rpt_fin_uris] } {
log $my_uri
}
}
when LB_SELECTED {
if { [matchclass $my_uri contains $::ps_rpt_fin_uris] } {
log $my_uri
}
}
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