..mumbai's saddest moments ... .our cry for CHANGE

[ This article is the only article in my blog that is non technical, but some thing my heart jsut speaks out toady ]
The last two days has been the caziest in Mumbai and for the people in Mumbai ..I would like to share with you my experience for the last two day that has shook the city . The two days ( Wednesday and Thursday ) mumbia .. especially south Mumbai has seen dramatic seens from the Taj and Oberois hotels . We have lost few of our finest police force and this makes me even more angry to the core . Wednesday night as the terrorist took over the taj, we ( my mom and i ) were watching every glimpse of it on televisions ( thanks to NDTV ) till 2 am .... the visuals that we were coming across were crazy.... looked like a mini Kashmir attack ..... The next day ( Thursday ) was declared a holiday for my company and i guess most companies .... the whole day was spent glued a the visuals in the news ..
One thing i kept hearing on TV was that Mumbaikars will come back strong ..... but this statement is what we have always been saying after every such attack against the city . Mumbai is in need of change . Yes, Mumbai ( Navi -Mumbai ) is a fast pace metropolitan city ... but we tend to forget the such incident too quickly, .... it start with a major media hype through the news networks ... but as the days and weeks pass by people ...our leaders ...people in political power tend to forget .... this aggravates me even more with deeper anger within me .
Just today was i was going in my office ... i was stoped by some security guards at my office building to check my baggage ... they just opened one compartment of my baggage and left it there, ignoring to check the rest of my bag .... this is just an example of how things are going to be like in the next few weeks ....and then slowly fade away. Some times I am so ashamed at the structure and system that are in place in our city. According to the new reports .... the city is not even equipped to with proper fire brigades to pump water to reach the 6th floor of a building, with such loose system in place we can jsut imagine where i our city is heading ... security in our transports system ... especially the local trains, that i personally travel to work, where people have to squeeze and get crushed every morning just to reach their work place . We don't have the slightest security system in place , Yes we do have some few cops around the place ..but that's not going to stop any terrorist from planting a boom somewhere , We need structure and system and really concerned politicians to curb such a future attack on our city . and our Government and local political leaders need to hear our cry ... Yes the city is crying for CHANGE and today its cry ( our cry ) is the loudest ... but what a shame it has to be at the cost of 160 plus lives .
I pray today for the the brave hearts that have laid down their lives for others, and i pray for the victims and the relatives of the victims .... i know what it feels in loosing some one close . as i lost my dad this year in the mouth of January. I pray for our city and for the political leaders that they will bring about the change that is so desperately required .
Thank you for taking time out to read this article , i had tears in my eyes as i was watching few stories on the news from relatives of the victims, in this world that is so unpredictable ... hear today gone tomorrow.
Thank you !

Pen - smtp load balancer

This is pen, a load balancer for "simple" tcp based protocols such as http or smtp. It allows several servers to appear as one to the outside and automatically detects servers that are down and distributes clients among the available servers. This gives high availability and scalable performance.

In this senaerio  we have two server ( server A and server B )  

server A = Load balancer with pen installed
eth0 = 192.168.50.156
 
server B = postfix with two instances of psotfix installed (  http://advosys.ca/papers/postfix-instance.html )
eth0 = 192.168.50.124
eth0:1  = 192.168.50.125

postfix  should be listening
[root@smtptestserver ~]# netstat -tupln |grep 25
tcp        0      0 192.168.50.125:25           0.0.0.0:*                   LISTEN      12077/master
tcp        0      0 192.168.50.124:25           0.0.0.0:*                   LISTEN      11910/master on both server


Installation of Pen on Server A
Downlaod the rpm from here

ftp://194.199.20.114/linux/dag/redhat/el5/en/i386/dag/RPMS/pen-0.17.2-1.el5.rf.i386.rpm
rpm -ivh  pen-0.17.2-1.el5.rf.i386.rpm

This should install   /usr/bin/pen

now we need to tell pen to listen port 25 for all  incomning connections  and to distribute those connection to 50 .125 and 50.124

/usr/bin/pen 192.168.50.156:25 -l /var/log/pen/pen.log -p /var/run/pen.pid -r 192.168.50.124:25 192.168.50.125:25

# netstat -tupln |grep pen
tcp        0      0 192.168.50.156:25           0.0.0.0:*                   LISTEN      14505/pen

Now try
telnet 192.168.50.156 25 from any local system   it should take you to either    192.168.50.124 or  192.168.50.124


 

using Expect for ssh auto-login

#!/bin/bash

set -x
> /root/.ssh/known_hosts
echo "Connecting to host"
konsole --new-tab -e \expect -c "set timeout -1;\
spawn ssh 192.168.50.103 -l root ;\
match_max 100000;\
expect *(yes/no)?*;\
send -- yes\r;\
expect *password:*;\
send -- qwerasdf\r;\
interact;"



Other Articles

Enter your email address: