Forum Discussion
James_Ramsey_10
Nimbostratus
Jul 15, 2005JRUN - Error from Server
I am new to F5, and I want to write an I-Rule to detect 3 JRUN Errors, and then fail the server. How would I do this..
Thanks
- You are going to have to supply some more information as we don't have in depth knowledge of JRUN errors. What protocol are you running this over (HTTP, custom, etc)? What signifies an error? Is it a protocol level status code like and HTTP 500 error? Or is it something in the payload that you need to parse out? iRules makes it very easy to search response content but you have to know what you are looking for first. Text streams are easier, binary streams are doable as well but a bit more tricky to write.
- James_Ramsey_10
Nimbostratus
We are looking for the word JRUN, in the http request. - So you are looking for error codes in the connection from the client to the server? Usually error codes are responses from the servers. If this is the case, you can do a HTTP::collect in the HTTP_REQUEST event. This will trigger the HTTP_REQUEST_DATA event to be called when the system has collected the specified amount of data from the client. You can then access the HTTP::payload and search as you would with any other string.
- James_Ramsey_10
Nimbostratus
The errors come from the server, if the application is too busy. I will search the forums and view some of the examples. - So it's not in the request but in the response. Check out this thread for an example of examining the HTTP Response's payload.
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