What is BMC BladeLogic

BaldeLogic is a server automation suite. 
An admin needs to manage sever configuration, patching,  compliance, change control, change management, provisioning etc.
BaldeLogic does this automation when several server needs this activities to be done. 
In order to Bladelogic infrastructure has BSA centralized interface using that admin sets configuration,  deploy, etc for any number of servers. 
All servers needs an agent to be installed. BSA uses port 4750 to call all the agents and achieve this requirement.

What is REST client in Visual studio code

REST client is an extension available in Visual Studio code available through its market place.
REST client make API test automation easy via Visual studio code development. 

Consider a scenario where you needed to handshake selenium UI automation with API REST calls, normally you would need to do coding effort for REST calls. In this case REST client makes life easy.
Please find below example on REST client coding:
GET transaction for getting a response

# codes starts here
GET https://endpointurl/xxxxx

Authorization: {{“token”}}

# code ends..

Note : you can pass token as variable as well.
Similarly POST, or PUT works and needs the json input file/string to be attached with POST, PUT request

What is Automagica

Automagica is Smart robotic process automation (SRPA) tool and best matches for Windows automation. Aytomagica is built on the following open source libraries,

PyPDF2
Psutil
py-trello
plyer
Pillow
Faker
Psutil
Keyring
PySimpleGUI
Cryptography
PyAutoGUI
Selenium
PyWinAuto
OpenPyXL
python-docx
pywin32
pyttsx3
pyad
jupyterlab
SRPA Automagica automates windows paint, excel,  sap apps etc.

What is Apache Kafka

Apache Kafka, distributed streaming platform was originally  developed by LinkedIn and used for data streaming. It is now open source platform under Apache software foundation. Programming language used for Kafka development are Java and Scala.
Kafka Architecture has producers send Key-Value messages to Kafka clusters. Data can be partitioned into different partitions under kafka topics. Kafka consumers read data from partitions.
Binary TCP based Protocol is used in Kafka.

What is a Java Constructor

A java constructor is a special method used to initialize java objects. Constructor can be used to set initial values for object attributes. Constructor is called when an object of a class is created. Constructor can also take parameters. Constructors can take many parameters they way a method takes.Constructor name should match class name. Also Constructor can not return value.

Ansible quick notes

Ansible is an IT automation tool to fulfill DevOps requirements. Ansible is written in Ruby, python, and powershell.

Ansible is used for cloud provisioning, application deployments, server patching , rebooting, configuration management, and many more IT tasks fulfillment.

Ansible Scripts are written in ansible playbook(s). I will include few sample playbooks and explain the its own declarative language below in this article.


What’s make Ansible so unique and top winner?

The main feature of Ansible is that it does not need Agents or any other special security infrastructure unlike other IT automation tools in the market.
Ansible just needs its automation jobs written in YAML file called as Ansible playbooks. 


What is Ansible Role directory structure ?

Role directory structure contains tasks, handlers, vars, files, templates etc. Roles helps to automatically load these. Ansible playbook is a mapping between hosts and Roles. E.g. are site.yml, webserbers.yml etc. While roles are set of tasks and variables.
Typical ansible directory layout contains inventory files to represent production and other staging environments.There will be master playbook yml files, webserver, dbserver yml files, other libraries representing custom modules like utility, plugins yml files, group and host representatives yml files, then roles as discussed above contains set of yml files and finally if needed monitoring yml files can also be added to a playbook.

 

-name: install a package
    yum:
      name: nginx
      state: installed
      validate_certs: no
      skip_broken: yes


Vagrant quick notes

Vagrant is highly useful to build and maintain portable virtual software development environment by doing software configuration management.
Vagrant is developed using Ruby. Vagrant uses provisioners like puppet or chef. Also Vagrat natively supports comes providers like Docker, VMware.
Vagrant acts as a middle layer between virtualization software and providers like Docker containers.

VbscriptSample

On Error Resume Next


strComputer = "."
Const Quote = """"
Dim Result


' Store the arguments in a variable:
Set Args = Wscript.Arguments

Result = 0

'check usage
If 2 <> Args.Count Then
	Wscript.Quit 1
End If


If 2 = Args.Count Then
	Dim FilePath, strLine,stringToFind, strIndex, strTemp
	FilePath = Args(0)
	StringToFind = Args(1)
	Set objFSO=CreateObject("Scripting.FileSystemObject")
	if Not objFSO.FileExists(FilePath) Then
		WScript.Echo StringToFind
		WScript.Echo "FileReadError!"
		Wscript.Quit 1
	Else		
		Set objFile = objFSO.OpenTextFile(FilePath)	

		Do Until objFile.AtEndOfStream
			strLine = objFile.ReadLine
			'WScript.Echo strLine
			strIndex = InStr(1, strLine, StringToFind,1) 
			If strIndex = 1  Then				
				strTemp=Replace(strLine," ","",Len(StringToFind)+1)
				WScript.Echo StringToFind&"#"&strTemp									
			End If
		Loop
		objFile.Close
	End If

End If
Wscript.Quit Result