F5 Sites
  • F5.com
  • LearnF5
  • NGINX
  • MyF5
  • Partner Central
Contact
  • Under Attack?
  • F5 Support
  • DevCentral Support
  • F5 Sales
  • NGINX Sales
  • F5 Professional Services
Skip to contentBrand Logo
Forums
CrowdSRC
Articles
Groups
EventsSuggestionsHow Do I...?
RegisterSign In
  1. DevCentral
  2. Articles
  3. Technical Articles

LTM: Interface Failsafe

Nathan McMahon and Kirk Bauer bring us another slick solution for a couple of common requirements in high performance environments: To fail over immediately when a single physical network connection ...
Published Mar 05, 2008
Version 1.0
BIG-IP Access Policy Manager (APM)
news
security
tech tip
Deb_Allen_18's avatar
Deb_Allen_18
Historic F5 Account
Joined September 25, 2004
View Profile
Deb_Allen_18's avatar
Deb_Allen_18
Historic F5 Account
Joined September 25, 2004
View Profile
Vincent_Li_9688's avatar
Vincent_Li_9688
Historic F5 Account
Jan 05, 2011
I have modified the script to avoid potential false failover.

 

 

 

!/bin/bash

 

Copyright 2007 F5 Networks, Inc.

 

Kirk Bauer kirk@f5.com

 

modifed by Vincent Li v.li@f5.com to avoid possible I/O buffer

 

Pass in each interface to monitor via the Arguments field in the GUI

 

Collect arguments (first remove IP and port as we don't use those)

 

shift

 

shift

 

interfaces="$*"

 

b interface show > /tmp/b_interface_show

 

for i in $interfaces ; do

 

status=`b interface $i show | tail -1 | awk '{print $2}'`

 

status=`grep "^ *$i " /tmp/b_interface_show | awk '{print $2}'`

 

if [ "$status" != "UP" ] ; then

 

logger -p local0.notice "$MON_TMPL_NAME: interface $i is not up (status: $status)"

 

exit 1

 

fi

 

done

 

All specified interfaces are up...

 

logger -p local0.notice "$MON_TMPL_NAME: interface $i is up (status: $status)"

 

echo "up"

 

exit 0

 

ABOUT DEVCENTRAL

DevCentral NewsTechnical ForumTechnical ArticlesTechnical CrowdSRCCommunity GuidelinesDevCentral EULAGet a Developer Lab LicenseBecome a DevCentral MVP

RESOURCES

Product DocumentationWhite PapersGlossaryCustomer StoriesWebinarsFree Online CoursesF5 CertificationLearnF5 Training

SUPPORT

Manage SubscriptionsProfessional ServicesProfessional ServicesCreate a Service RequestSoftware DownloadsSupport Portal

PARTNERS

Find a Reseller PartnerTechnology AlliancesBecome an F5 PartnerLogin to Partner Central

F5 logo©2024 F5, Inc. All rights reserved.
TrademarksPoliciesPrivacyCalifornia PrivacyDo Not Sell My Personal Information