Categories
SysOps

How to calculate Elasticsearch average documents number in recent days

Calculate Elasticsearch’s average documents number in recent days using a shell script.

Categories
SecOps

How to determine SSL cipher suites supported by the web-server

Determine SSL cipher suites supported by the web-server using OpenSSL.

Categories
Uncategorized

How to manage remotely forwarded SSH authentication agent

Keeping SSH authentication agent in sync across multiple servers and terminal multiplexers is not an easy task, but can be solved by using consistent socket names used to connect to the SSH authentication agent.

Categories
DevOps

How to parse INI configuration file using Bash

Parse INI configuration file using Bash shell-script.

Categories
Uncategorized

How to store configuration within shell script

Store runtime configuration within shell script using simple but an effective method.

Categories
SysOps

How to store the contents of every tmux pane

Store contents of every tmux pane using a shell script.

Categories
SysOps

How to solve pipeline mysteries

I have already described how to inspect a pipeline, but today I will show you how to write a shell script that will help you reconstruct a whole pipeline when all you got is a process ID that is part of the pipeline.

Categories
SysOps

How to inspect a pipeline

A pipeline is a sequence of multiple commands separated by the control operators. It is easy to understand as long as you see the whole picture, but I will show you how to inspect it when you have a single process ID.

Categories
SysOps

How to distinguish standard error from regular output

Use bash redirection and process substitution to programmatically distinguish standard error from regular output.

Categories
SysOps

How to send output to multiple commands

Send output to multiple commands using tee utility and bash process substitution.