Script for Check Bulk IP Ping / Status / Health | Linux

Hello,

Sharing Basic script which I have shared in Some LUG before few months.

Sharing it here because it will help to people who wants to check PING of Bulk IP Addresses and check status and health by pinging the IP Address.

Again repeating this is very basic script and many changes required to improve, You can suggest me or you can send me improve one so i will update it over here. Your Suggestions are always welcome.

PING
PING
Requirements to run Script :-
1. One File which contains all IPs. One IP per line.
2. If you have different class, From system which you are running this script must contact those hosts. Routing must be through to get ping.
# Below is example file. which is containing IP List
[root@tejas-barot-lenovo ~]# cat /root/ping.txt
192.168.1.1
192.168.1.6
192.168.0.1
192.168.5.1
#Below is script which will helps you. Script is not dynamic with variable and all
[root@tejas-barot-lenovo ~]# cat /root/ping.sh
####### Script Starts from here ######
#!/bin/bash
# -c3 = is ping count, It will ping for 3 times, You can increase or decrease this number.
for PNG in $(cat /root/ping.txt)
do
ping -c3 $PNG > /dev/null 2>&1
VAL=$?
if [ $VAL = 0 ] ; then
echo “Success Ping… Host $PNG is up”
else
echo “No Ping…Host $PNG is Down”
fi
done
##### Script Ends here ##
You can also you fping :
As Normal User, fping will not allow you to specify -f, -f is allowed for root only.
As a Normal user you can try, even as root you can try following :-
$ fping < <file-name-with-ips>

# fping < <file-name-with-ips>

Hope this will helps you.
Enjoy Linux 🙂 Enjoy Scripting 🙂  Enjoy Open Source 🙂

Please Keep in Touch with Social Networking :- 
Facebook Page :- https://www.facebook.com/AllLinuxUsersBlog

Howto:Installing VLC Media Player / RHEL 6.x / CentOS 6.x 32 bit / 64 bit ( x86_64) / Using Script / Linux

Hello Guys,

Updated on :- 16th May,2013

I  got huge response from you guys for My Previous VLC installation script on RHEL 5.x, So Many Users requested me to post Same Kind of Script for RHEL 6 and I am done with it. I am Very thankful to each and every user who have given so nice response to my that post. I hope they will enjoy this post too

Previously I have written Script to Install VLC Player on RHEL 5.x 32 bit for Automatic Installation, You can say a script which i have designed to install VLC Player Very Quickly and without any dependecy problems.

This time I have written script to install VLC Player on RHEL 6.x and CentOS 6.x for Both Architecture ( 32bit and X86_64 (64Bit). I hope this script helps you.

To Make it more simple I have created Own RPM So This time there will be 1 additional step that You have to follow.

VLC Media Player Installation
VLC Media Player Installation

Note :- This script is tested in Local Environment, Think many times before you execute on Production/Local/Anywhere, Do it at your OWN RISK.

Following things must exist on your Computer/Linux to execute this script:-

=> Direct Working Internet Connection or Yum Should run from Terminal. If you are using Internet connection with Proxy then it will be problematic for you.

=> RHEL 6.x and CentOS 6.x must be installed with 32bit or X86_64 Arch.

This time couple of addition steps to make it more simple. So This time VLC Installation in 7 Steps.

Perform Following Steps to Install VLC Player on RHEL 6.x / Cent OS 6.x on 32 or 64Bit :-

1) You have to be root to execute this script.

2) Download RPM ( Auto VLC Redhat Centos6) which I have specially created for VLC Installation Script , You can use RPMs for CentOS 6 too.Click on Following link to Download RPM for Your Architecture :-

32 bit Users click on this link :- http://www.tejasbarot.com/RPMs/avrc6-tejas-barot-linux-0.1.0-1.el6.i686.rpm
64 bit Users click on this link :- http://www.tejasbarot.com/RPMs/avrc6-tejas-barot-linux-0.1.0-1.el6.x86_64.rpm

3) Execute Following Commands as per your Respective architecture :-

For 32 Bit Architecture :-

[root@linux-support-tejas-barot ~]# rpm -ivh avrc6-tejas-barot-linux-0.1.0-1.el6.i686.rpm

For 64(X86_64) bit Architecture :-

[root@linux-support-tejas-barot ~]# rpm -ivh avrc6-tejas-barot-linux-0.1.0-1.el6.x86_64.rpm

4) Download VLC Installation Script for RHEL6 and CentOS 6 ,

Click this link :- http://www.tejasbarot.com/Scripts/vlc6-installation.sh

5) Execute following Command where you have downloaded the script.

[root@linux-support-tejas-barot ~]# chmod +x vlc6-installation.sh

6). Now Execute your script by two ways mentioned below

[root@linux-support-tejas-barot ~]# sh vlc6-installation.sh
 OR
 [root@linux-support-tejas-barot ~]# ./vlc6-installation.sh

7) Once you Execute it will ask you 4 Options to Install as per your OS and Architecture and 5th Option for Exit Select Option as per your OS and Architecture

Press (R32) to Install VLC on RHEL 6.x on 32bit
Press (R64) to Install VLC on RHEL 6.x on 64bit

