F5 Load Balancer

Updated March 9, 2021. Written for LMS Version 6.2.

This document describes how to detect Active and Standby states on an F5 load balancer.

Configure Port

Configure a port on the Local Manager using Enhanced Native Mode. The following settings may need to be adjusted for your specific device:

command prompt [[#>]]: #
login prompt [sername:\s]: login:\s
password prompt [ssword:\s]: 
logout command [exit\r]: 
wakeup command [\r]: 

Install Rules

Copy and paste the following rules and ruleset into the Local Manager.

config rule no F5info
conf rule F5info
description This rule runs failover show and collects the result into the F5ActiveInfo monitor variable
conditions
true
exit
action execute -command "b failover show" -pattern "FAILOVER (\D\D\D\D\D\D)" -setValue monitor F5ActiveInfo $1 
exit


conf rule no F5info1
conf rule F5info1
conditions
compare-value monitor F5ActiveInfo = active
exit
action writeStatus "Active"
exit


conf rule no F5info2
conf rule F5info2
conditions
compare-value monitor F5ActiveInfo = standb
exit
action writeStatus "Standby"
exit


config rule no F5prime1
config rule F5prime1
conditions
NOT has-value monitor F5state AND
compare-value monitor F5ActiveInfo = active
exit
action setValue monitor F5state active
exit


config rule no F5prime2
config rule F5prime2
conditions
NOT has-value monitor F5state AND
compare-value monitor F5ActiveInfo = standb
exit
action setValue monitor F5state standb
exit


config rule no F5becameActive
config rule F5becameActive
conditions
compare-value monitor F5ActiveInfo = active AND
compare-value monitor F5state = standb
exit
action setValue monitor F5state active
action alarm GENERIC -a "F5 changed to ACTIVE"
exit


config rule no F5becameStandby
config rule F5becameStandby
conditions
compare-value monitor F5ActiveInfo = standb AND
compare-value monitor F5state = active
exit
action setValue monitor F5state standb
action alarm GENERIC -a "F5 changed to STANDBY"
exit


config ruleset F5infoRules
rules
F5info | F5info1 | F5info2 | F5prime1 | F5prime2 | F5becameActive | F5becameStandby
exit
exit

Configure Monitor

Use the config monitor command to add a monitor and attach the newly created ruleset.

Not finding what you're looking for?

The Uplogix Technical Support team is standing by 24/7/365 to answer any questions you may have about the installation, configuration, and usage of our products. Give us a call at 888.663.6869 or email us at support@uplogix.com.

About Uplogix

Uplogix is the most evolved out-of-band solution on the market. Our intelligent console server monitors network devices and takes actions directly over the console port, like an onsite technician plugging in a laptop.

Want to find out how Uplogix can help manage your network? Drop us a note!

Learn more:

Solutions Products Resource Center About Us Schedule a demo

© 2022 Uplogix, Inc., All Rights Reserved.

Contact Uplogix Support
+1 (888) 663-6869
+1 (512) 857-7070
Sales Assistance
General Inquiries