Forum Discussion
Nanda_Kumar_676
Nimbostratus
Feb 22, 2010BIGPIPE Command
Hello,
I am not sure if this is the right place to post my question. I am sorry if my question dose not belong here. I have been given a task to generate a list of offline virtual server and its associated pool and pool member details. I know the "bigpipe virtual all show" will list all the details but some tweak is required for only to see the offline virtual server. Right now I am doing a tedious task by manually finding the details. Any help will be greatly appreciated.
7 Replies
- hoolio
Cirrostratus
Hi Joe, - Joe_Pipitone
Nimbostratus
The problem with combining all of the redirect statements into the switch is - see my comment towards the bottom of the script - another subdomain rewrite. If I combine this one with the others above, the redirect only half works. It rewrites the url but does not pass along the uri query string as part of the full url. Unless I use the http::path, it won't work. - Joe_Pipitone
Nimbostratus
Can anyone help with syntax of exiting the HTTP_REQUEST? Or point me in the right direction as far as where to find big-ip docs for this syntax? - hoolio
Cirrostratus
Hi Joe,switch -glob [string tolower [HTTP::uri]] { ...other checks... "/info.aspx" - "/info.aspx\?*" { HTTP::redirect "http://subdomain.ourdomain.com/default.aspx?[HTTP::query]" } }
if {[HTTP::uri] starts_with "/admin" } { HTTP::redirect "http://legacy.domain.com[HTTP::uri]" } elseif {[string tolower [HTTP::host]] eq "www.domain.com"}{ HTTP::redirect "http://domain.com[HTTP::uri]" }
- Joe_Pipitone
Nimbostratus
For example, this code below will not carry over the query if i change HTTP::path to HTTP::uri. It simply rewrites to default.aspx with no query appended.switch [string tolower [HTTP::path]] { "/info.aspx" { HTTP::redirect "http://subdomain.ourdomain.com/default.aspx?[HTTP::query]" } }
- Joe_Pipitone
Nimbostratus
Wow - your trickery works like a charm - thank you very very very much for the help, I can finally put this to bed!
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