Automation : Automation is a process by which we can complete any task with less
human intervention or without human intervention.OrCompleting a task with scripting
(Shell Scripting, Python Scripting etc..)Here, we are covering Shell Scripting.What
is Shell Scripting?-> Shell Scripting is a group commands written in a sequence to
automateYours:->Regular Boring Stuff Or Repetitive Work->A Shell is a program that
provides an interface between a user and an operating system (OS) Kernel.->An OS
Starts a shell for each user when the user opens a terminal or login into a system.
->Mostly available shells on UNIX/Linux operating system are:1>Bash Shell2>Sh Shell
3>Ksh Shell4>C Shell etc.Note: Which $SHELL command will give the current shell and
cat /etc/shells for all available shells.Here, we are going to work with bash shell
scripting.Why Bash Shell Only?------------------------->Bash Shell is the advanced
shell.->Bash is an sh-compatible shell that incorporates useful features from the
korn shell (ksh) and C shell (csh).->Now a days bash shell is the default shell for
most of the unix/Like systems.#!/biin/bash - Shebang line.-------------------------
Bash Shell Scripting->Bash shell scripting is used to automate tasks.Examples:--
>Install and configure httpd on RHEL & Ubuntu.->Install jenkins on Tomcat Server on
RHEL & Ubuntu.->Find all servers FQDN and Uptime and export it to CSV file.-
>Install and configure Ansible setup on AWS Cloud.(Ansible Controller And Required
numbers of Node.)----------------------------------------------------------->How to
Automate these tasks?->Step1: Get all manual steps(Commands)->Step2:Write a shell
script->Step3:Now execute Shell Script---------------------------------------------
Automate installation And configuration of httpd for different OS Servers.
---------------------------------------------------------------------How to
Automate this tasks?Step1:Get all manual steps(Commands)Step2:Write a shell script
Step3:Now Execute shell scriptStep1: Install httpdyum install httpdStep2: Change
default port to some required port let say 480Edit httpd.confStep3: Write custom
static info for home pageEdit index.html fileStep4: Start/restart httpdUse
systemctl start httpdStep5: Finally check the status and then display the url to
access webpagecurl http://<host_name>:port_no
--------------------------------------------Why Automation?Accuracy in data
handlingTo improve productivityTo reduce employee powerFaster And Cheaper
------------------------------How Automation can be achieved?Automation can be
acheived using scripting languages like:->Shell Scripting->Python Scripting->Yaml
Scipting for Ansible->Perl Scripting->Ruby Scripting
---------------------------------Who Can take this course?Here we are covering
shell scripting for different admins likeUnix/Linux OS AdminsMiddleware Admins
Database AdminsDevOps Admins-------------------