Tanti Technology

My photo
Bangalore, karnataka, India
Multi-platform UNIX systems consultant and administrator in mutualized and virtualized environments I have 4.5+ years experience in AIX system Administration field. This site will be helpful for system administrator in their day to day activities.Your comments on posts are welcome.This blog is all about IBM AIX Unix flavour. This blog will be used by System admins who will be using AIX in their work life. It can also be used for those newbies who want to get certifications in AIX Administration. This blog will be updated frequently to help the system admins and other new learners. DISCLAIMER: Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility. If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.

Monday, 21 December 2020

DevOps interview questions

 My student infosys interview Questions

--------------------------------------

Qstns I faced in infosys interview:

Technical:

1. Explain your roles and responsibilities.

2. Explain the stages in ur project declarative pipeline.

3. What is devops?

4. What is ci/cd?

5. What is difference in DevOps and CICD?

6. What are the git commands you use?

7. Difference in git fetch and git pull?

8. What is default port of Jenkins?

9. How to change Jenkins port no?

10. How to connect master slave?

11. How to checkout git code in Jenkins?

12. How to take backup of ur jenkins?

13. Do you have any script to launch slave nodes?

14. How do you resolve build failure?

15. Difference in soft link and hard link?

16. How to find a particular word from a file?

17. What is stop command?

18. What is Terraform provisioner?

19. What is Terraform module?

20. Is it possible to lock Terraform module?

21. What is AWS vpc?

22. How do you select availability zones using Terraform?

23. What is difference in S3 and other AWS storages?

24. How do you use S3 bucket in your project?

25. What is Terraform provider versioning?

26. How do you run docker container?

27. What is ansible playbook?

28. Syntax of ansible playbook

29. How u run ansible playbook?

30. Have you worked with any alerting monitoring tools?


Managerial:

1. Tell me about yourself

2. What are your daily routine as DevOps

3. What is ur team size

4. How scrum call happens

5. Do you take part in requirement gathering

6. Do you take calls with onshore and client?

7. Reason for change?

8. What is production issue u faced?

9. What was the exact reason?

10. How did you fix?

11. Do you write documentation

12. What other activities u do in ur project?

13. Who decides the server specification?

14. How u provision server?

15. Are you open to working in shifts?

DevOps interview qu

 Hi Guys,


Recently my student faced DevOps  interview questions.


Like this page for more interesting interview questions and free webinar some realtime hands on videos.


1. How to build kubernetes cluster?

2. What is POD?

3. What is the database of Kubernetes?

4. How to get the POD details?

5. What is docker file & contents ?

6. How Docker container created ?

7. What is the process to create container from image?

8. Write a recent used ansible playbook?

9. Syntax of writing multiple files ?

10. Command to encrypt yaml files ?

11. How to execute the playbook?

12. If hostnames need to create with playbook for multiple servers then give syntax?

13. Daily routine job?

14. Apart from production, what other environments you worked?

15. How to configure webhooks ?

16. What is the role of nodes in Jenkins?

17. How to write pipeline code to get a code from different server?

18. What is the role of Sonarqube?

19. How to integrate the Git with Jenkins?

Linux Interview questions:

 

-------------------------------


1. script/command to delete last word from every line in a file


 awk '{gsub("[a-zA-Z0-9]*$", "");print}'  <filename>


 To replace last word with hello in every line


awk '{gsub("[a-zA-Z0-9]*", "hello");print}'  <filename>


2.script/command to find the files with more than 1gb size


find <path for directory> -size +1G -type f


3. What is Swap Space?

4.  What is the maximum length for a file name in Linux?

5.Which partition stores the system configuration files in Linux system?

6. Which command is used to uncompress gzip files?

7. What is the difference between soft and hard mounting points?

8. What are the file permissions in Linux?

9.  more questions are from sed, find and awk .

10. How to check Memory stats and CPU stats as a Linux admin?

11.How to reduce or shrink the size of LVM partition?

12. How can you enhance the security of password file?

