rohitbarolia_28
Jan 22, 2018Nimbostratus
How to schedule script on F5 unit.
Hello.. We are having F5 boxes (LTM/GTM). We have prepared below script to send an email if the CONFIG-STATUS is not SYNC then send an email to our DL. We do not have a testing environment. Can someone assist us how to schedule the below script to run every 12 hours or once in every 24 hours.
!/usr/bin/bashcol=
tmsh show /cm sync-status | grep Color | awk -F" " '{print $2}'
HOSTNAME=grep HOSTNAME /etc/sysconfig/network | awk -F"=" '{print $2}'
if [ $col != $ACTIVE ];
then
echo "Sync is not working."| mailx -s "SYNC Alert from $HOSTNAME" $EMAIL
fi