This a very useful One liner command to insert IP and hostname into /etc/hosts file and is particularly useful when it comes to kickstart scripts wherein you need to have /etc/hosts entry for the newly provisioned VM and get it enrolled to various applications that...
Update ESXi version
Its a very quick process to update ESXi version to the latest. This procedure is completed via esxcli going through a SSH session to the Server. The update takes around 5-10mins depending on the hardware resources of the server and the failure is minimal. But not to...
Upgrade Nagios CORE to the latest Version – 4.x.x
Its possible to upgrade Nagios CORE to the latest version by just following these simple steps. This article covers upgrade, backup and restore in case of a failure.The Latest Version of Nagios CORE is 4.2.4 as of January,2017 for which you can download the Source...
One liner command to retrieve list of active users – IPA/Red Hat IDM
It's possible to get a list of users of active users in IDM/IPA with formatted date and time by running this one liner command. It gets you the list of users with last successsful authentications to IDM/IPA server. Very handy command when it's required for Audit...
Integrate FreeIPA/IDM with vCSA/vCenter Server for User Authentications
It's now possible to integrate FreeIPA/IDM (Red Hat) into vCenter Appliance (vCSA)/ vCenter Server for User authentications. We need to configure IPA server and vCenter Server for LDAP to authenticate users from IDM server. Follow this guide and you will up and...
Resolve Nagios error – Failed to start nagios.service-Unit nagios.service failed to load – No such file or directory
If you are getting this error while installing Nagios Core on RaspberryPi run these commands to resolve the error and get Nagios up and running in no time. These commands wil need to be run as ROOT. You need to restart the nagios service after you carry out the...
Install Nagios Core latest version 4.x.x on RaspberryPi – Jessie
Its now possible to install latest Nagios CORE version on Raspbian by following the steps in this article. Before writing this article I Googled for the same but couldn't find a single article covering install of latest version of Nagios on RasberryPi hence this...
Using awk in Alias Command – CentOS & Red Hat
Its possible to use awk in Alias command. I did that by simply just modifying some parenthesis and there you go, had a working awk command. All that it required was closing awk in double quotes as opposed to single quotes and forward slash before the "$" variable....
Create Kickstart Tree Automatically for provisioning – Spacewalk
It's very easy to create a Kickstart tree in Spacewalk and that to in a Automated fashion for provisioning hosts. All you have to do is create a Base Channel for CentOS and then create a Repo and then marry both and then at the time of Repo sync choose the option of...
Install and configure Puppetdb using PostgreSQL
Its possible to configure Puppetdb with PostgreSQL as its much more manageable as compared to the in-built DB that comes with Puppetdb i.e. HSQLDB. Plus its much easier to query and troubleshoot any issues you comes across especially when using Puppet Hiera and...
Run a script via Alias Command – CentOS & Red HAT
Its possible to run a script via Alias command. All you need is to modify the .bashrc and then source the script in the required user profile. Alias commands are very useful when it comes to running shortened versions of commands or a complex script to be run using...
Wake-On-LAN Automation – BASH Script – RaspberryPi
Wake-On-LAN (WOL) is a very useful feature if you have got a LAB at home and want to make it energy efficient. I have written a small BASH script to automate the Wake-On-LAN (WOL) procedure which can be used in an instance where there is a ESXi server which can turned...