Forum Discussion
Raynewalk
Sep 17, 2012Nimbostratus
HEX 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
- Kevin_StewartEmployeeAre you trying to convert TO/FROM HEX? Are the client and/or server speaking a binary protocol?
- RaynewalkNimbostratusHi 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_StewartEmployeeI'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.
- RaynewalkNimbostratusOK, I,ll chekc that. Thanks
- RaynewalkNimbostratusOK, I,ll chekc that. Thanks
- hoolioCirrostratusYou should be able to just specify the hex characters in the send and receive strings in an inbuilt TCP or HTTP monitor:
- RaynewalkNimbostratusThat could be very helpful indeed. I will be trying this out tomorrow....
- RaynewalkNimbostratusPosted By hoolio on 09/20/2012 09:26 AM
This 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