F5 LTM 10.2.4 or later配置备份脚本

F5 LTM 配置备份脚本

note:适用于bigip ltm software 10.2.4 or later

 1 #!/bin/bash
 2 #description: This script is only used for 
 3 #bigip 11.3 or later
 4 file="$HOSTNAME"_`date  +%Y%m%d%H%M`_after
 5 tmsh save sys ucs $file
 6 if [ $? -eq 0 ];then
 7     echo "-------------------config backup is completed-----------------------"
 8 else
 9     echo "Please see the error log in the /var/log/ltm"
10 fi
11 echo "-----------------check the file------------------------------------"
12 [ -f "/var/local/ucs/"$file".ucs" ] &&  ls /var/local/ucs/$file.ucs || echo "No such file,something is wrong"
13 echo "-------------------------------------------------------------------"

 

posted on 2017-03-03 12:03  流浪的大熊猫  阅读(400)  评论(0编辑  收藏  举报

导航