for i in `cat $CONFIG`; do echo -n "." MODULE=`echo $i | cut -d";" -f1` CONTEXT=`echo $i | cut -d";" -f2` LONGdate=`date +%F_%H-%M-%S` if wget -q --no-check-certificate --user=my_user_name --password=my_password https://$MODULE/admin/exec/changeto%20context%20$CONTEXT/show%20running-config/$MODULE.$CONTEXT.$LONGdate; then mv $MODULE.$CONTEXT.$LONGdate $SHORTdate/ else HADERROR=true fi echo -n "." done
if $HADERROR;then echo " finished, with at least one error." ERRMSG=`echo "FAckup is running on host : " && hostname` echo $ERRMSG > $ERRLETTER ERRMSG=`echo "FAckup is working in directory : " && pwd` echo $ERRMSG >> $ERRLETTER ERRMSG=`echo "FAckup is working for date : $SHORTdate"` echo $ERRMSG >> $ERRLETTER mail -s "FAckup ERROR !" email@example.com < $ERRLETTER else echo " finished, without error." ERRMSG=`echo "May the Force be with you ..."` echo $ERRMSG > $ERRLETTER echo "" >> $ERRLETTER mail -s "FAckup SUCCESS !" firstname.lastname@example.org < $ERRLETTER fi rm -f $ERRLETTER
echo "FAckup is now compressing result files ..."
LONGdate=`date +%F_%H-%M-%S` tar zcvf $LONGdate.tar.gz $SHORTdate/ rm -rf $SHORTdate
echo "FAckup housekeeping, done."
if $HADERROR;then exit 2 fi
If you have suggestions to enhance script, do not hesitate to post !
We have many Nexus 3064 switches that have high CPU utilization. The graph minute and hourly graphs show it. We are on version 6.0(2)U6(6). What can be the root cause and how do I fix it? # sh proc cpu s | ex 0.0Please note tha...
Hi Freinds lets Consider the sd-wan controller will be deployed on-premise , with 2 x Transport ( MPLS and INET) each cEdge sits behind ASA , Cisco ASA perform 1 to 1 static NATING for the cEdge in order to provide Reachibility over INET vB...
Cisco helps build IT agility and business resiliency by introducing new technology innovations that help
Respond and adapt to disruptions
Accelerate your digital journey and cloud adoption
Transform your operating model with insights and automatio...
Oct 20, 2020 is an inspirational date for many of us in networking industry to be proud of. It is the birthday of Cisco Catalyst 8500 Series Edge Platforms – one of the most powerful purpose-built SD-WAN Edge platforms ever, making up to 60Gbps throughput...
Hi, Hope this can help someone. To connect local network storage, mine is DS1817+. Create port forward and connect thru internet.Do reply here if you have better or easier configuration! =D Configuration on Cisco Router:ip nat inside source stat...