13. What is the difference between Cron and Anacron?

14. What command is used to check the number of files, disk space and each user’s defined quota?

15. how can you manage memory in linux machines?

16. 18. What is the name and path of the main system log?

17. how to manage logical volumes?

18. Explain /proc filesystem?

19. What are the fields in the/etc/passwd file?

20.  How do you terminate an ongoing process?

21. How can you know the execution time of a command?

22. How can you append one file to another in  Linux?

23. How you can run an Linux program in the background simultaneously when you start your Linux Server?

Tuesday, 21 July 2020

Devops Engineer Course Syllabus

Devops Training in Bangalore
Best Devops Course in Bangalore & Top Devops Training Institute

DEVOPS COURSE CONTENT
  
About The Course
DevOps is a practice combining both Development and Systems Operations. This course
is designed to make you a practitioner of DevOps by providing you hands-on training on tools that
have emerged as part of DevOps lifecycle.
Course Details
DevOps offline & online training is designed to help you become a DevOps practitioner. During
this course, our expert DevOps instructor will help you:
 Understand the concepts and necessities of DevOps
 Understand the need for DevOps and the day-to-day real-life problems it resolves
 Learn installation and configuration of common infrastructure servers like Apache.
 Learn popular DevOps tools like Jenkins, Puppet, Chef, Ansible, SaltStack, Nagios and
GIT
 Implement automated system update, installations and deployments
 Learn Virtualization Concepts
 Configuration deployment and packaging, continuous integration using GIT
 Manage server operations using Code which is popularly known as Infrastructure as a
Code.
The course follows the whole software development lifecycle from requirements analysis
through coding to production support.
Who should go for this course?
DevOps engineers are among the highest paid IT professionals today, and the market
demand for them is growing rapidly. With emergence of new job roles around DevOps philosophy,
anyone aspiring to get into these new roles, can take up this DevOps course. Some of these roles
are:
 DevOps Architect
 Automation Engineer
 Software Tester
 Security Engineer
 Integration Specialist
 Release Manager
Course:
 Introduction to devops
 Linux basics
 Linux admin level
 Shell Scripting
 Python Scripting
 Chef
 Puppet
 Ansible
 Saltstack
 Nagios
 Git
 Ant
 Maven
 Jenkins
 Dockers
 Virtualization
 Cloud Computing
 AWS
Introduction to DevOps:
 Background
 Ingredients of DevOps
 DevOps principles
 Who has adopted?
 Mirage or Reality?
 Challenges
 Domain specific
 Technology specific
 DevOps Toolchain (Practices and Tools)
 SDLC vs Agile/DevOps:
 Agile Values and Principles
 What is conventional software development methodology
 Advantages of Agile
 Importance of DevOps in Agile
 What is Continuous Integration
 What is Continuous Delivery
 What is Continuous Deployment
 What is continuous feedback
 Faster deployments using devops
 Collaboration
 How Automation helps devops
 DevOps job market
Linux
 Linux Overview
 What is Operating sytem
 What is Unix, Linux
 Unix vs Linux
 Linux vs Windows
 Linux market trends
 Linux flavours
 Linux Architecture
 What is shell kernel command line utilities
 Linux Boot process
 Linux commands
 Linux admin level commands
 Reading files
 Redirection operators
 Piping
 User management
 Process management
 File system management
 Linux volume manager hands on
 Linux installation using iso
 Directory structure
 Editors
 VMware overview
Scripting:
Shell scripting:
 She-bang line in shell
 Command line arguments
 Variables
 Loops
 Case statement
 Getopts
 Functions
 Regular expressions
 grep
 Awk
 Sed
Python scripting:
 Python Introduction
 Features of Python
 Python vs Perl
 Python vs shell
 Interactive mode of programming using python
 Reserved words
 Python indentation
 Python variables
 Python data types
 Numbers
 Strings
 Lists
 Tuples
 Dictionaries
 Loops
 Operators
 Break
 Continue
 pass
 Command line arguments
 Functions
 Lambda functions
 Modules
 Files
 Exception Handling
 Object Oriented concepts
 Class
 Object
 Inheritance
 Polymorphism
 Abstraction
 Method overloading
 Real time modules/scripts used
