Posts

Showing posts from June, 2020

Devops-Practical-Problem-8

Practical Problem: Suppose if you have multiple files in a server, and you want to check whether files are empty or not.How will you check this ? Solution: #!/bin/bash for j in $(cat file-name.txt) do b=`ssh hostname cat $j | wc -l` if [ "$b" == "0" ] then echo "File is  empty" else  echo "File is not empty" fi  done For more practical problems Please click on below link: URL: https://payhip.com/b/247HD           https://rzp.io/l/jpiSs3L

DevOps:Automation-Lab

1. ZIP:   https://www.amazon.com/dp/B08BG3YTPX 2. Uptime:   https://www.amazon.com/dp/B08BG3YTPX 3. SED:   https://www.amazon.com/dp/B08BPDPK2R 4. Uniq:   https://www.amazon.com/dp/B08BTP1R5Q 5. Dmidecode:   https://www.amazon.com/dp/B08BTP1R5Q After going through the above books you are able to use all the options of above commands using shell scripting.

NetApp Technical QA Books

Important Netapp Books for Interview as well as for practical knowledge 1. Url:  https://www.amazon.com/dp/B07NBJT5QS 2. Url:  https://www.amazon.com/dp/B07XZF89HC 3. Url: https://www.amazon.com/dp/B07XQYG9X5 4. Url: https://www.amazon.com/dp/B07NHH4WW5 5. Url: https://www.amazon.com/dp/B07Y8SH8M9

Devops-Practical-Problem-6

1.Suppose you have multiple servers where a same file exist and you need to get the uniq content only. At this point of time uniq command help you. Solution: #!/bin/bash for i in $(cat hostname.txt) do ssh $i uniq file.txt done If you are looking for more problem like please purchase below book: URL:  https://www.amazon.es/dp/B07NBMY8J6

AWS Interview QA Books

1. AWS URL:  https://www.amazon.com/dp/B082BDF4VS 2. AWS:Governance & Management URL:  https://www.amazon.com/dp/B0821K7TMJ 3. AWS:Machine Learning URL:  https://www.amazon.com/dp/B081XPXFG6 4. AWS:Identity & Compliance URL:  https://www.amazon.com/dp/B081LCB15B 5. AWS:Devoloper tools URL:  https://www.amazon.com/dp/B081LCB15B All above books help you to crack the DEVOPS-AWS interview.

Web Development and Cyber Security Technical Interview QA Books

1. Web Development:WEBRTC&GULP URL:  https://www.amazon.com/dp/B07ZX596XJ 2. Web Development:LESS URL:  https://www.amazon.com/dp/B081B6BP66 3. Web Development:Angular URL:  https://www.amazon.com/dp/B07NPLFYLW 4. Cyber Security & Database security URL: https://www.amazon.com/dp/B07STJ5H8Q 5. Digital Security URL:  https://www.amazon.com/dp/B088PYBRSS    

IT-REAL-TIME-INTERVIEW-QA BOOKS

1. Programming URL:  https://www.amazon.com/dp/B07LB64LJP 2. Docker & Kubernetes URL: https://www.amazon.com/dp/B07LH4D89R 3. AWS URL:  https://www.amazon.com/dp/B08266RTYC 4. Netapp URL:  https://www.amazon.com/dp/B07NBJT5QS 5. Database URL:  https://www.amazon.com/dp/B07LFDY87F All above books will help you to crack the Technical Interview.

Bash-Practical-Problem-5

Practical Problem: Suppose you need to determine the up-time of the multiple servers.How will you overcome with this problem ? Solution:  #!/bin/bash for i in $(cat hostname.txt) do echo "*****START*****" ssh $i uptime echo "*****END******" done i variable is used to store the value from the hostname.txt file.uptime is a linux command which is used to display the uptime. Python and Shell Scripting Tutorials:   https://payhip.com/b/247HD  

DEVOPS-PRACTICAL-PROBLEM-4

Practical Problem: Suppose you got the list of servers for which you need to determine all the block devices in a minute. How will you overcome with this problem ? Solution: #!/bin/bash for i in $(cat hostname.txt) do ssh -t $i "lsblk" done i variable is use to store hostname and lsblk is a linux command which is used to determine all the block devices. If you want to expertise yourself in solving real time IT problems Please purchase below books where you will get around 500+ problems. a. DEVOPS:   https://www.amazon.in/dp/B07NBMY8J6  

DEVOPS-PRACTICAL-PROBLEM-3

Practical Problem: Suppose you have multiple number of files which exit in multiple servers and you want  to know the size of all the file  in minimum time. How will you overcome with this problem ? Solution: #!/bin/bash for i in $(cat hostname.txt) do echo "****START****" done for j in $(cat file-name.txt) do  ssh $i du -sh $j done echo "*****END*****" Here we are using i variable to store the hostname and j variable to store file name.du command is use to get the size of the file in human readable format. Output: 4.0K /home/anil/hello.txt For more practical Problems Please support us by Purchasing the below practical books: 1. DEVOPS :  https://www.amazon.com/dp/B07LBMCPNY

DEVOPS-PRACTICAL-PROBLEM-2

Practical Problem: Suppose you are working in a company where your manager share the list of servers and ask you to share the disk usage details of all the servers.How will you overcome with this problem ? Solution: #!/bin/bash for i in $(cat hostname.txt) do ssh $i df -h done Output: Filesystem      Size  Used Avail Use% Mounted on udev            3.9G  4.0K  3.9G   1% /dev tmpfs           789M  1.4M  788M   1% /run /dev/sda1       451G  148G  281G  35% / none            4.0K     0  4.0K   0% /sys/fs/cgroup none            5.0M     0  5.0M   0% /run/lock none            3.9G  280M  3.6G   8% /run/shm none            100M   68K...

DEVOPS PRACTICAL PROBLEM

Practical Problem: Suppose you are working in a company XYZ and Your manager assign you the ticket list which contain different kind of  hardware issue like hard-disk issue,DIMM issue, PSU issue etc.He ask you to count issue occurrence . How will you solve this problem ? Ans:  Syntax : cat file-name | grep ISSUE-NAME | wc -l Example: $ cat list.txt | grep DIMM | wc -l 2   $ cat list.txt | grep PSU | wc -l 3 $ cat list.txt | grep hard-disk | wc -l 2 For more Practical Problems Please support us by Purchasing the below book: BUY-LINK:   https://www.amazon.com/dp/B07NBMY8J6