🔰Python-Automation🔰

rishabhsharma
5 min readNov 16, 2020

Here’s our article on Automation using python code :-

Let’s first understand what exactly the automation means and why do we need it?

The dictionary defines automation as “the technique of making an apparatus, a process, or a system operate automatically.” In the simple terms automation is the use of machines and technology to make processes run on their own without manpower.

Automation reduces the time it takes to achieve a task, the effort required to undertake it and the cost of completing it successfully. Automation not only ensures systems run smoothly and efficiently, but that errors are eliminated and that your best practices are constantly leveraged.

We have created a menu program which can automate Basic Linux Commands, Partitions , LVM, Hadoop, Docker, Ansible, AWS-CLI, Web-Server concepts.

ARTH — Team Task 1 👨🏻‍💻

Task Description📄

🔰 Create a Menu Using Python integrating all the concepts that have been taught by Vimal sir till now 🔰

👉🏻Lets get started…😃

✔️We have done the following things :

🎯Basic linux commands :

Run following Basic linux commands locally and remotely :-

➢ Date

➢ Open calendar

➢ Check IP

➢ Check Connectivity

➢ Create a file using gedit and vim

➢ Open firefox

➢ Run Python Interpreter

➢ Check particular command comes from

➢ Check manual for particular command

➢ Read the packets coming

➢ Remote login

🎯Partition

➢ Check details of device Attached(H.D)

➢ Create Physical Partition

➢ Load the driver

➢ Format the partition

➢ Mount to a folder

➢ Unmount folder/directory

🎯LVM

➢ Create a physical volume

➢ Create volume group

➢ Create logical volume

➢ Format the partition

➢ Mount to a folder

➢ Unmount folder/directory

➢ Increase or Decrease the size of partition

🎯Hadoop

Install Jdk and hadoop files for hadoop configuration

Name node configuration

● Edit hdfs-site.xml file

● Edit core-site.xml file

● Format name node

● Start and stop name node daemon service

● Check port number

● See Report

● Stop firewall

Data node configuration

● Edit hdfs-site.xml file

● Edit core-site.xml file

● Start and stop datanode daemon service

● Check port number

● See Report

● Stop firewall

Client configuration

● Edit core-site.xml file

● Check file Storage of cluster

● Upload file

● Read file

● Remove file

● Create empty file

🎯Docker

Docker Configuration

● Install docker-ce

● Start and stop the service

● Check Status(active/Inactive)

● Get docker information

Docker Operations

● Show Docker images

● Download/Pull docker images

● Check how many containers are running

● Start and stop existing container

● Go inside Container(attach)

● Terminate all the OS

● Remove container(OS)

●Remove docker images

🎯Ansible

➢ Install Ansible

➢ Check ansible version installed

➢ See Inventories

➢ Add Inventories

➢ Add TN/MN to CN

➢ Check connectivity with TN/MN

🎯AWS-CLI

➢ Install and check aws-cli version installed

➢ Description of EC2 instances

➢ Create a Key-pair

➢ Description of Key pair

➢ Launch an amazon-linux Instance on AWS cloud

➢ Description of Security groups

➢ Create Volume

➢ Attach And Detach volume

🎯Webserver

➢ Configure Apache httpd web server

➢ Install and check httpd software

➢ Create a html file(webpages)

➢ Put a webpage to var/www/html/ directory

➢ Start the service

➢ Check the Status(active/Inactive)

➢ Stop the Service

Thanks for reading !!!😊✨

🔰Keep Learning ❗❗🔰Keep Sharing ❗❗

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

rishabhsharma
rishabhsharma

Written by rishabhsharma

Data Engineer | Azure Databricks | AWS | PySpark | DevOps | Machine Learning 🧠 | Kubernetes ☸️ | SQL 🛢

No responses yet

Write a response