This most likely wont work..
#< ensuring both F5's configs are in sync
a='echo b failover!'
b='The failover state is ACTIVE.'
echo b failover | sh
if [ "$a eq "$b""]
b config sync
Since I have no experience with Big-ip, I'm not very good at communicating with any of the nodes, but something like this migth get you further:
# script to check if backup node is active and in sync with master node
# get ACTIVE or anything else from the node
if [ "$ACTIVE"x != x ]; then
# there is a value stored in $ACTIVE
case "$ACTIVE" in
"The failover state is ACTIVE.")
logger -t Big-ip -p local3.info "Syncing the two nodes config"
bigip config sync
# Anything which dosn't match our criteria
logger -t Big-ip -p local0.notice "Unexpected return from failover check: $ACTIVE"
# $ACTIVE contains nothing, perhaps an error ??
logger -t Big-ip -p local0.notice "Unexpected NULL from failover check"
Look at the logger(1) program:
In addition, if I can be so cheeky If I would like to send success or failure to syslogger???
logger - a shell command interface to the syslog(3) system log module
logger [-isd] [-f file] [-p pri] [-t tag] [-u socket] [message ...]