Saturday, May 6, 2017

Notes2

droppedbyte="$(iptables -L -v -n --line-number | grep DROP | awk '$1 = 5 {print $3}')"


droppedbyte="$(iptables -L -v -n --line-number | grep DROP | awk '$1 = 5 {print $3}')"
echo "$droppedbyte"

================================

python
What are the different types of modules , you have used
How does cnn.com work
What are the different infrastructure components involved

how long does a browser or an infrastructure equipment remember the ip address
This is based on the TTL { Time to Live}

what are the different areas , where the ip address could be cached ?
server , DNS cache , router , browser , at the ISP level

how do yu parse a /etc/hosts file

Explain about SSL

how to capture the specific fileds using python from a file
--------------------------------

awk command  to print a specific field
How to use it and how to implement it using python

GIL- what is it
*args , did you use it ?

do you use any OAM in python ?
no object oriented programming so far

Difference between django and flask and why did you use flask

Where are you in terms of using flask ?


What happens , when a guy gets under your skin

what is one difficult or exciting project tha tyou have worked on ?

How do you install a piece of software on a lot of servers ?
use a shared drive mount , that is common to all the servers

Use puppet , that identifies the servers , based on the domain name

How does puppet work - based off of an agent ?
how long does the agent take to gather the configuration from the master

Any other scripting languages ?
shell , python , little ruby


What is the type of error you get , if the /etc/hosts file doesnt exist and you are trying to open it , please explain in detail
Try catch statement ,
We get an IO error , which states that , there is no such file or directory

IO error is for the input error- when the file doesnt exist
How to debug io issues
WHAT’S THE BEST PATH TO FIXING AN I/O BOTTLENECK?
how to find n/w issues
rsync issues , if this is a new job thats running

-----
So in TCP , while doing a communication , what are the things , that need to be considered
i mean , there are 4 things that are necessary , that are necessary
ip of the host and client , port of the host and client
-----------------------------
SSL - symmetric and assymetric
explain it clearly
--------------
What is load average
What is the hardware cloud and virtualization
Complete thing about docker
Amazon security groups
coding question about the sorting algorithm - load averages

========================================

tell me about yourself
======================

What is docker , how do you use it
cow
do you know how docker works
what it does at kernel level

================================
how is the application looking

the complexity of the algorithms

the time complexity O nlog(n)

the complexity

What type of software do you use for installing docker
------------------------------

swarm

docker compose , do you know which language are these written in ?

splunk Apps , which language are these written in
Where does python come into picture

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

How fast is splunk
------------------------------------------

perfect forward secrecy
When the SSL means, what is the information that is shared
the ips of the host and ip of the client , the port of the client and the port of the client
Do you know what is the complexity
Do you know how docker works
Do you know what is Sha1 , Sha2
Do you know this
Do you know that
Do you know which algorithm , you want to write
Do you know about binary algorithms
Binary trees , what are the different binary trees
which binary tree algorithm do you use
counting sort
Which sorting algorithm do you use

what is SSL
What happens , when you do a ssl handshake

The initial handshake happens with assymetric keys
After the keys are exchanged , then the symmetric keys are exchanged and then the encrypted data is exchanged
CSR

What is tcp /ip
in tcp /ip , what are the two pairs of information that is exchanged
in

Coding problem

===============================

Where does docker come into picture

==================================

Where do you use splunk
Do you remember any key words that are part of the splunk
Do you use splunk Cloud ?
How is splunk implemented in your company ?
What are the different things that you have done ?

====================================
What did you do as part of your job ?
How is the code reviewed ?

load averages - How are load averages calculated ?
1,5,15 minutes
it depends on the number of cores of the computer - if the load averages exceed the number of processes , that could
be handled by the cpus present , then we do have an issue

route ?
SSL - how does it work ?
What is the underlying architecture for docker ? - How does it work ?
groups , some part of pids , some network , some cpu , some memory
Everything is divided and assigned to the containers ,
This is how docker works


=================================

























Monday, March 6, 2017

Ansible Notes

Sample Commands:

Ansible - Scripting using playbooks is the main critereon

Puppet - Module
Chef - Cookbook
Ansible - Playbook

Playbooks are used to perform many actions on multiple machines

Playbooks are written in YAML language

Playbooks are divided into three sections:
===========================================

1. Target Section
   Similar to nodes.pp in puppet
              runlist  in Chef
   Target hosts defines on which hosts, this playbook will be executed and how it will be executed

2. Variable Definition
   Define your variables, which can be used from the playbooks

3. Tasks Section
   What do you intend to do on the target hosts
   List all the modules that you intend to run in the order.

As ansible is agentless, we dont need any angent on the remote host


The playbook Syntax:
Always starts with ---
It is very particular about intendation and spacing

---
 - hosts: hostname.example.com
   




The tasks title in puppet is the name in playbook
Use the copy module , source and destination to copy the stuff