Press (C32) to Install VLC on CentOS 6.x on 32bit
Press (C64) to Install VLC on CentOS 6.x on 64bit
Press (E) to Exit anytime

Please Enter your Selection: <Put Your Option Here and Press Enter>

 

8) Remember you have to be normal user to run VLC Player, You cannot Run VLC Player as root.

Hope You like this.

Comments are closed for this Post you can mail me on blog[at]tejasbarot.com or you can report errors or issue then comment down below.

If you like this then Please Click Google +1 Button and Show Your Support. Your Support will encourage me to write more articles.

All Linux User’s Blog Mobile Applications :- http://www.tejasbarot.com/download-mobile-apps/

Please Keep in Touch with Social Networking :- 

Facebook Page :- https://www.facebook.com/AllLinuxUsersBlog

Enjoy VLC  :) Enjoy Scripting 🙂 Enjoy Linux :) Enjoy Open Source :)  

Reviewing Book : Linux Shell Scripting Cookbook

Hey Guys,

This post is regarding Linux Shell Scripting Book. Right now, I am reviewing Book with Title “Linux Shell Scripting Cookbook” with is published by [PACKT] Publishing.

Let me introduce you about Packt Publishing, Packt is one of the very nice publishers who is dealing with Open Source and Linux e-Books, They Publish content with Simplicity you’ll like to read it.

Nowadays, I am reviewing this “Linux Shell Scripting CookBook” From Packt Publishing, I mostly read about Linux and Open Source.

If You are Using Linux then Shell Scripting is the subject where you always want to learn new things and perform new things. It’s always a great experience with Shell Scripting.

Now It’s time to talk about Nice Dedicated book on Linux Shell Scripting, This Book Contains very nice content and demonstrated very nicely and This book contains most of the Scripting fundamentals and some nice trick also.

Linux Shell Scripting Cook Book
Linux Shell Scripting Cook Book

This book contains a very powerful Topics, And there are some interesting topics which you are definately going to like it and one thing which creates a more interest for this book is it’s Author who is Only 21 year old only and he wrote it very simply and nicely, You can understand it with ease. It’s Great to see young people like Sarath Lakshman who is writing nice books and publishing it. Keep it up.

So If you are thinking that Linux Shell Scripting is Very Tough and You cannot Perform it, Read this book and improve your Shell Scripting.

To Know about this nice book, Please visit this link :- https://www.packtpub.com/linux-shell-scripting-cookbook/book

I am very Thankful to Sean Palanna from PACKT for approaching me to Review this very nice book on Linux Shell Scripting, Dont Forget to Comment your views.

Enjoy Linux 🙂 Enjoy Open Source 🙂 Enjoy Linux Shell Scripting CookBook 🙂

Howto: Installing VLC Media Player / RHEL 5.x / CentOS 5.x / Linux / Script

Hello Friends,

Today I am sharing one more how to for those who is fresher or experience but unable to Install VLC Player on Red Hat Enterprise Linux 5.x. By Performing this howto you will able to install VLC Player in Just 6 Steps.

Following things must exist on your Computer/Linux :-

=> Direct Working Internet Connection or Yum Should run from Terminal. If you are using Internet connection with Proxy then it will be problematic for you.

=> RHEL 5.x must be installed

What is VLC Player ?

=> VLC media player is an open source, free software media player and multimedia framework written by the VideoLAN project.

There are so many peoples who is facing issue while installing VLC Player on Linux and CentOS, Most of the peoples suffer with dependencies problem if they are going to install VLC Player using RPM or YUM.

But Now you will find a very easy way to install VLC Player, I have created Bash Script to Install VLC Player with all Dependencies, So Forget about all problems Just Download and Run Bash Script which I have created for VLC Player Installation on RHEL 5.

Note :- This script is tested in Local Environment, Think many times before you execute on Production/Local/Anywhere, Do it at your OWN RISK.

Perform Following Steps to Install VLC Player on RHEL 5.x / Cent OS 5.x

1. You need to be root to run this script.

2. Download this VLC INSTALLATION SCRIPT.

3. Execute following Command where you have downloaded the script.
[root@tejasbarot ~]# chmod +x vlc-installation.sh

4. Now Execute your script by two ways mentioned below

[root@tejasbarot ~]# sh vlc-installation.sh
OR
[root@tejasbarot ~]# ./vlc-installation.sh

5. Now Just Site Back and Relax for Few Minutes as per your Internet Connection it will Install VLC Player Without any error.

6. Remember you have to be normal user to run VLC Player, You cannot Run VLC Player as root.

Hope you ENJOY THIS………

If this works for you then Show your support and encourage me to write some more howto’s by commenting on the same topic or by sending me mail on blog(at)tejasbarot(dot)com

If this doesn’t work for you then also please do let me know so i can helps you out to solve the issue, If you are facing the error then please send me mail on blog(at)tejasbarot(dot)com with Subject:- VLC Installation Issue

Enjoy Ubuntu 11.10 Oneiric Ocelot :) Enjoy Ubuntu  :) Enjoy Open Source :) Enjoy Linux :)

All Linux User’s Blog Mobile Applications :- http://www.tejasbarot.com/download-mobile-apps/

Enjoy VLC on Linux 🙂 Enjoy Linux 🙂 Enjoy Open Source 🙂 Enjoy Players on Linux.