Forum Discussion
Jeremy_Bridges_
Nimbostratus
Aug 21, 2009Custom TCP Monitor
I am looking to do some custom TCP monitoring with a custom application that we need to monitor with the F5. Essentially, the application's thread handling logic will hang unless a specific set of se...
Jeremy_Bridges_
Nimbostratus
Sep 03, 2009Thanks for the tip about echo adding a newline character. I didn't know that. After I added the "\c" to the input it worked fine. In experimenting with it I ended up doing what you described: putting the escaped chars in a string and then coverting them to their actual chars using echo:
input="FDCB\x1F\x00\x00\x00Service=RC_SERVICE\x1ECommand=Ping\x00\x00\x00\x00\c"
output=$(echo -e $input | nc $ip $port -w 5)
Again, thanks for your help! I have attached the full script for anyone's future use. Let me know if you think there should be any further optimizations or changes.
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