Forum Discussion
Raynewalk
Nimbostratus
Sep 17, 2012HEX definition in an irule
We want to build an irule that sends HEX to a server and checks the reponse back in HEX. Base don this we want to build a health monitor to mark the server as up or down.
Grateful for any advice or exmaples.
Cheers
8 Replies
Sort By
- Kevin_Stewart
Employee
Are you trying to convert TO/FROM HEX? Are the client and/or server speaking a binary protocol? - Raynewalk
Nimbostratus
Hi Kevin, Our server applicaitionn guy tells us that the application to be monitored uses EBCDIC so he has supplied a HEX string to input and an expected response in HEX that confirms the server is healthy. So the question is how to form that raw HEX into an irule that quirts this at the server and interprets the response. - Kevin_Stewart
Employee
I'm assuming you're only talking about monitoring the app, so there's probably several ways to do this. First and foremost, you wouldn't need an iRule if you can poll the server directly from a scripted monitor. Take a look at something like netcat in the shell. Modify one of the sample monitor scripts in /config/monitors. - Raynewalk
Nimbostratus
OK, I,ll chekc that. Thanks - Raynewalk
Nimbostratus
OK, I,ll chekc that. Thanks - hoolio
Cirrostratus
You should be able to just specify the hex characters in the send and receive strings in an inbuilt TCP or HTTP monitor: - Raynewalk
Nimbostratus
That could be very helpful indeed. I will be trying this out tomorrow.... - Raynewalk
Nimbostratus
Posted By hoolio on 09/20/2012 09:26 AMThis worked perfectly. We found we had to precede each HEX character in the string with the escape sequence although we did not try stringing them all together without any gaps, which may have worked.
cheers
Greg
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