Configure Infiniband and bonding at once

Just after the deploying of several nodes, running this on each of them gets them configured to be able to reboot and start running.

The condition here is that each node will get its IP addresses from its own name,

If hostname is cn10 , the ip addresses will be and .
Of course we didn’t have any cn0. And there were about 100 nodes.

Desktop login and SMB/CIFS mountpoints made easy

Having lots of users with kind of “magic hands” got us to think what they did not need to think about, so they could do more of their research.

Since we got everyone on AD using Quest (see previous post) we where able to launch the following script each time they log on their Desktops, making a nice direct access to all the resource from their groups and from their research.

Also, we used the library.

Expect script to mount the remote CIFS

Link Unix machines to AD using Quest Autentication Services. Install it using expect.

This next script uses the library introduced on a previous post =>

This script was launched at the end of the installation of all the workstations on the company.
It configures the linux, or MAC , to be part of an Active Directory, which allows the administrator to manage the root passwords, what runs at boot, and even the desktop background.

However, the installation and configuration was slow and wanted to be interactive, so in this case we used expect to automate the human interaction.

The first script is the bash that was launched after the pre-seed job, then comes the expect (which is launched from inside the bash).

The scripts that become functions, and the functions that belong to a library .

Long ago, when I had the chance to build by myself a set of scripts that performed certain operations I ended up with a nice set of small things.

I would like to share, but it needs some explanation.

This library, group of tools, they do nothing by themselves, their only serve a single purpose which is “To standardize” .
At that time I was a “one man army”, I built stuff by myself, for myself and to myself, but then I realized that after me would come someone else, with different styles, different habits and so on,..

Since I needed to change as less code possible this library can be sourced and its functions called many times, they become read only , or they are atomic, so nothing has be worried about using its functions several times in a row.

New monitoring for standard environments

From some time now we have started using a “monitoring distribution”.
It uses passive monitoring where it can be used, and has lots of plugins for standard services.

It gives you a nice output, check it out:



Credit has to be given to
All you need to know is here =>

To install the FULL pack you just need to do the following:

After this, you can go to your server http://server/monit/ with user omdadmin and password omd , and you will find yourself adding machines to the monitoring.

The agents can be found on the server itself, at the /opt/omd/sites/monit/share/agents/ directory (I may misspell but is arround that )

Visual Basic script to pack, zip and send a full report.

Each first Monday of each month I needed to prepare and send a report to some customers.

Everything was on windows, so Visual Basic was the one to be used.
Nowadays I would ask to reinstall the machine to be able to use Powershellv3 or so, but at that point this is what I got.

SH ( not bash) menu driven for AIX (for example)

Useful menu structure.
Nicely used when bash is not around, and you need some interactive menu.

Dataguard alike using bash and cron

Oracle EE is quite more expensive than SE, however sometimes you need a standby replica “just in case”.

This is how you get a standby replica on a different server, without breaking any Oracle licensing rules:

1) the following script has to be on both servers. It calls itself on remote.
2) set up a cronjob to launch the script on the primary server.
3) Check the log.

I must say that this script needs some big cleaning and ordering, but it works.

Use python to handle email, translate , and publish to wordpress

This weekend I tried to refresh my python with one single idea in mind.

But now I don’t have time to explain it, so here comes the code: