Technical World

Friday, March 9, 2018

F5 UCS backup to FTP script

# BIG-IP Backup Script
#
# This script automates LTM Backups and saves the files with hostname and date
# off to an FTP server
# version 1.0
# Author: Yusuf
# Original Date: 03/09/18
#save this file to /etc/cron.daily for daily backup
#remember to change permission to read/write/execute using
#chmod 777
tmsh save /sys ucs /var/tmp/BIG-IP_backup
export a='date +"%y%m%d"'
export aa=$HOSTNAME.$a.ucs
export b=/var/tmp/$aa
mv /var/tmp/BIG-IP_backup.ucs $b
tar -cf /var/tmp/certs.tar /config/ssl
export ff=$HOSTNAME.$a.certs.tar
export f=/var/tmp/$ff
mv /var/tmp/certs.tar $f
export c=$HOSTNAME.$a.crontab
export cc=/var/tmp/$c
cp /etc/crontab $cc
export MName=
export Log=/var/tmp/log.bigip
export UserName=
export UserPassword=
export Machine1f2=$aa
export Machine1f3=$c
export Machine1f4=$ff
ftp -nvd ${MName} <&2 > ${Log}
user ${UserName} ${UserPassword}
bin
put ${b} ${Machine1f2}
put ${cc} ${Machine1f3}
put ${f} ${Machine1f4}
quit
END
rm -f ${b}
rm -f ${cc}
rm -f ${f}
RTN_CODE=$?
exit $RTN_CODE

Thursday, December 17, 2015

Checklist while taking delivery of new vehicle in India

• Note the mileage.
• Look over the bodywork.
• Check for leaks under the tank where fuel sensor is inserted, and also the petrol outlet pump, Check for leaks around the kick-shaft, and chain slackness and fill adequate petrol and check for the proper working of fuel sensor.
• Check the Battery:
• Tires: Are all the tires the same
• Look in the glove box. Does it open properly? Does it lock?
• Keys: Do you have more than one set?
• Make sure tire- changing equipment, owner's manual,etc are present
• Rust on the main frame, especially at the welding joints. (Do check at the bottom, where the main stand mates with the frame)
• Check for proper retraction of main and side stand. Sometimes they hang mid-way as springs are faulty.
• Start the motorcycle. Let the motorcycle idle for 2 minutes and check for leakages
• When brakes are engaged lamp should glow. On releasing the brake, the same should be extinguished.
• Headlights (low and high beams), tail lights, emergency flashers, brake lights. Check left and right turn signals (front and back -- you'll need a helper) proper operation, and switch positions Do the lights work correctly?
• Ignition System: Does the motorcycle start properly?
• Listen carefully to engine idle. Does it sound okay?
• Look at the exhaust pipe. Any abnormal smoke or colour? Moisture?
• Check operation of horn.
• Have a look at the engine. Any new fluid leaks? Check the oil and transmission levels yourself.
• Check Chassis number and Engine number of motorcycle matches with the Invoice and or Chalaan.
• Check the Chassis number and Engine number are properly endorsed in the Registration papers and Insurance Papers Collect warranty card of the motorcycle. Check warranty details are properly endorsed and ensure that all free service coupons are in date.
• Collect warranty cards of battery and all accessories. Collect Pollution certificate. This is valid for one year. Check all papers once again
• Ensure/Demand that the motorcycle has at least 2 litre of Petrol in it.
• Check the motorcycle manufacturing month/year