Configuration Management tools
Chef:
 Introduction to Chef:
 What is chef
 Difference between Chef open source and enterprise
 Chef Architecture
 Chef components
 Chef server
 Chef work station
 Chef client
 Installation of chef components on different machines
 Configuration of chef server, work station and development kit
 What is boot strap method
 How to add clients to chef server
 What is cook book and recipe
 How to write cookbooks, recipes
 How to search clients on command line from server
 Knife command utility
 Chef-serve-ctl utility
 Chef-client utility
 How to run cookbooks on clients
 How to download cookbooks and apply on clients
 How to write our own cookbooks
 Templates
 Source files
 Roles in chef
 Environment in chef
 Data bags in chef
 Search criterion in Chef
 Real time cookbooks
Puppet:
 Introduction to Puppet
 Difference between puppet open source and enterprise
 Puppet Architecture
 Puppet components
 Puppet Master installation and configuration
 Puppet agent installation and configuration
 Puppet connections
 Adding agents to master
 Components of Puppet
 Hiera
 Mcollective
 Puppet DB
 Puppet dash board
 Geppato
 Facter
 Catalogue
Puppet DSL
 Templates
 Defining the classes in puppet
 Relationships between resources
 Variables
 Scope
 Notify required keywords
 Puppet modules
 Site.pp vs node.pp
 Puppet manifests
 How to write basic manifests
 How to define classes
 How to write customized manifests
 Real time examples of manifests
Ansible:
 Introduction to Ansible
 Ansible Architecture
 Ansible terminology
 Ansible commands
 How to add nodes to server
 Ansible installation and configuration
 Installing ssh on nodes
 Generating the keys
 Components of Ansbile
 Inventory
 Configuration
 Modules
 Playbooks
 Global Configuration
 Roles
 Tags
 How to write playbooks
 PYYAML overview
 How to write playbooks
 Ansible modules
 Ansbible Roles
 Ansible Galaxy
 How to download playbooks from Galaxy
 Realtime playbooks
Saltstack:
 Introduction to Saltstack
 Curl
 Wget
 How to configure salt master
 How to configure salt minion
 How to establish the communication between master and minions
 Salt grains
 Search criterion using grains
 Globbing
 Regular Expressions
 Pillars
 Saltstate files SLS
 How to write basic sls
 How to write advanced sls
 How to apply the sls on minions
Monitoring tools
Nagios:
 Nagios Introduction
Nagios Architecture
 How to install Nagios
 How to configure Nagios
 Plugins in Nagios
 How to add servers to Nagios
 NRPE – Nagios Remote Plugin Executor
 How to configure plugins on remote nodes
 Monitoring with Nagios
 Using the default plugins
 Writing our plugins
Version control tools
 Git and GitHub:
 Introduction
 What is the difference between GIT and GITHUB
 How to install GIT
 How to use GIT
 Git fetch
 Git pull
 Git life cycle
Build tools
Ant:
 Ant introduction
 What is build.xml
 How to write build.xml
 Targets
 Tasks
 Real time build.xml
Continuous Integration tools:
Jenkins:
 What is Jenkins
 Introduction
 How to install and configure Jenkins
 How to achieve Continuous Integration with Jenkins
 Jenkins Jobs
 How to schedule jobs in Jenkins
 How to integrate Jenkins with Ant
 How to integrate Jenkins with Maven
 How to integrate Jenkins with Slack
 How to integrate Jenkins with Shell scripts
 How to integrate Jenkins with Python scripts
 Jenkins dashboard
 Jenkins authentication
 Jenkins plugins – how to download and use
 Parameterizing the build
 One click regression
Dockers :
 Introduction to Dockers
 Installing dockers
 What are containers
 How to manage dockers from machine
 Docker pull
 Docker run
 Docker attach
 Exploring Docker hub
 Pulling images from hub
