Configure the Tape Library in Linux

Configure the Tape Library in Linux

To check autoloader/library detected or not, give command root@indiangnu.org:/home/arun# cat /proc/scsi/scsi If it is not show changer, Do following steps Check the version of Redhat Linux If it is Redhat Linux 3 Add following line in /etc/modules.conf “options scsi_mod max_luns=255” “options scsi_mod scsi_noreportlun=1” If it is Redhat Linux 4 Add following line in /etc/modprobe.conf “options …

Read More Read More

Shell script to monitor or watch the disk space

Shell script to monitor or watch the disk space

#!/bin/sh # Shell script to monitor or watch the disk space # It will send an email to $ADMIN, if the (free avilable) percentage # of space is >= 90% # ————————————————————————- # Linux shell script to watch disk space (should work on other UNIX oses ) # SEE URL: http://www.indiangnu.org # set admin email …

Read More Read More

Shell script to monitor running services such as web/http, ssh, mail etc.

Shell script to monitor running services such as web/http, ssh, mail etc.

#!/bin/bash # Shell script to monitor running services such as web/http, ssh, mail etc. # If service fails it will send an Email to ADMIN user # ————————————————————————- # See URL for more info # http://www.indiangnu.org # ————————————————— # service port ports=”22 80 25″ # service names as per above ports service=”SSH WEB MAIL” # …

Read More Read More

Start & stop oracle service

Start & stop oracle service

This script is useful for start and stop oracle services in *nix OS. Put this script in /etc/init.d/ with name oracle-start-stop-service.sh & change its permission to 555 (-r-xr-xr-x). ==================== #!/bin/bash # oracle-start-stop-service.sh # Run level script to start Oracle 10g services on RedHat Enterprise Linux (RHAS 4) # Script should work on other UNIX like …

Read More Read More

Quick editing of a command

Quick editing of a command

Sometimes when you try to execute a long command, it scrolls beyond the screen. Then if you want to modify the command and re-execute it, there is an easy way for it. Just type “fc” which will load the command in your default editor; in my case vi. Now you can modify the command in …

Read More Read More

Denial of Service (DoS)

Denial of Service (DoS)

Introduction – Denial of Service (DoS) attack is an attack in which one user takes up so much or maximum resources that none of the resources is left for other users. Denial of services (DOS) attack compromise the availability of resources. Those resources can be processes, disk space, % of CPU, Printer paper, modems or …

Read More Read More

Subversion (svn/cvs) repository backup script

Subversion (svn/cvs) repository backup script

By using this script we can take HOT backup and dump of subversion repository. root@indiangnu.org:/home/arun# cat SVN-Backup.sh #!/bin/bash echo -e “Welocme to Subversion Backup utility by Arun Bagul” echo -e “————————————————————–” BACKUP_DIR=”/root/SVN_DB_Backup” choice=$1 repository_path=$2 dest_name=$3 mydate=$(date +%d-%b-%Y) SVNadmin=$(which svnadmin) SVNlook=$(which svnlook) ####################### if [ -d $BACKUP_DIR ]; then echo “Backup directory $BACKUP_DIR exist” echo -e …

Read More Read More

UMASK – set file mode creation mask

UMASK – set file mode creation mask

UMASK is a UNIX environment variable which automatically sets file permissions on newly created files. The UMASK variable can be confusing to use, because it does work as a mask. In other words, you set the permissions that you do not want in the UMASK. To calculate permissions which will result from specific UMASK values, …

Read More Read More

RAID 0+1 — Optimize for Performance and Redundancy

RAID 0+1 — Optimize for Performance and Redundancy

RAID (Redundant Array of Independent Disks) is a set of technology standards for teaming disk drives to improve fault tolerance and performance. RAID Levels Level Name 0 Striping 1 Mirroring 2 Parallel Access with Specialized Disks 3 Synchronous Access with Dedicated Parity Disk 4 Independent Access with Dedicated Parity Disk 5 Independent Access with Distributed …

Read More Read More