This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
#Author : Mangesh Bharsakle <mangeshsoft0@gmail.com> | |
#Date :12-10-2014 | |
#Make Sure Only Root User Can run This Shell Script | |
if [ `whoami` = 'root' ]; then | |
echo " You can Run This Script " | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Author : Mangesh Bharsakle <mangeshsoft0@gmail.com> | |
#Date : 09/09/2014 | |
########## COLOUR CODES ##########[DONE] | |
NONE='\033[00m' | |
BOLD='\033[1m' | |
RED='\033[01;31m' | |
GREEN='\033[01;32m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
#Author : Mangesh Bharsakle <mangeshsoft0@gmail.com> | |
#Date :05/09/2014 | |
echo " Server Report " | |
echo "Date: Prepared By: `whoami` " | |
echo " " | |
BasicInfo() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Aim : This Script is mainly written to take a backup of User's Home Directory | |
# Author : MANGESHKUMAR B BHARSAKLE | |
# 1: userslist.txt root@192.168.0.24 /var/tmp/backup root@desktop24.example.com 7 | |
if [ $# -ne 4 -a $# -ne 5 ]; then | |
echo "cla msg" | |
exit 9 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Author: MANGESHKUMAR B BHARSAKLE | |
#PROBLEM:How to download latest timestamp file from FTP remote SERVER to local | |
if [ -f tempfile ] | |
then | |
rm -rf tempfile | |
fi | |
ftp -n 192.168.127.151 >tempfile <<EOF | |
user ftp ftp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
#Author : MANGESHKUMAR B. BHARSAKLE | |
#Date : 26,27 JAN 2015 | |
#Automated Installation of NAGIOS ON SERVER SIDE | |
cd /tmp/ | |
wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-4.0.1.tar.gz | |
wget https://www.nagios-plugins.org/download/nagios-plugins-1.5.tar.gz | |
echo " " | |
echo "Adding users" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
#Author : MANGESHKUMAR B. BHARSAKLE | |
#Date : 26,27 JAN 2015 | |
yum install -y gcc glibc glibc-common gd gd-devel make net-snmp openssl-devel | |
useradd nagios | |
cd /tmp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
#Author : MANGESHKUMAR B. BHARSAKLE | |
#Date : 26,27 JAN 2015 | |
# Install NRPE Plugin on Server Side | |
cd /tmp/ | |
wget http://garr.dl.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz | |
tar -xzf nrpe-2.15.tar.gz | |
cd nrpe-2.15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Helloworld1 { | |
public void printHelloWorld1() { | |
System.out.println("Hello World 1!"); | |
System.out.println("Oracle Java!"); | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Hello1.cs | |
public class Hello1 | |
{ | |
public static void Main() | |
{ | |
System.Console.WriteLine("Hello, World!"); | |
} | |
} |
OlderNewer