Forum Discussion
Thomas_Gobet
Feb 24, 2014Nimbostratus
Hi,
Here is the newest version for your script 🙂
!/bin/bash
$DATE=`date "+%m_%d_%y"`
tmsh show cm failover-status | grep ACTIVE
if [ "$?" = "0" ] ; then
Here we create the ucs archive
tmsh save sys ucs $DATE
Here we copy it to your server
scp /var/local/ucs/$DATE user@ip_server:path
fi
Let me know if it fits your needs.