Forum Discussion
hooleylist
Mar 09, 2010Cirrostratus
One thing to add is handling for IPv6 addresses that LTM uses internally:
http://devcentral.f5.com/wiki/default.aspx/AdvDesignConfig/HTTPMonitor_cURL_BasicGET.html
these arguments supplied automatically for all external monitors:
$1 = IP (IPv6 notation. IPv4 addresses are passed in the form
::ffff:w.x.y.z
where "w.x.y.z" is the IPv4 address)
$2 = port (decimal, host byte order)
remove IPv6/IPv4 compatibility prefix (LTM passes addresses in IPv6 format)
IP=`echo ${1} | sed 's/::ffff://'`
PORT=${2}
This is bash, but you could do something similar with perl to strip off the ::ffff: prefix.
Aaron