MENU PROGRAM

MENU PROGRAM

Task Description :

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

Short Summary of Menu program :

This menu program will take suggestion from the user , that user want to run the command in his/her operating system or want to access remotely another operating system, in this menu program we integrated many technologies with python.

Purpose of Creating the menu program :

  • For reminding the technology concept that are taught by #vimaldaga sir in the Arth program.
  • For doing the integration of python with many types of technology.
  • For the automation part

Technologies which we integrated with Python are :


  • Docker
  • Big-data Hadoop
  • Web-Server
  • Some Services of AWS Cloud
  • Linux Partition
  • Some common command of linux

Docker :

Docker is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels.

Commands which we integrated in docker

  • To install docker: yum install docker-CE --nobest
  • To check the version of docker: docker --version
  • To check the running container: docker ps
  • To check all the stop container: docker ps -a
  • To check status of docker: systemctl status docker
  • To check the docker image: docker images
  • To download the docker image: docker pull {}
  • To Launch the docker container: docker run -it --name {} {}
  • To check the logs of particular os: docker logs {}
  • To Start the docker service: systemctl start docker

Big-data Hadoop :

Hadoop is an open source, Java based framework used for storing and processing big data. The data is stored on inexpensive commodity servers that run as clusters. Hadoop uses the MapReduce programming model for faster storage and retrieval of data from its nodes.

Commands which we integrated in Big-data Hadoop :

  • To configure Hadoop cluster : vim /etc/hadoop/hdfs-site.xml ,vim /etc/hadoop/hdfs-site.xml
  • To start Hadoop cluster : hadoop-daemon.sh start namenode, hadoop-daemon.sh start datanode
  • To check Hadoop cluster start or not: jps
  • To check the reports of cluster: hadoop dfsadmin -report

Web-Server :

A web server is server software, or hardware dedicated to running this software, that can satisfy client requests on the World Wide Web. A web server can, in general, contain one or more websites. A web server processes incoming network requests over HTTP and several other related protocols.

Commands which we integrated in Web-Server :

  • To install web server service: yum install httpd
  • To start service: systemctl start httpd
  • To write html code: vim /etc/var/www/new.html

Some Services of AWS Cloud :

AWS cloud infrastructure is designed to be the most flexible and secured cloud network. It provides scalable and highly reliable platform that enables customers to deploy applications and data quickly and securely.

Commands which we integrated in AWS Cloud:

  •  To configure aws cli: aws configure
  • To describe instances: aws ec2 describe-instances
  • To describe keypair: aws ec2 describe-key-pairs
  • To describe volumes: aws ec2 describe-volumes
  • To describe volume status: aws ec2 describe-volume-status
  • To describe security group: aws ec2 create-key-pair --key-name {}
  • To create key-pair: aws ec2 create-security-group --description check --group-name {} --vpc-id vpc-a107eaca
  • To create security group: aws ec2 start-instances --instance-ids {}
  • To Start instance: aws ec2 run-instances --image-id {} --instance-type {} --key-name {} --security-group-ids {}").format(iid,it,kname,sgid)
  • To stop instance: aws ec2 run-instances --image-id {} --instance-type {} --key-name {} --security-group-ids {}").format(iid,it,kname,sgid)
  • To Lauch an instance: aws ec2 run-instances --image-id {} --instance-type {} --key-name {} --security-group-ids {}
  • To Create volume: aws ec2 create-volume --availability-zone {} --size {} --volume-type {} --iops {}
  • To attach volume: aws ec2 attach-volume --instance-id {} --volume-id {} --device {}
  • To deattach volume: aws ec2 detach-volume --instance-id {} --volume-id {} --device {}
  • To delete key-pair: aws ec2 delete-key-pair --key-name {}
  • To delete security group: aws ec2 delete-security-group --group-id {}
  • To delete volume: aws ec2 delete-volume --volume-id {}
  • To terminate instances: aws ec2 terminate-instances --instance-ids {}
  • To create s3 bucket: aws s3api create-bucket --acl public-read --bucket {} --region {} --create-bucket-configuration LocationConstraint=ap-south-1
  • To check list of s3 bucket: aws s3api list-buckets
  • To delete the s3 bucket: aws s3api delete-bucket --bucket {}
  • To put object in s3 bucket: aws s3api put-object --bucket {} --body {} --key {}

Linux Partition :

Partitioning also allows you to divide your hard drive into isolated sections, where each section behaves as its own hard drive. Partitioning is particularly useful if you run multiple operating systems. There are lots of powerful tools for creating, removing, and otherwise manipulating disk partitions in Linux.

Commands which we integrated in Linux Partition:

  • To convert drive into physical volume: pvcreate {}
  • To create Volume Group: vgcreate {} {} {}
  • To display physical volume: pvdisplay
  • To display volume group: vgdisplay
  • To create partition: lvcreate --size {}G --name {} {}
  • To Format: mkfs.ext4 /dev/{}/{}
  • To Mount: mount /dev/{}/{} /{}
  • To increase static partition: lvextend --size +{}G /dev/{}/{} ,resize2fs /dev/{}/{} 
  • To decrease static partition: umount /{}, e2fsck -f /dev/{}/{}, resize2fs /dev/{}/{}, lvreduce -L -{}G /dev/{}/{}, mkfs.ext4 /dev/{}/{}, mount /dev/{}/{} /{}

Some common command of linux :

Commands which we integrated in linux:

  • To check date: date
  • To check calender: cal
  • To Check Ip Address: ifconfig enp0s3
  • To create partition: fdisk {}
  • To create directory: mkdir /{}
  • To delete directory: rm -rf /{}
  • To check files in current folder: ls
  • To make users: useradd {}
  • To open firefox: firefox {}

Working of Menu Program :

Program will ask in which way you want to execute the command like local , remote,exit

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

Team Member Names :

MD MOQADDAS, VIJAY YADAV, SHRUTI MODI, RAHUL DEV

Thank you for reading );

MD MOQADDAS

DevOps & CloudOps Engineer ? Committed to System Reliability & Cloud Agility ? Team-Centric & Results-Driven

4 年

Great job

要查看或添加评论,请登录

社区洞察

其他会员也浏览了