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 advic...
Kevin_Stewart
Employee
Sep 17, 2012I'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.
res=`echo reqfile.txt | nc $1 $2 | grep "somedata"`
The reqfile.txt file would contain your HEX data.There's any number of other utilities in the shell to convert the response to HEX, if that's even necessary. Refer to http://www.sans.org/security-resources/sec560/netcat_cheat_sheet_v1.pdf for netcat commands.
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