Virtualization
 What is virtualization
 Different virtualization models
 Physical Partitioning - LPARs
 Bare metal hypervisor – Vmware ESX servers
 Hosted OS virtualization – KVM
 Software Partitioning - Dockers
Cloud Computing:
 Introduction to Cloud
 Cloud features:
 Elasticity
 Pay as you use
 Different models of Cloud:
 Iaas – Infrastructure as service
 Paas – Platform as service
 Saas – Software as service
AWS Overview

IBM - AIX



Question-1 :-
How do I boot AIX to Single-User Mode in order to perform maintenance?

Answer -

In AIX we don't tend to use single-user mode very much, because many problems require having the rootvg filesystems unmounted for repairs. However, there are some instances when it's beneficial to use single-user:
The system boot hangs due to TCP/IP or NFS configuration issues
Do do work on non-root volume groups
To debug problems with entries in /etc/inittab
To work on the system without users attempting to log in
To work without applications starting up
It is easy to unmount /tmp and /var if they need to be checked with fsck or recreated

If the system boots fine from the rootvg, then booting into single-user to repair or perform work has advantages:
It boots quicker than Maintenance Mode.
You can boot off the normal system rootvg without finding AIX Install media or setting up a NIM SPOT.
It allows you to run all commands you would normally have access to in multiuser.
Unlike maintenance mode, there is no possibility that hdisks will be renamed.

PROCEDURE:

Standalone System (no HMC):
1. Boot system with no media in the CD/DVD drive
2. Wait until you see the options of choosing another boot list, and hear beeps on the console
3. Press 6 to start diagnostics

System using an HMC:
1. Select the LPAR in the HMC GUI
2. Select Operations -> Activate
3. In the Activate window, click the button that says "Advanced"
4. Change "Boot mode" to "Diagnostic with stored boot list"
5. Click "OK" to save that change, then "OK" again to activate.

After either of these you'll see this screen:

IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM

1 = SMS Menu 5 = Default Boot List
8 = Open Firmware Prompt 6 = Stored Boot List


Memory Keyboard Network SCSI Speaker

You will see the normal AIX boot header, since you are booting from your system hard disk:
-------------------------------------------------------------------------------
                                Welcome to AIX.
                       boot image timestamp: 08:55 07/25
                 The current time and date: 10:01:01 07/25/2009
               number of processors: 1    size of memory: 512MB
          boot device: /vdevice/v-scsi@30000003/disk@8700000000000000
                     kernel size: 15004862; 64 bit kernel
-------------------------------------------------------------------------------

DIAGNOSTIC OPERATING INSTRUCTIONS

At this point the dianostic license information comes up. At the end it says:

Several keys are used to control the diagnostics:
- The Enter key continues the procedure or performs an action.
- The Backspace key allows keying errors to be corrected.
- The cursor keys are used to select an option.

To continue, press Enter.

The next screen will show you Diagnostic Functions you can perform.
On newer versions of firmware you will see Option 5 to start Single User Mode.

On older firmware you will have to go to:
3. Task selection
and scroll way down and select 'Start Shell' or 'Single User Mode'

FUNCTION SELECTION

1. Diagnostic Routines
    This selection will test the machine hardware. Wrap plugs and
    other advanced functions will not be used.
2. Advanced Diagnostic Routines
    This selection will test the machine hardware. Wrap plugs and
    other advanced functions will be used.
3. Task Selection(Diagnostics, Advanced Diagnostics, Service Aids, etc.)
    This selection will list the tasks supported by these procedures.
    Once a task is selected, a resource menu may be presented showing
    all resources supported by the task.
4. Resource Selection
    This selection will list the resources in the system that are supported
    by the diagnostic programs. Once a resource is selected, a task menu will
    be presented showing all tasks that can be run on the resource(s).
5. Single User Mode
    The system will enter single-user mode for software maintenance.

To make a selection, type the number and press Enter [1]: 5


