BigIP LTM 9.0.0--10.2.4 配置备份脚本
F5 LTM 配置备份脚本
note:适用于bigip ltm software 9.0.0---10.2.4
#!/bin/bash #Description: This script is only used for bigip 10.2.4 or older #DATE 20170303 #AUTHOR HUANGJianPeng file="$HOSTNAME"_`date +%Y%m%d%H%M`_backup echo -e "-----------------config backup is running--------------------------" b config save $file if [ $? -eq 0 ];then echo "-----------------config backup is completed-----------------------" else echo "Please see the error log in the /var/log/ltm" fi echo "-----------------check the file----------------------------------" [ -f "/var/local/ucs/"$file".ucs" ] && ls /var/local/ucs/$file.ucs || echo "No such file,something is wrong" echo "-----------------------------------------------------------------"