I have used the information provided by "stats" command. Script uses pure bash builtin commands to access a tcp server like memcached.
You can download the script from here.
Here is sample output from the script.
If you're using Ubuntu, probably you will not be able to run this script, because bash is not compiled with "--enable-net-redirections" parameter on Ubuntu systems. RedHat based distributions has no problem with bash net-directions like Fedora,Centos and RedHat ES.