The system will now continue the boot process.  Please wait...
Saving Base Customize Data to boot disk
Starting the sync daemon
Starting the error daemon
System initialization completed.

INIT: SINGLE-USER MODE
Password:

Give the root password at the "Password" prompt.

After getting logged in you will see a minimal rootvg mounted:
# df
Filesystem    512-blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4          131072     70696   47%     2127    21% /
/dev/hd2         2129920    102104   96%    33435    71% /usr
/dev/hd9var       196608    136080   31%      431     3% /var
/dev/hd3           98304     74904   24%      148     2% /tmp

And not very many processes running:

# ps -ef
     UID    PID   PPID   C    STIME    TTY  TIME CMD
    root      1      0   0 09:49:40      -  0:00 /etc/init s
    root 151630      1   0 09:49:51   vty0  0:00 -ksh
    root 168040      1   0 09:49:48      -  0:00 /usr/sbin/syncd 60
    root 172160 151630   2 09:51:58   vty0  0:00 ps -ef
    root 176222      1   0 09:49:51      -  0:00 /usr/lib/errdemon

RUNNING 64-BIT COMMANDS
Some commands such as fsck may give you an error that 64-bit applications have not been enabled.
This is because this is enabled from inittab:
# grep 64 /etc/inittab
load64bit:2:wait:/etc/methods/cfg64 >/dev/console 2>&1 # Enable 64-bit execs

so run it by hand:
# /etc/methods/cfg64


EXITING SINGLE-USER MODE
To exit single-user mode and boot into multiuser in RunLevel 2 use:

# telinit 2

INIT: New run level: 2
Setting tunable parameters...complete
Starting Multi-user Initialization
 Performing auto-varyon of Volume Groups
 Activating all paging spaces
swapon: Paging device /dev/paging00 is already active.
swapon: Paging device /dev/hd6 activated.

The current volume is: /dev/hd10opt
Primary superblock is valid.
 Performing all automatic mounts
mount: /dev/hd4 on /: Device busy
Multi-user initialization completed
Checking for srcmstr active...complete
Starting tcpip daemons:
0513-059 The syslogd Subsystem has been started. Subsystem PID is 139390.
Jul 25 09:53:21 puma syslog:err|error syslogd: /tmp/syslog.debug: errno = 2
0513-059 The sendmail Subsystem has been started. Subsystem PID is 217218.
0513-059 The portmap Subsystem has been started. Subsystem PID is 94364.
0513-059 The inetd Subsystem has been started. Subsystem PID is 233600.
0513-059 The xntpd Subsystem has been started. Subsystem PID is 254104.
0513-059 The snmpd Subsystem has been started. Subsystem PID is 241836.
0513-059 The hostmibd Subsystem has been started. Subsystem PID is 237710.
0513-059 The snmpmibd Subsystem has been started. Subsystem PID is 180328.
0513-059 The aixmibd Subsystem has been started. Subsystem PID is 262282.
Finished starting tcpip daemons.
0513-059 The muxatmd Subsystem has been started. Subsystem PID is 127156.
Starting NFS services:
0513-059 The biod Subsystem has been started. Subsystem PID is 229540.
0513-059 The rpc.statd Subsystem has been started. Subsystem PID is 286868.
0513-059 The rpc.lockd Subsystem has been started. Subsystem PID is 299180.
Completed NFS services.
0513-059 The ctrmc Subsystem has been started. Subsystem PID is 290968.

Unauthorized use of this system is prohibited.
login:

##################################################################################

Question-2 :-
How to connect to the Virtual terminal of a partition  ?
  
Answer -
- Connecting to the Virtual Terminal(remote console) of a partition -
mkvterm -m -p
##################################################################################

Question-3 :-
How to remove the active virtual terminal (remote console was already opened by another user) of a partition?
Answer -
- Removing the active virtual Terminal(remote console)  of a partition when another sesstion is active -
rmvterm -m -p

##################################################################################
 Question-4 :-
 What is the command to check the HACMP cluster is stable or not ?

Answer -
 #lssrc -ls clstrmgrES