Categories

Buy Ipad at a Cheap price

Latest Book

Learn Shell Scripting

Apache cookbook

Effective awk Programming

Definitive Centos Guide

The Linux bible 2011

Linux Interview Questions

Linux Sys Admin Questions

INFORMATION SECURITY SPECIALIST

JAVA / J2EE Interview Questions

Hadoop

Azkaban startup script

var AdBrite_Title_Color = ’0000FF’; var AdBrite_Text_Color = ’000000′; var AdBrite_Background_Color = ‘FFFFFF’; var AdBrite_Border_Color = ‘CCCCCC’; var AdBrite_URL_Color = ’008000′; try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==”?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe=”;var AdBrite_Referrer=”;} document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(‘ src=”http://ads.adbrite.com/mb/text_group.php?sid=2153438&zs=3732385f3930&ifr=’+AdBrite_Iframe+’&ref=’+AdBrite_Referrer+’” type=”text/javascript”>’);document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));

#!/bin/bash #Azkaban startup script #Author: dpathak #chkconfig: 2345 80 05 #description: Azkaban #Version 1.0 #Release date: 2011-10-18 2:15 PM # Install: #vi azkaban into /etc/init.d #chmod [...]

Hadoop

Hadoop install script

var AdBrite_Title_Color = ’0000FF’; var AdBrite_Text_Color = ’000000′; var AdBrite_Background_Color = ‘FFFFFF’; var AdBrite_Border_Color = ‘CCCCCC’; var AdBrite_URL_Color = ’008000′; try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==”?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe=”;var AdBrite_Referrer=”;} document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(‘ src=”http://ads.adbrite.com/mb/text_group.php?sid=2153438&zs=3732385f3930&ifr=’+AdBrite_Iframe+’&ref=’+AdBrite_Referrer+’” type=”text/javascript”>’);document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62)); ### This script to help automate and speed up Hadoop install in cluster environment… #!/bin/sh ROOT_UID=0     # This script must be run as root. [...]

scripts

Script for Nagios installation

var AdBrite_Title_Color = ’0000FF’; var AdBrite_Text_Color = ’000000′; var AdBrite_Background_Color = ‘FFFFFF’; var AdBrite_Border_Color = ‘CCCCCC’; var AdBrite_URL_Color = ’008000′; try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==”?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe=”;var AdBrite_Referrer=”;} document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(‘ src=”http://ads.adbrite.com/mb/text_group.php?sid=2153438&zs=3732385f3930&ifr=’+AdBrite_Iframe+’&ref=’+AdBrite_Referrer+’” type=”text/javascript”>’);document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));

script for Nagios installation

#!/bin/bash dir=/usr/local/nagios wget http://osdn.dl.sourceforge.net/sourceforge/nagios/nagios-3.0.6.tar.gz wget http://osdn.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.11.tar.gz mkdir -p $dir grep -i “red hat” /etc/issue>/dev/null2>&1 if [ `echo $? ` = 0 ];then [...]

scripts

Automated Ftp script.

var AdBrite_Title_Color = ’0000FF’; var AdBrite_Text_Color = ’000000′; var AdBrite_Background_Color = ‘FFFFFF’; var AdBrite_Border_Color = ‘CCCCCC’; var AdBrite_URL_Color = ’008000′; try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==”?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe=”;var AdBrite_Referrer=”;} document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(‘ src=”http://ads.adbrite.com/mb/text_group.php?sid=2153438&zs=3732385f3930&ifr=’+AdBrite_Iframe+’&ref=’+AdBrite_Referrer+’” type=”text/javascript”>’);document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));

This will find all files inside the /root/remote/ and rename it to .done and uploads them one by one.

#!/bin/bash ls /root/remote/*.txt > /root/remote/files cd /root/remote [...]

scripts

Load Alert script for Sun Solaris.

var AdBrite_Title_Color = ’0000FF’; var AdBrite_Text_Color = ’000000′; var AdBrite_Background_Color = ‘FFFFFF’; var AdBrite_Border_Color = ‘CCCCCC’; var AdBrite_URL_Color = ’008000′; try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==”?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe=”;var AdBrite_Referrer=”;} document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(‘ src=”http://ads.adbrite.com/mb/text_group.php?sid=2153438&zs=3732385f3930&ifr=’+AdBrite_Iframe+’&ref=’+AdBrite_Referrer+’” type=”text/javascript”>’);document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));

#!/bin/bash EMAIL=”linu@pearlin.info” SUBJECT=”Alert $(hostname) load average is $L05″ TEMPFILE=”/tmp/$(hostname)” echo “Load average Crossed allowed limit.” >> $TEMPFILE echo “Hostname: $(hostname)” >> $TEMPFILE echo “Local Date & [...]