How to build the smallest docker image?

Let’s write simple C-code to be used as our application which just simply print “Hello World!” message on the screen. Now compile it using gcc compiler and size optimization. Our next step will be building docker images with below Dockerfile. So let’s build it! And that’s all! Now we have our smallest Hello World image […]

Get VIO adapters info directly from AIX LPAR

Sometimes You need to find out VIO names and VIO adapter’s which are used by Your AIX LPAR, but do not have access to the VIO servers directly. There is a quick way using kdb to extract those information for You. Just use below scripts. 1) For virtual FC adapters #!/usr/bin/ksh VFCS_LIST=$(lsdev -Cc adapter | […]

Reading password into script without echoing it

Have You ever wondered how to read password to the variable in the script without echoing it to the screen? This is quite simple and can be written in just few lines: oldSTTY=$(stty –save) stty -echo read -p “Password: ” PASSWD; echo stty $oldSTTY 1: You save all current settings of the terminal 2: You […]

Firmware update for SUN/Oracle SPARC server

As I had to face this task recently I would like to describe in few steps how to perform firmware update on SUN Sparc servers using T4-1 as an example. Phase 1. Preparation 1. We do not want any surprises later so before start we should do sanity system reboot, service processor restart and perform […]