Forum Discussion
DeVon_Jarvis
Altostratus
Oct 16, 2009DHCP Health Monitor??
We are setting up LTM to load balance Windows DHCP (Unicast only, forwarded from Cisco Routers via BOOTP Helper address). I need to health check the two DHCP servers in the pool. I did a search and fo...
hwidjaja_37598
Altostratus
May 18, 2010As an alternative, you can also set $Ether dynamically:
my $Ether = $1
if ( (qx"/sbin/ip route get $Server" =~ /dev\s+([^\s]+)/)
&& (qx"/usr/bin/b vlan $1 " =~ /(([0-9a-f]{2}[:\s]){6})/i) );
Add it after $Server is set (eg. line 266), example:
Read arguments
my $Server = $ARGV[0];
$Server =~ s/::ffff://; Add here
my $Ether = $1
if ( (qx"/sbin/ip route get $Server" =~ /dev\s+([^\s]+)/)
&& (qx"/usr/bin/b vlan $1 " =~ /(([0-9a-f]{2}[:\s]){6})/i) );
Port not used
my $port = $ARGV[1];
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